/* ═══ scoped to contact page (.cx-* namespace) ═══ */
.cx {
    font-family: var(--fb);
    color: var(--text-dark);
    background: var(--bg-cream);
}

/* ── HERO ─────────────────────────────────────────── */
.cx-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--text-dark);
    background-image: url('../images/header_contact.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(112px, 16vw, 180px) 24px clamp(80px, 11vw, 128px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(440px, 65svh, 620px);
}

/* Layered overlay: vertical wash + soft radial vignette in one pass */
.cx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(12, 7, 5, .1) 0%, rgba(12, 7, 5, .35) 75%, rgba(12, 7, 5, .58) 100%),
        linear-gradient(180deg, rgba(12, 7, 5, .3) 0%, rgba(12, 7, 5, .4) 60%, rgba(12, 7, 5, .5) 100%);
    z-index: 0;
}

/* Mobile: extra darken for legibility on smaller viewports */
@media (max-width: 640px) {
    .cx-hero::before {
        background:
            linear-gradient(180deg, rgba(12, 7, 5, .68) 0%, rgba(12, 7, 5, .72) 100%);
    }
}

/* Soft fade into page background — kills section seam */
.cx-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 50px;
    background: linear-gradient(
        to top,
        var(--bg-cream) 0%,
        rgba(245, 240, 232, 0.65) 25%,  /* adjust to your --bg-cream rgb */
        rgba(245, 240, 232, 0.3) 55%,
        rgba(245, 240, 232, 0.1) 80%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.cx-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .9);
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.cx-hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color-light);
}

.cx-hero__title {
    font-family: var(--f-display);
    font-size: clamp(2.125rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 0 18px;
}

.cx-hero__title em {
    font-style: italic;
    color: var(--main-color);
}

.cx-hero__sub {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
    max-width: 480px;
    margin: 0 auto 36px;
}

.cx-hero__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── PILL BUTTONS — local variants (extend .main-cta visually) ─ */
.cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--f-display);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.cx-btn:focus-visible {
    outline: 2px solid var(--accent-color-light);
    outline-offset: 3px;
}

.cx-btn--wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, .4);
}

.cx-btn--wa:hover, .cx-btn--wa:focus-visible {
    transform: translateY(-2px);
}

.cx-btn--ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cx-btn--ghost:hover, .cx-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, .2);
}

.cx-btn--bx {
    background: var(--crimson);
    color: #fff;
    box-shadow: 0 4px 18px rgba(136, 13, 30, .35);
}

.cx-btn--bx:hover, .cx-btn--bx:focus-visible {
    transform: translateY(-2px);
    background: var(--crimson-dk);
}

.cx-btn--soft {
    background: #fff;
    color: var(--text-dark);
    border: 1.5px solid var(--cream-dark);
    box-shadow: 0 2px 12px rgba(58, 11, 11, .06);
}

.cx-btn--soft:hover, .cx-btn--soft:focus-visible {
    border-color: var(--accent-color-light);
}

.cx-btn--block {
    width: 100%;
}

.cx-btn--lg {
    padding: 15px 28px;
}

.cx-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ── MAIN GRID ────────────────────────────────────── */
.cx-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 80px) 24px clamp(56px, 8vw, 96px);
    display: grid;
    gap: 32px;
    align-items: start;
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .cx-main {
        grid-template-columns: 1fr 360px;
        gap: 40px;
    }
}

/* ── FORM CARD ────────────────────────────────────── */
.cx-form {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1.5px solid var(--cream-dark);
    box-shadow: 0 4px 32px rgba(58, 11, 11, .06);
}

@media (min-width: 640px) {
    .cx-form {
        padding: 32px;
    }
}

.cx-form__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cream-dark);
}

.cx-form__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--crimson-pale);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--crimson);
}

.cx-form__icon .material-symbols-outlined {
    font-size: 22px;
}

.cx-form__title {
    margin: 0;
    font-family: var(--f-display);
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-dark);
}

