/**
 * EFTC Resource Hub — Frontend Design System
 *
 * Complete CSS design system for the EFTC advocacy platform.
 * All page template agents use these classes.  Nothing is hardcoded —
 * every color, spacing value, and font references a CSS custom property.
 *
 * Naming: all classes prefixed `eftc-` to avoid collisions with Divi.
 * Approach: mobile-first with `min-width` media queries.
 *
 * @version 1.0.0
 * @package EFTC_Resource_Hub_Child
 */

/* ==========================================================================
   0. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Brand Colors */
    --eftc-navy: #1D3769;
    --eftc-navy-light: rgba(29, 55, 105, 0.08);
    --eftc-navy-medium: rgba(29, 55, 105, 0.25);
    --eftc-navy-dark: #152B50;
    --eftc-navy-hover: #244680;
    --eftc-gold: #D8A83B;
    --eftc-gold-light: rgba(216, 168, 59, 0.15);
    --eftc-gold-hover: #E0B84D;
    --eftc-charcoal: #262323;
    --eftc-white: #FFFFFF;

    /* Neutral Grays */
    --eftc-gray-50: #F9FAFB;
    --eftc-gray-100: #F8F9FA;
    --eftc-gray-200: #E9ECEF;
    --eftc-gray-300: #DEE2E6;
    --eftc-gray-400: #9CA3AF;
    --eftc-gray-600: #6C757D;

    /* Status Colors */
    --eftc-status-green: #22C55E;
    --eftc-status-amber: #F59E0B;
    --eftc-status-gray: #6B7280;
    --eftc-status-red: #C05050;

    /* Semantic */
    --eftc-success: #28A745;
    --eftc-warning: #FFC107;
    --eftc-error: #DC3545;

    /* Typography */
    --eftc-font-heading: 'Gilroy', sans-serif;
    --eftc-font-body: 'Glacial Indifference', 'Poppins', sans-serif;

    /* Spacing Scale (rem-based, mobile-first) */
    --eftc-space-xs: 0.25rem;   /*  4px */
    --eftc-space-sm: 0.5rem;    /*  8px */
    --eftc-space-md: 1rem;      /* 16px */
    --eftc-space-lg: 1.5rem;    /* 24px */
    --eftc-space-xl: 2rem;      /* 32px */
    --eftc-space-2xl: 3rem;     /* 48px */
    --eftc-space-3xl: 4rem;     /* 64px */
    --eftc-space-4xl: 6rem;     /* 96px */

    /* Shadows */
    --eftc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --eftc-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --eftc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --eftc-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --eftc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --eftc-radius-sm: 4px;
    --eftc-radius-md: 8px;
    --eftc-radius-lg: 12px;
    --eftc-radius-xl: 16px;

    /* Focus */
    --eftc-focus-ring: 0 0 0 3px rgba(29, 55, 105, 0.4);

    /* Transitions */
    --eftc-transition: 0.25s ease;
    --eftc-transition-fast: 150ms ease;
    --eftc-transition-normal: 250ms ease;
    --eftc-transition-slow: 0.4s ease;
}

/* ==========================================================================
   1. @FONT-FACE DECLARATIONS
   ========================================================================== */

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. BASE STYLES / RESETS
   ========================================================================== */

/**
 * Reset box-sizing globally so padding doesn't break width calculations.
 * Applied inside .eftc-page to avoid interfering with Divi's box model.
 */
.eftc-page *,
.eftc-page *::before,
.eftc-page *::after {
    box-sizing: border-box;
}

/**
 * .eftc-page — wrapper for every EFTC page template.
 * Resets Divi's default padding/margins and establishes base typography.
 */
.eftc-page {
    font-family: var(--eftc-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--eftc-charcoal);
    background-color: var(--eftc-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override Divi's default section/row padding inside EFTC pages. */
.eftc-page .et_pb_section,
.eftc-page .et_pb_row {
    padding: 0;
    margin: 0;
}

/* Headings */
.eftc-page h1,
.eftc-page h2,
.eftc-page h3,
.eftc-page h4,
.eftc-page h5,
.eftc-page h6 {
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    color: var(--eftc-navy);
    line-height: 1.2;
    margin: 0 0 var(--eftc-space-md) 0;
}

.eftc-page h1 { font-size: 2rem; }
.eftc-page h2 { font-size: 1.75rem; }
.eftc-page h3 { font-size: 1.5rem; }
.eftc-page h4 { font-size: 1.25rem; }
.eftc-page h5 { font-size: 1.125rem; }
.eftc-page h6 { font-size: 1rem; }

@media (min-width: 1280px) {
    .eftc-page h1 { font-size: 2.75rem; }
    .eftc-page h2 { font-size: 2.25rem; }
    .eftc-page h3 { font-size: 1.75rem; }
    .eftc-page h4 { font-size: 1.5rem; }
}

/* Paragraphs */
.eftc-page p {
    margin: 0 0 var(--eftc-space-md) 0;
}

/* Links -- exclude buttons so .eftc-btn color declarations win */
.eftc-page a:not(.eftc-btn) {
    color: var(--eftc-gold);
    text-decoration: none;
    transition: color var(--eftc-transition);
}

.eftc-page a:not(.eftc-btn):hover,
.eftc-page a:not(.eftc-btn):focus {
    color: var(--eftc-gold-hover);
    text-decoration: underline;
}

/* Images */
.eftc-page img {
    max-width: 100%;
    height: auto;
}

/**
 * Global :focus-visible styles for ALL interactive elements.
 * Provides a consistent, accessible focus ring using the navy brand color.
 * Uses :focus-visible (not :focus) so mouse users don't see the ring.
 */
.eftc-page button:focus-visible,
.eftc-page a:focus-visible,
.eftc-page input:focus-visible,
.eftc-page select:focus-visible,
.eftc-page textarea:focus-visible,
.eftc-page summary:focus-visible,
.eftc-page [role="button"]:focus-visible,
.eftc-page [tabindex]:focus-visible {
    outline: 3px solid var(--eftc-navy);
    outline-offset: 2px;
    box-shadow: var(--eftc-focus-ring);
}

/**
 * Global :active state for links — subtle depress feedback.
 */
.eftc-page a:active {
    opacity: 0.85;
}

/* ==========================================================================
   3. LAYOUT COMPONENTS
   ========================================================================== */

/**
 * .eftc-container — centred content wrapper.
 * Mobile: 16px side padding.  Desktop: auto margins at max-width.
 */
.eftc-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--eftc-space-md);
    padding-right: var(--eftc-space-md);
}

