/* Shared Contact Form 7 controls. Keep this stylesheet global: CF7 is used on more than one page. */
.wpcf7,
.wpcf7 * {
    box-sizing: border-box;
}

.wpcf7,
.wpcf7 form,
.wpcf7 .field,
.wpcf7 .field > p,
.wpcf7-form-control-wrap {
    min-width: 0;
    max-width: 100%;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0 !important;
}

/* Contact-page form wrapper. The landing-page quote form keeps its card width. */
.page-id-24 .tl-page-content__article .wpcf7 {
    margin-top: 40px;
}

@media (min-width: 768px) {
    .page-id-24 .tl-page-content__article .wpcf7 {
        max-width: 600px;
    }
}

/* Forms using the shared .field markup get the same spacing everywhere. */
.wpcf7 .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 14px;
}

.wpcf7 .field > p,
.wpcf7 form > p {
    width: 100%;
    margin: 0 0 14px;
}

.wpcf7 .field > p {
    margin-bottom: 0;
}

.wpcf7 .field label {
    display: block;
    color: #121111;
    font-size: .82rem;
    font-weight: 600;
}

.wpcf7 .field label .optional {
    color: #666;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="month"],
.wpcf7 input[type="week"],
.wpcf7 input[type="time"],
.wpcf7 input[type="datetime-local"],
.wpcf7 input[type="search"],
.wpcf7 input[type="password"],
.wpcf7 select,
.wpcf7 textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #e9e9e3;
    border-radius: 9px;
    background: #fff;
    color: #121111;
    font: inherit;
    resize: vertical;
}

.wpcf7 select {
    appearance: auto;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="month"]:focus,
.wpcf7 input[type="week"]:focus,
.wpcf7 input[type="time"]:focus,
.wpcf7 input[type="datetime-local"]:focus,
.wpcf7 input[type="search"]:focus,
.wpcf7 input[type="password"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: 2px solid #333;
    outline-offset: 1px;
}

.wpcf7 .hp-field {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.wpcf7 input.wpcf7-submit,
.wpcf7 button.wpcf7-submit,
.wpcf7 button[type="submit"] {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 0;
    border-radius: 0;
    background: #121111;
    color: #fbf6ee;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    transition: background-color .15s ease, transform .15s ease;
}

.wpcf7 input.wpcf7-submit:hover,
.wpcf7 button.wpcf7-submit:hover,
.wpcf7 button[type="submit"]:hover {
    background: #333;
    color: #fbf6ee;
    transform: translateY(-1px);
}

.wpcf7 input.wpcf7-submit:focus-visible,
.wpcf7 button.wpcf7-submit:focus-visible,
.wpcf7 button[type="submit"]:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}

.wpcf7 .form-note {
    margin: 10px 0 0;
    color: #666;
    font-size: .78rem;
    text-align: center;
}

.wpcf7 .wpcf7-spinner {
    display: none;
}

.wpcf7 .wpcf7-response-output {
    margin: 12px 0 0 !important;
    font-size: .85rem;
}

.wpcf7 form.submitting .wpcf7-submit {
    cursor: not-allowed;
    opacity: .6;
}

/*
 * The quote form already has a page-specific design. These deliberately more
 * specific selectors keep its layout stable when the global CF7 rules evolve.
 */
.page-id-13530 .tl-page-content__article .quote-card .wpcf7 .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.page-id-13530 .tl-page-content__article .quote-card .wpcf7 form > p {
    margin: 0;
}

.page-id-13530 .tl-page-content__article .quote-card .wpcf7 .field input,
.page-id-13530 .tl-page-content__article .quote-card .wpcf7 .field select,
.page-id-13530 .tl-page-content__article .quote-card .wpcf7 .field textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #e9e9e3;
    border-radius: 9px;
    background: #fff;
    color: #121111;
    font: inherit;
}

.page-id-13530 .tl-page-content__article .quote-card .wpcf7 .field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0 !important;
}

.page-id-13530 .tl-page-content__article .quote-card .wpcf7 input.wpcf7-submit,
.page-id-13530 .tl-page-content__article .quote-card .wpcf7 button.wpcf7-submit {
    width: 100%;
    padding: 13px 20px;
    border-radius: 0;
    background: #121111;
    color: #fbf6ee;
    font-size: 1rem;
    font-weight: 700;
}
