/* Contact. */

.contact {
    padding: 60px 0 84px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.contact-form h2,
.contact-offices h2 {
    font-size: 1.5rem;
    color: var(--sb-navy-deep);
}

.contact-intro {
    margin-top: 18px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #454545;
}

.contact-intro p + p {
    margin-top: 1.1em;
}

/* ── The disclaimer ── */
/* Set at reading size, not fine print: it asks people not to send confidential
   information, so it has to be read before the form, not skimmed under it. */
.contact-notice {
    margin: 22px 0 32px;
    padding: 20px 24px;
    background: var(--sb-wash);
    border-left: 3px solid var(--sb-taupe);
}

.contact-notice p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.75;
    color: #555;
}

.contact-fallback {
    padding: 24px;
    border: 1px solid var(--sb-rule);
    font-size: 1rem;
    color: #555;
}

/* ── Offices ── */
.contact-office + .contact-office,
.contact-portal {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--sb-rule);
}

.contact-offices h2 + .contact-office {
    margin-top: 22px;
}

.contact-office h3 {
    font-size: 1.125rem;
    color: var(--sb-navy-deep);
}

.contact-office address {
    margin-top: 10px;
    font-style: normal;
    font-size: .9375rem;
    line-height: 1.7;
    color: #555;
}

.contact-phone {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--sb-navy);
    text-decoration: none;
}

.contact-phone:hover {
    text-decoration: underline;
}

.contact-directions {
    margin-top: 14px;
    font-size: .875rem;
    line-height: 1.7;
    color: #666;
}

.contact-map,
.contact-portal a {
    display: inline-block;
    margin-top: 12px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sb-slate);
    text-decoration: none;
}

.contact-map:hover,
.contact-portal a:hover {
    color: var(--sb-navy);
}

.aside-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sb-taupe-text);
}

/* ── WPForms ── */
/* Overrides only. WPForms ships its own stylesheet and this pulls the parts
   that are visibly not ours into line: the fields, the button and the errors.
   Selectors are kept shallow so a plugin update does not walk out from under
   them. */
.wpforms-container {
    margin: 0 !important;
}

.wpforms-form .wpforms-field {
    padding: 0 0 18px !important;
}

.wpforms-form label.wpforms-field-label {
    margin-bottom: 6px !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    color: var(--sb-ink) !important;
}

.wpforms-form input[type=text],
.wpforms-form input[type=email],
.wpforms-form input[type=tel],
.wpforms-form textarea {
    max-width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid var(--sb-rule) !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    color: var(--sb-ink) !important;
    box-shadow: none !important;
    transition: border-color .2s;
}

.wpforms-form input[type=text]:focus,
.wpforms-form input[type=email]:focus,
.wpforms-form input[type=tel]:focus,
.wpforms-form textarea:focus {
    outline: none !important;
    border-color: var(--sb-slate) !important;
}

.wpforms-form textarea {
    min-height: 160px !important;
}

.wpforms-form .wpforms-field-checkbox label,
.wpforms-form .wpforms-field-description {
    font-size: .875rem !important;
    line-height: 1.65 !important;
    color: #555 !important;
}

.wpforms-form button[type=submit] {
    padding: 13px 34px !important;
    border: none !important;
    border-radius: 0 !important;
    background: var(--sb-navy) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background .2s;
}

.wpforms-form button[type=submit]:hover {
    background: var(--sb-navy-deep) !important;
}

.wpforms-form .wpforms-error {
    font-size: .8125rem !important;
    color: #a3272c !important;
}

.wpforms-form input.wpforms-error,
.wpforms-form textarea.wpforms-error {
    border-color: #a3272c !important;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 40px 0 56px;
    }
}