@media (min-width: 768px) {
    .eftc-container {
        padding-left: var(--eftc-space-xl);
        padding-right: var(--eftc-space-xl);
    }
}

/** Narrow variant for text-heavy pages (forms, legal, articles). */
.eftc-container--narrow {
    max-width: 800px;
}

/**
 * CSS Grid system.
 * Single column on mobile, responsive columns at breakpoints.
 */
.eftc-grid {
    display: grid;
    gap: var(--eftc-space-lg);
}

.eftc-grid--2col {
    grid-template-columns: 1fr;
}

.eftc-grid--3col {
    grid-template-columns: 1fr;
}

.eftc-grid--4col {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .eftc-grid--2col {
        grid-template-columns: repeat(2, 1fr);
    }

    .eftc-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .eftc-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .eftc-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .eftc-grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   4. SECTION COMPONENTS
   ========================================================================== */

/**
 * .eftc-section — vertical rhythm wrapper for page sections.
 * Generous padding on mobile, more on desktop.
 */
.eftc-section {
    padding-top: var(--eftc-space-3xl);
    padding-bottom: var(--eftc-space-3xl);
}

@media (min-width: 1280px) {
    .eftc-section {
        padding-top: var(--eftc-space-4xl);
        padding-bottom: var(--eftc-space-4xl);
    }
}

/** Section color variants. */
.eftc-section--navy {
    background-color: var(--eftc-navy);
    color: var(--eftc-white);
}

.eftc-section--navy h1,
.eftc-section--navy h2,
.eftc-section--navy h3,
.eftc-section--navy h4,
.eftc-section--navy h5,
.eftc-section--navy h6 {
    color: var(--eftc-white);
}

.eftc-section--navy a {
    color: var(--eftc-gold);
}

.eftc-section--navy a:hover,
.eftc-section--navy a:focus {
    color: var(--eftc-gold-hover);
}

/**
 * Prevent gold-on-gold: buttons inside navy sections must keep their
 * declared text color, not inherit the gold link color above.
 */
.eftc-section--navy .eftc-btn--primary {
    color: var(--eftc-charcoal);
}

.eftc-section--navy .eftc-btn--primary:hover {
    color: var(--eftc-charcoal);
}

.eftc-section--navy .eftc-btn--secondary {
    color: var(--eftc-white);
    border-color: var(--eftc-white);
}

.eftc-section--navy .eftc-btn--secondary:hover {
    background-color: var(--eftc-white);
    color: var(--eftc-navy);
    border-color: var(--eftc-white);
}

.eftc-section--gray {
    background-color: var(--eftc-gray-50);
}

.eftc-section--white {
    background-color: var(--eftc-white);
}

/**
 * Diagonal dividers — the EFTC brand signature.
 *
 * Applied via clip-path.  The 8-degree angle is approximated with a
 * polygon offset of ~5vw at the edge.  Use on the section itself, not
 * on a pseudo-element, so background colour fills the clipped shape.
 */
.eftc-diagonal-top {
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(var(--eftc-space-3xl) + 5vw);
}

.eftc-diagonal-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
    padding-bottom: calc(var(--eftc-space-3xl) + 5vw);
}

@media (min-width: 1280px) {
    .eftc-diagonal-top {
        padding-top: calc(var(--eftc-space-4xl) + 5vw);
    }

    .eftc-diagonal-bottom {
        padding-bottom: calc(var(--eftc-space-4xl) + 5vw);
    }
}

/* ==========================================================================
   5. CARD COMPONENTS
   ========================================================================== */

.eftc-card {
    background-color: var(--eftc-white);
    border-radius: var(--eftc-radius-lg);
    box-shadow: var(--eftc-shadow-card);
    padding: var(--eftc-space-lg);
    border-top: 3px solid var(--eftc-gold);
    transition: box-shadow var(--eftc-transition), transform var(--eftc-transition);
}

