/* ==========================================================================
   Contact Us Page (2026-11-20) — templates/ContactUsTemplate.php
   --------------------------------------------------------------------------
   Figma Y2Wxze54xrEMm3aZ05HjVC: Contact Us 6995:48450 (desktop 1920) /
   6995:48861 (mobile 402); Thank You 6995:49557 / 6995:50226.

   Page layout only. Shared components come from:
     components/lead-form.css   the form (same as the gated resources)
     components/cards.css       .rd-validation quote + stat cards, .rd-why-card
     style_new.css              .rd-final-cta, a.com-btn, a.text-btn
   This file sizes those components for this page's frames (Figma's mobile
   type scale on the shared cards, Why READI card height) under
   .contact-page only.

   Container: same as Home V2 sections — 1632px cap with 96px side padding,
   so the content is 1440px wide at 1920 and keeps a 96px gutter below it.
   ========================================================================== */

.contact-page {
    --ct-black: #2E2925;
    --ct-blue: #3D6BEA;
    --ct-blue-chip: #EDF2FF;
    --ct-blue-050: #EEF3FE;
    --ct-grey-600: #6C757D;
    --ct-grey-700: #495057;
    --ct-seasalt: #F8F9FA;
    --ct-max: 1632px;
    --ct-pad: 96px;
    background: #FFFFFF;
    color: var(--ct-black);
}

.contact-page .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Hero (6995:48466) ─────────────────────────────────────────────────── */
.contact-hero {
    display: flex;
    justify-content: center;
    padding: 96px 24px;
    /* 2026-11-21 (Carlos): exactly the Pricing hero background
       (pricing.css .pricing-hero), same geometry as the Resources hub. */
    background: radial-gradient(45.95% 45.95% at 50% 0%, rgba(222, 226, 230, 0.87) 0%, rgba(236, 240, 253, 0) 100%);
}

.contact-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 712px;
    text-align: center;
}

.contact-chip {
    margin: 0;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--ct-blue-chip);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.84px;
    text-transform: uppercase;
    color: var(--ct-blue);
}

.contact-hero__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 54px;
    letter-spacing: -0.48px;
    color: #000000;
}

.contact-hero__subtitle {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: var(--ct-grey-600);
}

/* ── Contact block + "You can also" (6995:48481) ───────────────────────── */
/* 2026-11-21: was .contact-main, which collided with the old Contact Us V2
   template's `.contact-main p { margin-top: 16px !important; }`
   (style_new.css) and pushed every paragraph in here down 16px. */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    max-width: var(--ct-max);
    margin: 0 auto 48px; /* 2026-11-21 (Carlos) */
    padding: 0 var(--ct-pad);
}

.contact-block__card,
.contact-also__card {
    border: 2px solid var(--ct-blue-050);
    border-radius: 10px;
    background: #FFFFFF;
    padding: 48px;
}

.contact-block__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.contact-block__expect {
    display: flex;
    flex: 0 1 542px;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
}

.contact-block__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 8px 16px;
    border-radius: 5px;
    background: var(--ct-blue-chip);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.84px;
    text-transform: uppercase;
    color: var(--ct-blue);
}

.contact-badge__dot {
    position: relative;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ct-blue);
}

/* 2026-11-21 (Carlos): pulses like the old Contact Us template's
   .res-sec span — same ring and the sitewide dotPulse keyframes
   (style_new.css), in this badge's blue. */
.contact-badge__dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--ct-blue);
    opacity: 0;
    animation: dotPulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .contact-badge__dot::after {
        animation: none;
    }
}

.contact-block__heading {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 42px;
    color: var(--ct-black);
}

ol.contact-steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-step {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-step__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
}

.contact-step__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 24px;
}

.contact-step__title {
    font-weight: 700;
    letter-spacing: 0.36px;
    color: var(--ct-grey-700);
}

.contact-step__desc {
    font-weight: 400;
    color: var(--ct-grey-600);
}

.contact-block__panel {
    display: flex;
    flex: 0 1 663px;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
}

/* Thank You state (6995:50207): grey panel, same footprint as the form. */
.contact-success {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 492px;
    padding: 48px 24px;
    border-radius: 5px;
    background: var(--ct-seasalt);
    text-align: center;
}

.contact-success__icon {
    width: 38px;
    height: 42px;
}