.cx-form__sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* fields */
.cx-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .cx-row {
        grid-template-columns: 1fr 1fr;
    }
}

.cx-field {
    margin-bottom: 16px;
}

.cx-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--fb);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.cx-label .cx-opt {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 2px;
}

.cx-label .cx-req {
    color: var(--crimson);
    margin-left: 2px;
}

.cx-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--cream-dark);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--fb);
    color: var(--text-dark);
    background: var(--bg-cream);
    outline: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.cx-input::placeholder {
    color: var(--text-muted);
    opacity: .85;
}

.cx-input:hover {
    border-color: var(--coral-pale);
}

.cx-input:focus, .cx-input:focus-visible {
    border-color: var(--accent-color-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(155, 130, 248, .15);
}

.cx-input.has-error,
.cx-input.has-error:focus {
    border-color: #DC2626;
    background: #FEF2F2;
    box-shadow: var(--shadow-focus-primary);
}

.cx-textarea {
    resize: vertical;
    min-height: 124px;
    line-height: 1.6;
}

.cx-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B91B0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.cx-error {
    margin: 6px 0 0;
    padding-left: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #B91C1C;
}

/* method picker */
.cx-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cx-meth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--cream-dark);
    background: var(--bg-cream);
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-mid);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.cx-meth .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-muted);
    transition: color .18s ease;
}

.cx-meth:hover {
    border-color: var(--accent-color-light);
    color: var(--text-dark);
}

.cx-meth.is-active {
    border-color: var(--crimson);
    background: var(--crimson-pale);
    color: var(--crimson);
}

.cx-meth.is-active .material-symbols-outlined {
    color: var(--crimson);
}

/* form privacy note */
.cx-formnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.cx-formnote .material-symbols-outlined {
    font-size: 14px;
}

/* loading spinner inside submit */
.cx-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-right-color: #fff;
    animation: cx-spin .7s linear infinite;
}

@keyframes cx-spin {
    to {
        transform: rotate(360deg);
    }
}

#contactSubmitBtn.is-loading {
    pointer-events: none;
    opacity: .75;
}

/* ── SIDEBAR ──────────────────────────────────────── */
.cx-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 960px) {
    .cx-side {
        position: sticky;
        top: 96px;
    }
}

.cx-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 22px;
    border: 1.5px solid var(--cream-dark);
    box-shadow: 0 2px 14px rgba(58, 11, 11, .05);
}

.cx-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cx-card__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--crimson-pale);
    color: var(--crimson);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cx-card__icon .material-symbols-outlined {
    font-size: 20px;
}

.cx-card__title {
    margin: 0;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.cx-card__sub {
    margin: 1px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.cx-card__body {
    font-size: 13px;
    color: var(--ink-mid);
    line-height: 1.7;
}

/* team badge card */
.cx-team {
    background: var(--coral-pale);
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(155, 130, 248, .25);
}

.cx-team__top {
    background: linear-gradient(135deg, rgba(155, 130, 248, .35) 0%, var(--coral-pale) 100%);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cx-team__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(124, 111, 212, .15);
}

.cx-team__mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 7px;
    background: var(--crimson);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cx-team__mark svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

.cx-team__name {
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.02em;
}

.cx-team__body {
    padding: 14px 18px 18px;
}

.cx-team__title {
    margin: 0 0 5px;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.cx-team__desc {
    margin: 0;
    font-size: 12px;
    color: var(--ink-mid);
    line-height: 1.6;
}

/* steps card */
.cx-steps__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.cx-steps__title .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-color);
}

.cx-steps__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cx-step {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-cream);
}

.cx-step__nbg {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--f-display);
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-dark);
    opacity: .05;
    pointer-events: none;
    user-select: none;
}

.cx-step__n {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--crimson);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.cx-step__body {
    position: relative;
    z-index: 1;
}