.eftc-card:hover {
    box-shadow: var(--eftc-shadow-hover);
    transform: translateY(-4px);
}

.eftc-card__title {
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    color: var(--eftc-navy);
    font-size: 1.25rem;
    margin: 0 0 var(--eftc-space-sm) 0;
}

.eftc-card__body {
    font-family: var(--eftc-font-body);
    color: var(--eftc-charcoal);
    font-size: 1rem;
    line-height: 1.6;
}

/** Highlight card: gold left border for emphasis. */
.eftc-card--highlight {
    border-left: 4px solid var(--eftc-gold);
}

/** CTA card: centered, square-proportioned layout for cross-link cards. */
.eftc-card--cta {
    padding: var(--eftc-space-2xl) var(--eftc-space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1 / 1;
    justify-content: center;
}

/** SVG icon container for CTA cards. */
.eftc-card__icon {
    width: 48px;
    height: 48px;
    color: var(--eftc-gold);
    margin-bottom: var(--eftc-space-md);
}

/** Navy button: solid navy bg, white text, lift on hover (SGO style). */
.eftc-btn--navy {
    background-color: var(--eftc-navy);
    color: var(--eftc-white);
    border-color: var(--eftc-navy);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.eftc-btn--navy:hover {
    background-color: var(--eftc-navy-hover);
    color: var(--eftc-white);
    border-color: var(--eftc-navy-hover);
    transform: translateY(-1px);
    box-shadow: var(--eftc-shadow-md);
}

/* ==========================================================================
   6. BUTTON COMPONENTS
   ========================================================================== */

.eftc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--eftc-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color var(--eftc-transition),
                color var(--eftc-transition),
                border-color var(--eftc-transition),
                box-shadow var(--eftc-transition);
}

.eftc-btn:hover {
    text-decoration: none;
}

.eftc-btn:focus-visible {
    outline: 3px solid var(--eftc-navy);
    outline-offset: 2px;
    box-shadow: var(--eftc-focus-ring);
}

.eftc-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

/** Primary — gold background, charcoal text for WCAG contrast. The main CTA. */
.eftc-btn--primary {
    background-color: var(--eftc-gold);
    color: var(--eftc-charcoal);
    border-color: var(--eftc-gold);
}

.eftc-btn--primary:hover {
    background-color: var(--eftc-gold-hover);
    border-color: var(--eftc-gold-hover);
    color: var(--eftc-charcoal);
}

/** Secondary — navy outline, transparent background. */
.eftc-btn--secondary {
    background-color: transparent;
    color: var(--eftc-navy);
    border-color: var(--eftc-navy);
}

.eftc-btn--secondary:hover {
    background-color: var(--eftc-navy);
    color: var(--eftc-white);
    border-color: var(--eftc-navy);
}

/** Size variants. */
.eftc-btn--large {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.eftc-btn--block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   7. STATUS BADGES
   ========================================================================== */

.eftc-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.eftc-badge--opted-in {
    background-color: var(--eftc-status-green);
    color: var(--eftc-white);
}

.eftc-badge--pending {
    background-color: var(--eftc-status-amber);
    color: var(--eftc-charcoal);
}

.eftc-badge--not-opted-in {
    background-color: var(--eftc-status-gray);
    color: var(--eftc-white);
}

.eftc-badge--opted-out {
    background-color: var(--eftc-status-red);
    color: var(--eftc-white);
}

/* ==========================================================================
   8. FORM COMPONENTS
   ========================================================================== */

.eftc-form-group {
    margin-bottom: var(--eftc-space-lg);
}

.eftc-form-label {
    display: block;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--eftc-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--eftc-space-xs);
}

.eftc-form-input,
.eftc-form-select,
.eftc-form-textarea {
    display: block;
    width: 100%;
    font-family: var(--eftc-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--eftc-charcoal);
    background-color: var(--eftc-white);
    border: 1px solid var(--eftc-gray-200);
    border-radius: var(--eftc-radius-md);
    padding: 0.625rem 0.75rem;
    transition: border-color var(--eftc-transition), box-shadow var(--eftc-transition);
}

.eftc-form-input:focus-visible,
.eftc-form-select:focus-visible,
.eftc-form-textarea:focus-visible {
    outline: 3px solid var(--eftc-navy);
    outline-offset: 2px;
    border-color: var(--eftc-gold);
    box-shadow: var(--eftc-focus-ring);
}

.eftc-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.eftc-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B5563' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.eftc-form-error {
    display: flex;
    align-items: center;
    gap: var(--eftc-space-xs);
    font-family: var(--eftc-font-body);
    font-size: 0.875rem;
    color: var(--eftc-error);
    margin-top: var(--eftc-space-xs);
}

.eftc-form-error::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EF4444'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23EF4444' stroke-width='1.5'/%3E%3Cpath d='M8 4v5M8 11v1' stroke='%23EF4444' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
}

/* ==========================================================================
   9. HERO COMPONENT
   ========================================================================== */