.contact-success__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 24px;
}

.contact-success__title {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.36px;
    color: var(--ct-grey-700);
}

.contact-success__desc {
    margin: 0;
    font-weight: 400;
    color: var(--ct-grey-600);
}

.contact-page a.text-btn.contact-success__link {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--ct-blue);
    line-height: 22px;
}

/* "You can also" (6995:48526) */
.contact-also__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact-also__label {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.36px;
    color: var(--ct-black);
}

ul.contact-also__list {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 2026-11-21 (Carlos), desktop row only (mobile is locked): the three
   items sit to the right (Figma 6995:48527: right-aligned, 148px apart at
   1920; 96px below that so they fit at 1440). */
@media (min-width: 1200px) {
    .contact-page ul.contact-also__list {
        justify-content: flex-end;
        gap: 96px;
    }
}

@media (min-width: 1800px) {
    .contact-page ul.contact-also__list {
        gap: 148px;
    }
}

.contact-also__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-also__icon {
    flex: 0 0 auto;
    object-fit: contain;
}

.contact-also__icon--photo {
    border-radius: 50%;
    object-fit: cover;
}

.contact-also__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: var(--ct-black);
}

.contact-also__text a {
    color: var(--ct-blue);
    text-decoration: underline;
    text-underline-position: from-font;
}

.contact-also__text a:hover {
    color: #1238A0;
}

