/* ============ CONTACT PAGE — DESIGN AUDIT v5 ============ */

/* ─── HERO — "The Switchboard" — refinements ─── */
.contact-hero {
    padding-top: clamp(96px, 11vw, 148px);
}

.hero-eyebrow-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    transition: border-color 0.3s;
}

.hero-eyebrow-pill:hover {
    border-color: rgba(74, 124, 63, 0.4);
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--forest-light);
    box-shadow: 0 0 0 3px rgba(91, 154, 79, 0.25);
    animation: contact-pulse 2.5s ease-in-out infinite;
}

@keyframes contact-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(91, 154, 79, 0.25);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(91, 154, 79, 0.06);
    }
}

/* hero card removed — all CTAs push to form */

/* ─── ROUTING — "The Directory" — architectural cards ─── */
.contact-routing {
    background: var(--white);
}

.contact-routing .section-header h2 {
    font-size: clamp(30px, 3.6vw, 48px);
}

.route-card {
    border-radius: 0;
    border: 1px solid var(--charcoal-12);
    padding: clamp(28px, 3vw, 38px);
}

.route-card::before {
    border-radius: 0;
}

.route-card__icon {
    border-radius: 50%;
}

.route-card:hover {
    border-color: transparent;
}

/* ─── FORM — "The Correspondence" ─── */
.contact-form {
    border-radius: 0;
    border: 1px solid var(--charcoal-12);
    border-top: 3px solid var(--forest);
}

/* contact-direct block removed — no direct phone/email display */

/* ─── OFFICE — "The Plaque" — sage background with certificate framing ─── */
.contact-office {
    background: var(--sage);
    color: var(--charcoal-deep);
    position: relative;
}

.contact-office::before {
    background:
        radial-gradient(ellipse 55% 65% at 10% 50%, rgba(74, 124, 63, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 90% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 55%);
}

.contact-office__plaque-frame {
    position: absolute;
    inset: clamp(16px, 2vw, 32px);
    pointer-events: none;
}

.contact-office__plaque-frame::before,
.contact-office__plaque-frame::after {
    content: '';
    position: absolute;
    width: clamp(28px, 3.5vw, 48px);
    height: clamp(28px, 3.5vw, 48px);
    border-color: var(--forest-12);
    border-style: solid;
    border-width: 0;
}

.contact-office__plaque-frame::before {
    top: 0;
    left: 0;
    border-top-width: 1px;
    border-left-width: 1px;
}

.contact-office__plaque-frame::after {
    bottom: 0;
    right: 0;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

.contact-office__copy .eyebrow {
    color: var(--forest);
}

.contact-office__copy h2 {
    color: var(--charcoal-deep);
}

.contact-office__copy h2 em {
    color: var(--forest) !important;
}

.contact-office__copy p {
    color: var(--charcoal-72);
}

.contact-office__copy a {
    color: var(--forest) !important;
    border-bottom-color: var(--forest-12) !important;
}

.contact-office__copy a:hover {
    border-bottom-color: var(--forest) !important;
}

.contact-office__facts dt {
    color: var(--forest);
}

.contact-office__facts dd {
    color: var(--charcoal-deep);
}

.contact-office__facts a {
    color: var(--charcoal-deep) !important;
    border-bottom: 1px solid var(--charcoal-20) !important;
}

.contact-office__facts a:hover {
    color: var(--forest) !important;
    border-bottom-color: var(--forest) !important;
}

@media (max-width: 768px) {
    .contact-office__plaque-frame {
        display: none;
    }
}

/* ─── v6: form lives in the hero ─── */
.contact-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.contact-hero {
    padding-bottom: clamp(56px, 7vw, 96px);
}

.ch-form {
    background: var(--white);
    border-top: 4px solid var(--forest);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.45);
    padding: clamp(26px, 3vw, 42px);
}

.ch-form h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(22px, 2.3vw, 30px);
    color: var(--charcoal-deep);
    margin: 0 0 6px;
}