.eftc-hero {
    background-color: var(--eftc-navy);
    color: var(--eftc-white);
    padding: var(--eftc-space-3xl) 0;
    width: 100%;
}

@media (min-width: 1280px) {
    .eftc-hero {
        padding: var(--eftc-space-4xl) 0;
    }
}

.eftc-hero__title {
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--eftc-white);
    margin: 0 0 var(--eftc-space-md) 0;
}

.eftc-hero .eftc-hero__subtitle {
    font-family: var(--eftc-font-body);
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto var(--eftc-space-xl) auto;
    max-width: 600px;
}

.eftc-hero__cta {
    display: inline-flex;
    gap: var(--eftc-space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.eftc-hero__grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: var(--eftc-space-md);
    justify-content: center;
    margin-top: var(--eftc-space-lg);
}

@media (max-width: 480px) {
    .eftc-hero__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   10. BREADCRUMB
   ========================================================================== */

.eftc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eftc-space-xs);
    list-style: none;
    padding: var(--eftc-space-md) 0;
    margin: 0;
    font-family: var(--eftc-font-body);
    font-size: 0.875rem;
    color: var(--eftc-gray-600);
}

.eftc-breadcrumb li {
    display: flex;
    align-items: center;
    gap: var(--eftc-space-xs);
}

/* Separator arrow between breadcrumb items. */
.eftc-breadcrumb li + li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 10px;
    margin-right: var(--eftc-space-xs);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10'%3E%3Cpath d='M1 1l4 4-4 4' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.eftc-breadcrumb a {
    color: var(--eftc-navy);
}

.eftc-breadcrumb a:hover {
    color: var(--eftc-gold);
}

/* ==========================================================================
   11. FAQ ACCORDION
   ========================================================================== */

.eftc-accordion {
    border-top: 1px solid var(--eftc-gray-200);
}

.eftc-accordion__item {
    border-bottom: 1px solid var(--eftc-gray-200);
}

.eftc-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--eftc-space-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--eftc-navy);
    text-align: left;
    line-height: 1.3;
}

.eftc-accordion__trigger:hover {
    color: var(--eftc-navy-hover);
}

.eftc-accordion__trigger:focus-visible {
    outline: 3px solid var(--eftc-navy);
    outline-offset: 2px;
    box-shadow: var(--eftc-focus-ring);
}

/* Expand/collapse chevron indicator. */
.eftc-accordion__trigger::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-left: var(--eftc-space-md);
    border-right: 2px solid var(--eftc-navy);
    border-bottom: 2px solid var(--eftc-navy);
    transform: rotate(45deg);
    transition: transform var(--eftc-transition);
}

.eftc-accordion__trigger[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

.eftc-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--eftc-transition-slow);
}

.eftc-accordion__content[aria-hidden="false"] {
    max-height: 1000px;
}

.eftc-accordion__content-inner {
    padding: 0 0 var(--eftc-space-lg) 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--eftc-gray-600);
}

/* ==========================================================================
   12. WIZARD STEP INDICATOR
   ========================================================================== */

.eftc-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--eftc-space-sm);
    padding: var(--eftc-space-xl) 0;
    list-style: none;
    margin: 0;
    counter-reset: wizard-step;
}

.eftc-wizard-steps__step {
    display: flex;
    align-items: center;
    gap: var(--eftc-space-sm);
    counter-increment: wizard-step;
}

/* Connector line between steps. */
.eftc-wizard-steps__step + .eftc-wizard-steps__step::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background-color: var(--eftc-gray-200);
}

@media (min-width: 768px) {
    .eftc-wizard-steps__step + .eftc-wizard-steps__step::before {
        width: 4rem;
    }
}

/* Step circle (number inside). */
.eftc-wizard-steps__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
    border: 2px solid var(--eftc-gray-200);
    background-color: var(--eftc-white);
    color: var(--eftc-gray-400);
    transition: background-color var(--eftc-transition),
                border-color var(--eftc-transition),
                color var(--eftc-transition);
}

/* Active step — gold filled. */
.eftc-wizard-steps__step--active .eftc-wizard-steps__circle {
    background-color: var(--eftc-gold);
    border-color: var(--eftc-gold);
    color: var(--eftc-navy);
}

/* Completed step — green with checkmark. */
.eftc-wizard-steps__step--complete .eftc-wizard-steps__circle {
    background-color: var(--eftc-status-green);
    border-color: var(--eftc-status-green);
    color: var(--eftc-white);
}

/* Connector line turns green when previous step is complete. */
.eftc-wizard-steps__step--complete + .eftc-wizard-steps__step::before {
    background-color: var(--eftc-status-green);
}

/* Step label text. */
.eftc-wizard-steps__label {
    display: none;
    font-family: var(--eftc-font-body);
    font-size: 0.75rem;
    color: var(--eftc-gray-600);
}

.eftc-wizard-steps__step--active .eftc-wizard-steps__label {
    color: var(--eftc-navy);
    font-weight: 700;
}

@media (min-width: 768px) {
    .eftc-wizard-steps__label {
        display: block;
    }
}

/* Pending step — default (gray outline). No extra class needed. */