.cx-step__t {
    font-family: var(--fb);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.cx-step__s {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── CURVE DIVIDERS ─────────────────────────────── */
.cx-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.cx-divider--cream-to-lilac {
    background: var(--bg-cream);
    line-height: 0;
}

.cx-divider--lilac-to-cream {
    background: var(--coral-pale);
    line-height: 0;
}

/* ── FAQ SECTION ────────────────────────────────── */
.cx-faq {
    background: var(--coral-pale);
    padding: clamp(56px, 8vw, 88px) 24px;
}

.cx-faq__inner {
    max-width: 760px;
    margin: 0 auto;
}

.cx-faq__head {
    text-align: center;
    margin-bottom: 36px;
}

.cx-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--crimson);
}

.cx-faq__line {
    width: 22px;
    height: 2px;
    background: var(--crimson);
    border-radius: 1px;
}

.cx-faq__title {
    margin: 0 0 8px;
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--text-dark);
}

.cx-faq__title em {
    font-style: italic;
    color: var(--crimson);
}

.cx-faq__sub {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

.cx-faq__list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cx-faq__item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color .18s ease;
}

.cx-faq__item.is-open {
    border-color: var(--crimson-pale);
}

.cx-faq__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--f-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    transition: color .18s ease;
}

.cx-faq__icon {
    flex-shrink: 0;
    display: inline-flex;
}

.cx-faq__q {
    flex: 1;
    min-width: 0;
}

.cx-faq__chev {
    flex-shrink: 0;
    transition: transform .25s ease;
    color: var(--text-muted);
    font-size: 18px;
}

.cx-faq__answer {
    display: none;
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--ink-mid);
    line-height: 1.75;
}

.cx-faq__item.is-open .cx-faq__answer {
    display: block;
    animation: cx-fade-up .3s ease both;
}

.cx-faq__item.is-open .cx-faq__btn {
    color: var(--crimson);
}

.cx-faq__item.is-open .cx-faq__chev {
    transform: rotate(180deg);
    color: var(--crimson);
}

/* ── CTA-FINAL — backdrop comes from .cta-canvas (custom.css);
   here we only own padding, alignment, and the soft purple glow. ── */
.cx-cta {
    padding: clamp(72px, 10vw, 104px) 24px clamp(80px, 11vw, 112px);
    text-align: center;
}

.cx-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
}

.cx-cta__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-mid);
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(58, 11, 11, .07);
}

.cx-cta__pill::before {
    content: '💜';
    font-size: 14px;
    line-height: 1;
}

.cx-cta__title-wrap {
    position: relative;
    display: inline-block;
}

.cx-cta__title {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    font-family: var(--f-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.06;
    color: var(--text-dark);
}

.cx-cta__title::before {
    content: '';
    position: absolute;
    inset: -24px -32px;
    background: radial-gradient(ellipse 340px 140px at 50% 50%, rgba(155, 130, 248, .55) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

.cx-cta__title em {
    font-style: italic;
    color: var(--crimson);
}

.cx-cta__sub {
    margin: 0 auto 36px;
    max-width: 480px;
    font-size: 17px;
    color: var(--ink-mid);
    line-height: 1.7;
}

.cx-cta__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── REVEAL ANIM ─────────────────────────────────── */
.cx-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

.cx-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes cx-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Hero entrance */
.cx-hero__inner > * {
    opacity: 0;
    animation: cx-fade-up .55s ease forwards;
}

.cx-hero__eyebrow {
    animation-delay: .05s;
}

.cx-hero__title {
    animation-delay: .12s;
}

.cx-hero__sub {
    animation-delay: .2s;
}

.cx-hero__btns {
    animation-delay: .28s;
}

/* Smooth scroll offset for in-page anchor */
#contactFormWrapper {
    scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
    .cx-hero__inner > *, .cx-reveal,
    .cx-btn, .cx-input, .cx-meth, .cx-faq__item, .cx-faq__chev, .cx-faq__answer,
    .cx-spin {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .cx-hero__btns, .cx-cta__btns {
        flex-direction: column;
        align-items: stretch;
    }

    .cx-hero__btns .cx-btn, .cx-cta__btns .cx-btn {
        justify-content: center;
    }
}