.ch-form-sub {
    font-size: 14px;
    color: var(--charcoal-72);
    margin: 0 0 22px;
}

.ch-field {
    display: block;
    margin-bottom: 16px;
}

.ch-field span {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 7px;
}

.ch-field input,
.ch-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--charcoal-20);
    border-radius: 6px;
    background: var(--white);
    color: var(--charcoal-deep);
    font-family: var(--font-body);
    font-size: 15px;
}

.ch-field input:focus,
.ch-field textarea:focus {
    outline: none;
    border-color: var(--forest);
}

.ch-form .btn-primary {
    width: auto;
}

.ch-form-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--charcoal-72);
    line-height: 1.6;
}

@media (max-width: 920px) {
    .contact-hero__inner {
        grid-template-columns: 1fr;
    }
}

/* Who We Help — 2x2 */
.contact-routing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(18px, 2.2vw, 28px);
}

@media (max-width: 760px) {
    .contact-routing__grid {
        grid-template-columns: 1fr;
    }
}

/* General contact info — closing section */
.contact-info {
    background: var(--sage);
    padding: var(--space-section) 0;
}

.contact-info .eyebrow {
    color: var(--forest);
}

.contact-info h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 44px);
    color: var(--charcoal-deep);
    margin: 0 0 clamp(28px, 3.5vw, 44px);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid var(--charcoal-deep);
}

.contact-info-cell {
    padding: clamp(20px, 2.4vw, 30px) clamp(16px, 2vw, 28px) clamp(20px, 2.4vw, 30px) 0;
    border-bottom: 1px solid rgba(54, 69, 79, 0.18);
}

.contact-info-cell+.contact-info-cell {
    border-left: 1px solid rgba(54, 69, 79, 0.14);
    padding-left: clamp(16px, 2vw, 28px);
}

.contact-info-cell h3 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest);
    margin: 0 0 12px;
}

.contact-info-cell p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal-deep);
    margin: 0;
}

.contact-info-cell a {
    color: var(--charcoal-deep);
    text-decoration: none;
    border-bottom: 1px solid var(--charcoal-20);
    transition: color 0.2s, border-color 0.2s;
}

.contact-info-cell a:hover {
    color: var(--forest);
    border-color: var(--forest);
}

.contact-info-cell small {
    display: block;
    font-size: 12.5px;
    color: var(--charcoal-72);
    margin-top: 4px;
}

@media (max-width: 920px) {
    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info-cell:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-cell {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

/* Formidable Form 14 Styling inside Contact Page */
.ch-form .frm_forms {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ch-form .frm_form_fields {
    width: 100% !important;
}

.ch-form .frm_form_field {
    margin-bottom: 16px !important;
    width: 100% !important;
    clear: both !important;
}

.ch-form .frm_primary_label {
    display: block !important;
    font-family: var(--font-body) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--charcoal) !important;
    margin-bottom: 7px !important;
}

.ch-form input[type="text"],
.ch-form input[type="email"],
.ch-form input[type="tel"],
.ch-form textarea {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid var(--charcoal-20) !important;
    border-radius: 6px !important;
    background: var(--white) !important;
    color: var(--charcoal-deep) !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: border-color var(--duration-fast) !important;
}

.ch-form input[type="text"]:focus,
.ch-form input[type="email"]:focus,
.ch-form input[type="tel"]:focus,
.ch-form textarea:focus {
    outline: none !important;
    border-color: var(--forest) !important;
    box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.12) !important;
}

.ch-form .frm_submit {
    margin-top: 20px !important;
    clear: both !important;
}

.ch-form .frm_submit button,
.ch-form .frm_submit input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 28px !important;
    background: var(--forest) !important;
    color: var(--white) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: background var(--duration-fast) !important;
    border: none !important;
    font-family: var(--font-body) !important;
    text-transform: uppercase !important;
    /* width: auto !important; */
    width: 100% !important;
    height: 50px !important;
}

.ch-form .frm_submit button:hover,
.ch-form .frm_submit input[type="submit"]:hover {
    background: var(--forest-light) !important;
}