/* ==========================================================================
   13. UTILITY CLASSES
   ========================================================================== */

/* --- Text Alignment --- */
.eftc-text-center { text-align: center; }
.eftc-text-left   { text-align: left; }
.eftc-text-right  { text-align: right; }

/* --- Margin Top --- */
.eftc-mt-xs  { margin-top: var(--eftc-space-xs); }
.eftc-mt-sm  { margin-top: var(--eftc-space-sm); }
.eftc-mt-md  { margin-top: var(--eftc-space-md); }
.eftc-mt-lg  { margin-top: var(--eftc-space-lg); }
.eftc-mt-xl  { margin-top: var(--eftc-space-xl); }
.eftc-mt-2xl { margin-top: var(--eftc-space-2xl); }
.eftc-mt-3xl { margin-top: var(--eftc-space-3xl); }
.eftc-mt-4xl { margin-top: var(--eftc-space-4xl); }

/* --- Margin Bottom --- */
.eftc-mb-xs  { margin-bottom: var(--eftc-space-xs); }
.eftc-mb-sm  { margin-bottom: var(--eftc-space-sm); }
.eftc-mb-md  { margin-bottom: var(--eftc-space-md); }
.eftc-mb-lg  { margin-bottom: var(--eftc-space-lg); }
.eftc-mb-xl  { margin-bottom: var(--eftc-space-xl); }
.eftc-mb-2xl { margin-bottom: var(--eftc-space-2xl); }
.eftc-mb-3xl { margin-bottom: var(--eftc-space-3xl); }
.eftc-mb-4xl { margin-bottom: var(--eftc-space-4xl); }

/* --- Visibility --- */
.eftc-hidden  { display: none !important; }
.eftc-visible { display: block !important; }

/* Screen-reader only — visually hidden but accessible to assistive tech. */
.eftc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   14. ANIMATIONS
   ========================================================================== */

@keyframes eftcFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes eftcSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eftc-fade-in {
    animation: eftcFadeIn 0.6s ease forwards;
}

.eftc-slide-up {
    animation: eftcSlideUp 0.6s ease forwards;
}

/* ==========================================================================
   15. LEAD CAPTURE LAYOUT (form + guide cover side-by-side)
   ========================================================================== */

/**
 * Side-by-side layout: form (left) + guide cover preview (right).
 * On mobile: stacks vertically with cover above form (reverse order
 * because the cover acts as a visual hook before the form).
 */
.eftc-lead-capture-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--eftc-space-xl);
    align-items: start;
}

@media (min-width: 768px) {
    .eftc-lead-capture-layout {
        grid-template-columns: 1fr 340px;
        gap: var(--eftc-space-2xl);
    }
}

@media (min-width: 1280px) {
    .eftc-lead-capture-layout {
        grid-template-columns: 1fr 400px;
    }
}

/** On mobile, show the preview first (above the form) */
.eftc-lead-capture-layout__preview {
    order: -1;
}

@media (min-width: 768px) {
    .eftc-lead-capture-layout__preview {
        order: 0;
        position: sticky;
        top: var(--eftc-space-xl);
    }
}

/** Guide cover card */
.eftc-guide-preview {
    background: var(--eftc-white);
    border-radius: var(--eftc-radius-lg);
    box-shadow: var(--eftc-shadow-card);
    padding: var(--eftc-space-lg);
    text-align: center;
}

.eftc-guide-preview__cover {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--eftc-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: var(--eftc-space-md);
}

.eftc-guide-preview__caption {
    font-family: var(--eftc-font-body);
    font-size: 0.875rem;
    color: var(--eftc-gray-600);
    margin-bottom: var(--eftc-space-md);
    line-height: 1.5;
}

.eftc-guide-preview__highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.eftc-guide-preview__highlights li {
    font-family: var(--eftc-font-body);
    font-size: 0.875rem;
    color: var(--eftc-charcoal);
    padding: var(--eftc-space-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.eftc-guide-preview__highlights li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--eftc-success);
    font-weight: 700;
}

/* ==========================================================================
   16. RESPONSIVE HELPERS
   ========================================================================== */

/* Hidden below 768px (tablet breakpoint). */
.eftc-hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .eftc-hide-mobile {
        display: block;
    }
}

/* Hidden at 768px and above. */
@media (min-width: 768px) {
    .eftc-hide-desktop {
        display: none;
    }
}

/**
 * Mobile centering — on viewports < 768px, hero CTA wrappers and
 * form button groups center their children so buttons don't
 * left-align awkwardly on small screens.
 */
@media (max-width: 767px) {
    .eftc-hero__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--eftc-space-sm);
    }

    .eftc-hero__cta .eftc-btn {
        width: 100%;
        max-width: 320px;
    }

    .eftc-form-group .eftc-btn {
        width: 100%;
    }
}

/* ==========================================================================
   17. MAP
   ========================================================================== */

/* --- 17a. Map container & SVG ------------------------------------------- */

#eftc-map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto var(--eftc-space-lg) auto;
}

#eftc-map-container svg {
    width: 100%;
    height: auto;
}

/* --- 17b. State paths --------------------------------------------------- */