.contact-also__text a:focus-visible,
.contact-page a.text-btn.contact-success__link:focus-visible {
    outline: 2px solid var(--ct-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Validation (6995:48552): shared .rd-validation ──────────────────────
   2026-11-21 (Carlos): 192px above and below on desktop (mobile has its
   own locked values in the ≤767px block). */
.contact-page .rd-validation {
    margin: 192px auto;
}

/* ── Why READI (6995:48573) ─────────────────────────────────────────────── */
.contact-why {
    width: 100%;
    max-width: var(--ct-max);
    margin: 0 auto;
    padding: 96px;
    border-radius: 0 0 15px 15px;
    background: linear-gradient(180deg, rgba(213, 223, 252, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.contact-why__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.contact-why__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    text-align: center;
}

.contact-eyebrow {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ct-grey-600);
}

.contact-why__heading {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 42px;
    color: var(--ct-black);
}

.contact-why__cards {
    display: flex;
    gap: 16px;
    width: 100%;
}

/* Figma: content height (481px at 1920), 72px between the card body and
   its footnote — not Home V2's fixed 464px bento height. */
.contact-page .rd-why-card.contact-why__card {
    flex: 1 1 0%;
    min-width: 0;
    height: auto;
    gap: 72px;
}

/* ── Tablet: content column narrower than the two-panel layout ─────────── */
@media (max-width: 1199px) {
    .contact-page {
        --ct-pad: 48px;
    }

    .contact-block__card {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-block__expect,
    .contact-block__panel {
        flex: 0 0 auto;
    }

    .contact-also__card {
        flex-direction: column;
        align-items: flex-start;
    }

    ul.contact-also__list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .contact-page .rd-validation {
        padding: 0 var(--ct-pad);
    }

    .contact-why {
        padding: 96px var(--ct-pad);
    }

    .contact-why__cards {
        flex-wrap: wrap;
    }

    .contact-page .rd-why-card.contact-why__card {
        flex: 1 1 300px;
    }
}

/* ── Mobile (6995:48861 / 6995:50226, 402px frame, 24px gutters) ──────── */
@media (max-width: 767px) {
    .contact-page {
        --ct-pad: 24px;
    }

    .contact-hero {
        padding: 96px 24px;
    }

    .contact-chip {
        font-size: 10px;
        line-height: 16px;
        letter-spacing: 0.5px;
    }

    .contact-hero__title {
        font-size: 36px;
        line-height: 38px;
        letter-spacing: -0.72px;
    }

    .contact-hero__subtitle {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.28px;
    }

    .contact-content {
        gap: 24px;
    }

    /* Locked mobile look (approved 2026-11-21) included 16px above these,
       from the old .contact-main rule; kept explicitly after the rename. */
    .contact-page .contact-badge,
    .contact-page .contact-also__label,
    .contact-page .contact-success__title,
    .contact-page .contact-success__desc {
        margin-top: 16px;
    }

    /* 2026-11-21 (Carlos): responsive_new.css gives every <section>
       40px top/bottom padding below 1280px; drop it where it opens
       gaps in this stack. */
    .contact-page .contact-block,
    .contact-page .contact-also {
        padding-top: 0;
        padding-bottom: 0;
    }

    .contact-block__card {
        padding: 24px;
    }

    .contact-block__expect {
        gap: 24px;
    }

    .contact-badge {
        font-size: 10px;
        line-height: 16px;
        letter-spacing: 0.5px;
    }

    .contact-block__heading {
        font-weight: 600;
        font-size: 22px;
        line-height: 28px;
    }

    ol.contact-steps {
        gap: 24px;
    }

    .contact-step {
        gap: 12px;
    }

    .contact-step__icon {
        width: 35px;
        height: 35px;
    }

    .contact-step__text {
        font-size: 14px;
        letter-spacing: 0.28px;
    }

    .contact-step__title {
        font-weight: 600;
        line-height: 20px;
        letter-spacing: 0.28px;
    }

    .contact-step__desc {
        line-height: 22px;
    }

    /* The form sits straight in the card on mobile (no second card). */
    .contact-page .contact-form-card {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .contact-success {
        min-height: 396px;
    }

    .contact-success__text {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.28px;
    }

    .contact-success__title {
        line-height: 20px;
        letter-spacing: 0.28px;
    }

    .contact-also__card {
        gap: 48px;
        padding: 48px 24px;
    }

    .contact-also__label {
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.28px;
    }

    ul.contact-also__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;
    }

    .contact-also__text {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.28px;
    }

    /* 44px tap target around the underlined link without moving the text. */
    .contact-also__text a {
        display: inline-block;
        padding: 11px 0;
        margin: -11px 0;
    }

    /* Validation (6995:48949): stacked. 2026-11-21 (Carlos): 96px above
       (gap below "You can also", same as desktop), 48px below. */
    .contact-page .rd-validation {
        margin: 96px auto 48px;
        padding: 0 24px;
    }

    .contact-page .rd-validation__row {
        flex-direction: column;
    }

    .contact-page .rd-validation__quote-card {
        padding: 48px 24px;
    }

    .contact-page .rd-validation__quote-text {
        font-weight: 600;
        font-size: 22px;
        line-height: 28px;
    }

    .contact-page .rd-validation__quote-author-name {
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.28px;
    }

    .contact-page .rd-validation__quote-author-title {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.28px;
    }

    .contact-page .rd-validation__stat-card {
        gap: 68px;
        padding: 48px 24px;
    }

    /* Shared card type at Figma's mobile scale (both stat and Why cards). */
    .contact-page .rd-why-card__pill {
        font-size: 10px;
        line-height: 16px;
        letter-spacing: 0.5px;
    }

    .contact-page .rd-why-card__heading {
        font-weight: 600;
        font-size: 22px;
        line-height: 28px;
    }

    .contact-page .rd-why-card__body {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.28px;
    }

    .contact-page .rd-why-card__stat {
        font-weight: 700;
    }

    /* Why READI (6995:48970): header, then a horizontal swipe row of
       306px cards (scroll-snap, same pattern as the Pricing cards). */
    /* 2026-11-21 (Carlos): more room above Why READI. It collapses with
       the validation section's 48px bottom margin, so 96px = 96px gap. */
    .contact-why {
        margin-top: 96px;
        padding: 48px 0;
        border-radius: 0;
    }

    .contact-why__header {
        padding: 0 24px;
    }

    .contact-eyebrow {
        font-size: 10px;
        line-height: 16px;
        letter-spacing: 0.5px;
    }

    .contact-why__heading {
        font-weight: 600;
        font-size: 22px;
        line-height: 28px;
    }

    .contact-why__cards {
        flex-wrap: nowrap;
        padding: 0 24px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 24px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .contact-why__cards::-webkit-scrollbar {
        display: none;
    }

    .contact-page .rd-why-card.contact-why__card {
        flex: 0 0 306px;
        min-height: 0;
        padding: 48px 24px;
        scroll-snap-align: start;
    }

    .contact-page .rd-why-card.contact-why__card .rd-why-card__icon {
        width: 36px;
        height: 36px;
    }
}