#eftc-map-container .eftc-map-state {
    cursor: pointer;
    stroke: var(--eftc-white);
    stroke-width: 1;
    transition: fill 0.2s ease, stroke-width 0.2s ease;
}

#eftc-map-container .eftc-map-state:hover {
    stroke-width: 2;
}

#eftc-map-container .eftc-map-state:focus-visible {
    outline: 2px solid var(--eftc-gold);
    outline-offset: 1px;
}

/* --- 17c. Map Legend ----------------------------------------------------- */

.eftc-map-legend {
    display: flex;
    justify-content: center;
    gap: var(--eftc-space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--eftc-space-xl);
}

.eftc-map-legend__item {
    display: flex;
    align-items: center;
    gap: var(--eftc-space-sm);
}

.eftc-map-legend__swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: var(--eftc-radius-sm);
    flex-shrink: 0;
}

.eftc-map-legend__label {
    font-family: var(--eftc-font-body);
    font-size: 0.875rem;
    color: var(--eftc-gray-600);
    white-space: nowrap;
}

/* --- 17d. CTA Popup ----------------------------------------------------- */

/**
 * The popup uses a full-viewport fixed overlay (transparent) with a
 * positioned card.  The overlay catches outside clicks to dismiss.
 * Card position is set via inline styles by JS.
 */
.eftc-map-cta-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
}

.eftc-map-cta-popup--visible {
    display: block;
}

.eftc-map-cta-popup__card {
    position: fixed;
    width: 260px;
    background-color: var(--eftc-white);
    border-radius: var(--eftc-radius-lg);
    box-shadow: var(--eftc-shadow-lg);
    padding: var(--eftc-space-lg);
    text-align: center;
    z-index: 10002;
    animation: eftcFadeIn 0.2s ease forwards;
}

.eftc-map-cta-popup__close {
    position: absolute;
    top: var(--eftc-space-sm);
    right: var(--eftc-space-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--eftc-gray-400);
    border-radius: 50%;
    transition: color var(--eftc-transition), background-color var(--eftc-transition);
}

.eftc-map-cta-popup__close:hover {
    color: var(--eftc-charcoal);
    background-color: var(--eftc-gray-100);
}

.eftc-map-cta-popup__close:focus-visible {
    outline: 2px solid var(--eftc-gold);
    outline-offset: 1px;
}

.eftc-map-cta-popup__title {
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--eftc-navy);
    margin: 0 0 var(--eftc-space-sm) 0;
}

/* Status badges within the popup. */
.eftc-map-cta-popup__badge {
    display: inline-block;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 0.6875rem;
    line-height: 1;
    padding: 0.3125rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--eftc-space-md);
}

.eftc-map-cta-popup__badge--opted-in {
    background-color: #1D3769;
    color: var(--eftc-white);
}

.eftc-map-cta-popup__badge--pending {
    background-color: #D8A83B;
    color: var(--eftc-charcoal);
}

.eftc-map-cta-popup__badge--not-opted-in {
    background-color: #B8B8B8;
    color: var(--eftc-charcoal);
}

.eftc-map-cta-popup__badge--opted-out {
    background-color: #C05050;
    color: var(--eftc-white);
}

/* Primary CTA button inside popup. */
.eftc-map-cta-popup__action {
    display: block;
    width: 100%;
    margin-bottom: var(--eftc-space-sm);
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
}

/* Secondary detail link. */
.eftc-map-cta-popup__detail {
    display: inline-block;
    font-family: var(--eftc-font-body);
    font-size: 0.8125rem;
    color: var(--eftc-navy);
    text-decoration: underline;
    transition: color var(--eftc-transition);
}

.eftc-map-cta-popup__detail:hover {
    color: var(--eftc-gold);
}

.eftc-map-cta-popup__detail:focus-visible {
    outline: 2px solid var(--eftc-gold);
    outline-offset: 2px;
}

/* --- 17e. Responsive adjustments ---------------------------------------- */

@media (max-width: 480px) {
    .eftc-map-cta-popup__card {
        width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem;
    }

    .eftc-map-legend {
        flex-direction: column;
        align-items: center;
        gap: var(--eftc-space-sm);
    }
}

/* ==========================================================================
   18. NAVIGATOR
   ========================================================================== */

/**
 * Iframe wrapper: constrains the navigator to a readable max-width.
 * The iframe itself fills the wrapper with no visible border.
 */
.eftc-navigator-iframe-wrapper {
    max-width: 1000px;
    min-height: 600px;
    margin: 0 auto;
    border-radius: var(--eftc-radius-lg);
    overflow: hidden;
    box-shadow: var(--eftc-shadow-card);
    background-color: var(--eftc-gray-50);
}

.eftc-navigator-iframe-wrapper iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
}

/** Fallback card: shown when iframe cannot load. */
.eftc-navigator-fallback {
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .eftc-navigator-iframe-wrapper {
        min-height: 400px;
    }

    .eftc-navigator-iframe-wrapper iframe {
        height: 500px;
    }
}

/* ==========================================================================
   19. GOVERNOR PHOTO
   ========================================================================== */

.eftc-governor-photo {
    flex-shrink: 0;
}

.eftc-governor-photo__img {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.eftc-governor-photo__badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--eftc-navy);
    color: var(--eftc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   20. READINESS CHECKLIST
   ========================================================================== */

.eftc-readiness-checklist {
    max-width: 720px;
    margin: 0 auto;
}

.eftc-readiness-checklist__step {
    display: flex;
    gap: var(--eftc-space-lg);
    padding: var(--eftc-space-lg) 0;
    border-bottom: 1px solid var(--eftc-gray-200);
    align-items: flex-start;
}

.eftc-readiness-checklist__step:last-child {
    border-bottom: none;
}

.eftc-readiness-checklist__number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--eftc-gold);
    color: var(--eftc-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
}

.eftc-readiness-checklist__content {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   21. DATA CARD (HUD income table)
   ========================================================================== */

.eftc-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--eftc-space-md);
}

.eftc-data-table th {
    background-color: var(--eftc-navy);
    color: var(--eftc-white);
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--eftc-space-sm) var(--eftc-space-md);
    text-align: left;
    border-bottom: 2px solid var(--eftc-navy-dark);
}

.eftc-data-table td {
    padding: var(--eftc-space-sm) var(--eftc-space-md);
    border-bottom: 1px solid var(--eftc-gray-200);
    font-size: 0.9375rem;
}

.eftc-data-table__base-row td {
    font-weight: 700;
    background-color: var(--eftc-gold-light);
}

/* ==========================================================================
   22. SECTION NAVIGATION
   ========================================================================== */

/**
 * Sticky section nav bar. z-index: 100 sits below Divi header (higher z)
 * but above all page content. If Divi's header height changes, Paul may
 * need to adjust the `top` value to account for it.
 */
.eftc-section-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--eftc-white);
    border-bottom: 1px solid var(--eftc-gray-200);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/** Logo group — always visible. Logo image + divider + label. */
.eftc-section-nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.eftc-section-nav__logo img {
    height: 47px;
    width: auto;
}

/** "EFTC Resources" label — hidden on mobile, visible on desktop. */
.eftc-section-nav__label {
    display: none;
    font-family: var(--eftc-font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--eftc-gray-600);
    border-left: 1px solid var(--eftc-gray-300);
    padding-left: 8px;
}

/** Hamburger toggle button — mobile only. */
.eftc-section-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.eftc-section-nav__hamburger {
    display: block;
    width: 1.25rem;
    height: 2px;
    background-color: var(--eftc-navy);
    position: relative;
    transition: background-color var(--eftc-transition-fast);
}

.eftc-section-nav__hamburger::before,
.eftc-section-nav__hamburger::after {
    content: '';
    display: block;
    width: 1.25rem;
    height: 2px;
    background-color: var(--eftc-navy);
    position: absolute;
    left: 0;
    transition: transform var(--eftc-transition-fast);
}

.eftc-section-nav__hamburger::before {
    top: -6px;
}

.eftc-section-nav__hamburger::after {
    top: 6px;
}

/** Animate hamburger to X when open. */
.eftc-section-nav__toggle[aria-expanded="true"] .eftc-section-nav__hamburger {
    background-color: transparent;
}

.eftc-section-nav__toggle[aria-expanded="true"] .eftc-section-nav__hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.eftc-section-nav__toggle[aria-expanded="true"] .eftc-section-nav__hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

/** Nav list — hidden by default on mobile, dropdown on open. */
.eftc-section-nav__list {
    display: none;
    list-style: none;
    margin: 0;
    padding: var(--eftc-space-sm) 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--eftc-white);
    border-bottom: 1px solid var(--eftc-gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 101;
}

.eftc-section-nav__list--open {
    display: block;
}

.eftc-section-nav__list a {
    display: block;
    padding: var(--eftc-space-sm) var(--eftc-space-md);
    font-family: var(--eftc-font-body);
    font-size: 0.9375rem;
    color: var(--eftc-charcoal);
    text-decoration: none;
    transition: color var(--eftc-transition-fast), background-color var(--eftc-transition-fast);
}

.eftc-section-nav__list a:hover,
.eftc-section-nav__list a:focus {
    color: var(--eftc-gold);
    background-color: var(--eftc-gray-50);
}

.eftc-section-nav__item--active a {
    color: var(--eftc-gold);
    font-weight: 700;
}

/** Desktop: horizontal flex layout, no hamburger, no dropdown. */
@media (min-width: 768px) {
    .eftc-section-nav__label {
        display: block;
    }

    .eftc-section-nav__toggle {
        display: none;
    }

    .eftc-section-nav__list,
    .eftc-section-nav__list--open {
        display: flex;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0;
    }

    .eftc-section-nav__list a {
        position: relative;
        padding: var(--eftc-space-md) var(--eftc-space-lg);
        font-family: var(--eftc-font-heading);
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }

    /** Animated gold underline — expands from center on hover. */
    .eftc-section-nav__list a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--eftc-gold);
        transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1),
                    left 250ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .eftc-section-nav__list a:hover::after,
    .eftc-section-nav__list a:focus::after {
        width: 100%;
        left: 0;
    }

    .eftc-section-nav__list a:hover,
    .eftc-section-nav__list a:focus {
        background-color: transparent;
    }

    .eftc-section-nav__item--active a {
        color: var(--eftc-gold);
    }

    .eftc-section-nav__item--active a::after {
        width: 100%;
        left: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .eftc-section-nav__list a {
        padding: var(--eftc-space-md) var(--eftc-space-md);
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   23. FOOTER
   ========================================================================== */

.eftc-footer {
    background-color: var(--eftc-navy-dark);
    color: var(--eftc-white);
    font-family: var(--eftc-font-body);
    padding: 64px 0 0;
}

.eftc-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.eftc-footer__brand img {
    height: 40px;
    width: auto;
    margin-bottom: var(--eftc-space-md);
}

.eftc-footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 32ch;
    margin: 0;
}

.eftc-footer__heading {
    font-family: var(--eftc-font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--eftc-gold);
    margin: 0 0 var(--eftc-space-md) 0;
}

.eftc-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eftc-footer__links li {
    margin-bottom: var(--eftc-space-sm);
}

.eftc-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 150ms ease;
}

.eftc-footer__links a:hover,
.eftc-footer__links a:focus {
    color: var(--eftc-white);
}

.eftc-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 48px;
    padding: var(--eftc-space-lg) 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.eftc-footer__bottom a {
    color: var(--eftc-gold);
    text-decoration: none;
    transition: color 150ms ease;
}

.eftc-footer__bottom a:hover,
.eftc-footer__bottom a:focus {
    color: var(--eftc-gold-hover);
}

@media (max-width: 1024px) {
    .eftc-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .eftc-footer {
        padding: 48px 0 0;
    }

    .eftc-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .eftc-footer__brand p {
        max-width: none;
    }

    .eftc-footer__bottom {
        flex-direction: column;
        gap: var(--eftc-space-sm);
        text-align: center;
    }
}

/* ==========================================================================
   25. COMPONENT UTILITY CLASSES
   ========================================================================== */

/* Map Legend */
.eftc-map-legend {
    display: flex;
    justify-content: center;
    gap: var(--eftc-space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--eftc-space-xl);
}

.eftc-map-legend__item {
    display: flex;
    align-items: center;
    gap: var(--eftc-space-sm);
}

.eftc-map-legend__dot {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: var(--eftc-radius-sm);
}

.eftc-map-legend__dot--opted-in { background-color: var(--eftc-success); }
.eftc-map-legend__dot--pending { background-color: var(--eftc-warning); }
.eftc-map-legend__dot--not-opted-in { background-color: var(--eftc-gray-300); }

.eftc-map-legend__label {
    font-size: 0.875rem;
    color: var(--eftc-gray-600);
}

@media (max-width: 480px) {
    .eftc-map-legend {
        gap: var(--eftc-space-md);
        flex-direction: column;
        align-items: center;
    }
}

/* Stat Value (Quick Facts big numbers) */
.eftc-stat__value {
    font-family: var(--eftc-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--eftc-navy);
    margin-bottom: var(--eftc-space-sm);
}

/* Checkbox Row */
.eftc-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: var(--eftc-space-sm);
}

.eftc-checkbox-row input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
}

.eftc-checkbox-row label {
    font-family: var(--eftc-font-body);
    font-size: 0.9375rem;
    color: var(--eftc-gray-600);
    cursor: pointer;
}

/* Success Banner */
.eftc-success-banner {
    background-color: #ecfdf5;
    border: 1px solid var(--eftc-success);
    border-radius: var(--eftc-radius-md);
    padding: var(--eftc-space-md) var(--eftc-space-lg);
    margin-bottom: var(--eftc-space-xl);
    text-align: center;
}

.eftc-success-banner p {
    font-weight: 700;
    color: var(--eftc-success);
    margin: 0;
}

/* Wizard Buttons */
.eftc-wizard-buttons {
    display: flex;
    justify-content: space-between;
    gap: var(--eftc-space-md);
    margin-top: var(--eftc-space-xl);
}

@media (max-width: 480px) {
    .eftc-wizard-buttons {
        flex-direction: column;
    }
    .eftc-wizard-buttons .eftc-btn {
        flex: none;
        min-width: 0;
        width: 100%;
    }
}

/**
 * RENDER PERFORMANCE
 *
 * content-visibility: auto tells the browser to skip layout and paint
 * for off-screen sections until the user scrolls near them. The
 * contain-intrinsic-size hint prevents layout shift.
 */
.eftc-section:not(:first-child) {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ==========================================================================
   26. DIVI OVERRIDES
   ========================================================================== */

/**
 * Force EFTC pages to use full viewport width — Divi sometimes wraps
 * content in a constrained-width container.
 */
.eftc-page #main-content .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/**
 * Ensure EFTC hero sections are truly edge-to-edge, overriding any
 * Divi row/column padding that might exist.
 */
.eftc-page .eftc-hero {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/**
 * Divi parent theme sets h1 color to navy with high specificity.
 * Override it for hero titles and any heading inside the hero.
 */
.eftc-hero .eftc-hero__title,
.eftc-hero h1 {
    color: var(--eftc-white);
}

