/* ============================================================
   ELIGIBILITY CHECK - TACTILE MAXIMALISM
   Claymorphic depth, Royal Sapphire conduit, and spring physics
   for the eligibility wizard flow.
   Depends on --hiw-* variables from HowItWorksTactile.css
   ============================================================ */


/* ===========================
   1. ROYAL SAPPHIRE CONDUIT
   (Progress Indicator)
   =========================== */

.elig-conduit {
    margin-bottom: 32px;
}

.elig-conduit__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
}

.elig-conduit__track {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: #e8eaf6;
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.08),
        inset -1px -1px 3px rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(255, 255, 255, 0.5);
    overflow: visible;
}

.elig-conduit__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        var(--hiw-sapphire-light, #6366f1) 0%,
        var(--hiw-sapphire-main, #4338ca) 60%,
        var(--hiw-sapphire-dark, #312e81) 100%
    );
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        0 2px 6px var(--hiw-sapphire-glow, rgba(67, 56, 202, 0.4));
    transition: width 550ms linear(
        0, 0.1719, 0.4986, 0.7952, 0.9887, 1.0779, 1.0939,
        1.0726, 1.0412, 1.0148, 0.9986, 0.9919, 0.9913,
        0.9937, 0.9967, 0.999, 1.0003, 1
    );
    min-width: 20px;
}

.elig-conduit__bead {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        /* Specular highlight */
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
        /* Sapphire gradient */
        linear-gradient(145deg, #a5b4fc 0%, #6366f1 40%, #4338ca 80%, #312e81 100%);
    border: 3px solid #ffffff;
    box-shadow:
        0 3px 8px var(--sapphire-main-35),
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
    transition: transform 550ms linear(
        0, 0.1719, 0.4986, 0.7952, 0.9887, 1.0779, 1.0939,
        1.0726, 1.0412, 1.0148, 0.9986, 0.9919, 0.9913,
        0.9937, 0.9967, 0.999, 1.0003, 1
    );
    z-index: 2;
}


/* --- 1B. PROGRESS HEADER ROW --- */

.elig-progress-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.elig-progress-header__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 200ms ease, color 200ms ease;
}

.elig-progress-header__back:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #334155;
}

.elig-progress-header__back:active {
    background: rgba(0, 0, 0, 0.07);
}

.elig-progress-header__bar {
    flex: 1;
    min-width: 0;
}

/* Remove conduit's own margin when inside the header row */
.elig-progress-header__bar .elig-conduit {
    margin-bottom: 0;
}


/* ===========================
   2. FLOATING CLAY OPTION CARDS
   (Radio Question Options)
   =========================== */

.elig-clay-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 20px;
    border: none;
    background: #ffffff;
    cursor: pointer;
    box-shadow:
        5px 5px 14px rgba(0, 0, 0, 0.05),
        -3px -3px 8px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition:
        transform 450ms var(--hiw-spring-easing, ease),
        box-shadow 300ms ease,
        background 200ms ease;
    will-change: transform;
    user-select: none;
}

.elig-clay-option + .elig-clay-option {
    margin-top: 14px;
}

.elig-clay-option:hover {
    transform: translateY(-2px);
    box-shadow:
        7px 8px 18px rgba(0, 0, 0, 0.07),
        -3px -3px 10px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.elig-clay-option:active {
    transform: translateY(1px) scale(0.99);
}

.elig-clay-option--selected {
    transform: translateY(1px);
    background: linear-gradient(135deg, var(--sapphire-light-4) 0%, var(--sapphire-dark-2, rgba(67, 56, 202, 0.02)) 100%);
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.06),
        inset -2px -2px 5px rgba(255, 255, 255, 0.7),
        1px 1px 4px rgba(0, 0, 0, 0.03);
}

.elig-clay-option--selected:hover {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.06),
        inset -2px -2px 5px rgba(255, 255, 255, 0.7),
        1px 1px 4px rgba(0, 0, 0, 0.03);
}

.elig-clay-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Unselected dimple */
.elig-clay-option__dimple {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #eef1f5 0%, #e2e8f0 100%);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.14),
        inset -2px -2px 4px rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Selected check bead */
.elig-clay-option__check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        /* Specular highlight */
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        /* Teal gradient */
        linear-gradient(145deg, #5dd8e8 0%, #00bcd4 50%, #008c9e 100%);
    box-shadow:
        0 0 8px rgba(38, 198, 218, 0.4),
        0 2px 4px rgba(0, 80, 90, 0.2),
        inset 0 -2px 3px rgba(0, 80, 90, 0.3);
    position: relative;
}

/* Checkmark inside bead */
.elig-clay-option__check::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 12px;
    height: 12px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.2) 60%,
        transparent 70%
    );
    clip-path: polygon(
        14% 50%, 28% 38%, 42% 55%,
        78% 18%, 90% 30%, 42% 80%
    );
    filter: drop-shadow(0 1px 1px rgba(0, 60, 70, 0.3));
}

.elig-clay-option__label {
    font-size: 0.95rem;
    font-weight: 400;
    color: #1e293b;
    line-height: 1.4;
}

.elig-clay-option--selected .elig-clay-option__label {
    font-weight: 500;
    color: #0f172a;
}

/* Fast-track CTA link */
.elig-fast-track {
    margin-top: 40px;
    padding: 20px 24px;
    border-radius: 16px;
    text-align: center;
    color: #475569;
    line-height: 1.5;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.elig-fast-track__heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.elig-fast-track-link {
    font-size: 1rem;
    font-weight: 500;
    color: #4338ca;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(67, 56, 202, 0.3);
    transition: text-decoration-color 0.8s ease, color 0.8s ease, font-weight 0.8s ease,
        background-color 0.8s ease, padding 0.8s ease;
    border-radius: 6px;
}

.elig-fast-track-link:hover {
    text-decoration-color: rgba(67, 56, 202, 0.8);
}

/* Highlight after idle - applied to the <a> for GTM click tracking */
.elig-fast-track-link.elig-fast-track--highlight {
    color: #3730a3;
    font-weight: 600;
    text-decoration-color: rgba(67, 56, 202, 0.7);
    background: rgba(99, 102, 241, 0.08);
    padding: 6px 12px;
}


/* ===========================
   3. FLOATING CLAY GOAL CARDS
   (Form Selection Step)
   =========================== */

.elig-goal-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    cursor: pointer;
    height: 100%;
    box-shadow:
        var(--clay-shadow-rest,
            0 2px 32px rgba(0, 0, 0, 0.04),
            0 8px 48px rgba(0, 0, 0, 0.02),
            inset -4px -4px 10px rgba(255, 255, 255, 0.90),
            inset 4px 4px 10px rgba(0, 0, 0, 0.03)
        );
    transition:
        transform 550ms var(--hiw-spring-easing, ease),
        box-shadow 550ms var(--hiw-spring-easing, ease);
    will-change: transform;
}

.elig-goal-card:hover {
    transform: scale(0.98);
    box-shadow:
        var(--clay-shadow-hover,
            0 1px 20px rgba(0, 0, 0, 0.03),
            0 4px 36px rgba(0, 0, 0, 0.02),
            inset -4px -4px 10px rgba(255, 255, 255, 0.60),
            inset 8px 8px 14px rgba(0, 0, 0, 0.05)
        );
}

.elig-goal-card:active {
    transform: scale(0.97);
    box-shadow:
        0 1px 12px rgba(0, 0, 0, 0.02),
        inset -3px -3px 8px rgba(255, 255, 255, 0.50),
        inset 10px 10px 18px rgba(0, 0, 0, 0.06);
}

.elig-goal-card:focus-visible {
    outline: 3px solid #4338ca;
    outline-offset: 2px;
}

.elig-goal-card--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.elig-goal-card--disabled:hover {
    transform: none;
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.elig-goal-card__icon-well {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--hiw-sapphire-main, #4338ca);
    background: var(--clay-well-bg, linear-gradient(145deg, #F8F9FA 0%, #EEF0F2 100%));
    box-shadow: var(--clay-shadow-well,
        inset 2px 2px 6px rgba(0, 0, 0, 0.04),
        inset -2px -2px 4px rgba(255, 255, 255, 0.90),
        0 2px 8px rgba(0, 0, 0, 0.04)
    );
}

.elig-goal-card__text {
    flex: 1;
    min-width: 0;
}

.elig-goal-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elig-goal-card__subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow chevron */
.elig-goal-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 300ms ease, color 200ms ease;
}

.elig-goal-card:hover .elig-goal-card__arrow {
    transform: translateX(4px);
    color: #4338ca;
}

/* --- Frosted Glass for "Coming Soon" --- */
.elig-goal-card--frosted {
    position: relative;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
    overflow: hidden;
    justify-content: center;
    border: 1px dashed #d1d5db;
    background:
        repeating-linear-gradient(
            45deg,
            #f9fafb,
            #f9fafb 10px,
            #f3f4f6 10px,
            #f3f4f6 20px
        );
}

.elig-goal-card--frosted::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(248, 250, 252, 0.55);
    backdrop-filter: blur(2px) saturate(0.8);
    -webkit-backdrop-filter: blur(2px) saturate(0.8);
    z-index: 1;
}

.elig-goal-card--frosted::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.elig-goal-card--frosted:hover {
    transform: none;
}


/* ===========================
   4. VERIFICATION TRAY
   (Requirements Section)
   =========================== */

.elig-verify-tray {
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    margin-bottom: 24px;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.elig-verify-tray__heading {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
}

.elig-verify-tray__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elig-verify-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.04),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: transform 300ms ease;
}

.elig-verify-chip:hover {
    transform: translateY(-1px);
}

.elig-verify-chip__bead {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    background:
        /* Specular highlight */
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85) 0%, transparent 40%),
        /* Green gradient */
        linear-gradient(145deg, #81c784 0%, #4caf50 50%, #388e3c 100%);
    box-shadow:
        0 2px 5px rgba(76, 175, 80, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 -2px 3px rgba(27, 94, 32, 0.25);
    position: relative;
}

/* Checkmark in green bead */
.elig-verify-chip__bead::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    clip-path: polygon(
        14% 50%, 28% 38%, 42% 55%,
        78% 18%, 90% 30%, 42% 80%
    );
    filter: drop-shadow(0 1px 1px rgba(0, 50, 0, 0.2));
}

.elig-verify-chip__text {
    font-size: 0.9rem;
    font-weight: 450;
    color: #334155;
    line-height: 1.4;
}


/* ===========================
   4B. VALUE STACK
   (Why Check Section - Benefit Grid)
   =========================== */

.elig-value-stack {
    padding: 32px;
    border-radius: 24px;
    background: #f8fafc;
    margin-bottom: 32px;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.05),
        inset -2px -2px 6px rgba(255, 255, 255, 1),
        0 1px 2px rgba(255, 255, 255, 0.5);
}

.elig-value-stack__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.elig-value-stack__intro {
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.elig-value-stack__subheading {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    margin-bottom: 20px;
}

.elig-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.elig-value-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.04),
        -2px -2px 6px rgba(255, 255, 255, 0.9),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: transform 300ms ease;
}

.elig-value-card:hover {
    transform: translateY(-2px);
}

/* Last card in odd-count grid stays in first column (no centering) */

.elig-value-card__bead {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85) 0%, transparent 40%),
        linear-gradient(145deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow:
        0 2px 6px rgba(124, 58, 237, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 -2px 3px rgba(91, 33, 182, 0.25);
    position: relative;
}

.elig-value-card__bead::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.9);
    clip-path: polygon(
        14% 50%, 28% 38%, 42% 55%,
        78% 18%, 90% 30%, 42% 80%
    );
    filter: drop-shadow(0 1px 1px rgba(49, 10, 101, 0.2));
}

.elig-value-card__text {
    font-size: 0.85rem;
    font-weight: 450;
    color: #334155;
    line-height: 1.45;
}

@media (max-width: 599px) {
    .elig-value-stack {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .elig-value-grid {
        grid-template-columns: 1fr;
    }

    .elig-value-card {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .elig-value-stack__heading {
        font-size: 1.25rem;
    }
}


/* ===========================
   4C. FORM INFO CARDS
   (About Forms Section)
   =========================== */

.elig-form-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(90deg, rgba(67, 56, 202, 0.04) 0%, #ffffff 40%);
    box-shadow:
        var(--clay-shadow-rest,
            0 2px 32px rgba(0, 0, 0, 0.04),
            0 8px 48px rgba(0, 0, 0, 0.02),
            inset -4px -4px 10px rgba(255, 255, 255, 0.90),
            inset 4px 4px 10px rgba(0, 0, 0, 0.03)
        );
    transition:
        transform 550ms var(--hiw-spring-easing, ease),
        box-shadow 550ms var(--hiw-spring-easing, ease);
    will-change: transform;
}

.elig-form-card:hover {
    transform: scale(0.98);
    box-shadow:
        var(--clay-shadow-hover,
            0 1px 20px rgba(0, 0, 0, 0.03),
            0 4px 36px rgba(0, 0, 0, 0.02),
            inset -4px -4px 10px rgba(255, 255, 255, 0.60),
            inset 8px 8px 14px rgba(0, 0, 0, 0.05)
        );
}


.elig-form-card__icon-well {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--hiw-sapphire-main, #4338ca);
    background: var(--clay-well-bg, linear-gradient(145deg, #F8F9FA 0%, #EEF0F2 100%));
    box-shadow: var(--clay-shadow-well,
        inset 2px 2px 6px rgba(0, 0, 0, 0.04),
        inset -2px -2px 4px rgba(255, 255, 255, 0.90),
        0 2px 8px rgba(0, 0, 0, 0.04)
    );
}

/* Body content */
.elig-form-card__body {
    flex: 1;
    min-width: 0;
}

.elig-form-card__overline {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hiw-sapphire-main, #4338ca);
    margin-bottom: 2px;
}

.elig-form-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 6px;
}

.elig-form-card__description {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
}

.elig-form-card__req-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.elig-form-card__req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elig-form-card__req-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.4;
}

.elig-form-card__req-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    background: var(--hiw-sapphire-main, #4338ca);
    opacity: 0.5;
}

/* Staggered column container for form cards */
.elig-forms-staggered {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

/* Related form link wrapper */
.elig-related-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}


/* ===========================
   4D. HOW IT WORKS STEPS
   (Connected Step Cards)
   =========================== */

.elig-steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Connector track behind step badges */
.elig-steps-container::before {
    content: '';
    position: absolute;
    top: 46px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.elig-step-card {
    padding: 24px 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 8px 12px -3px rgba(0, 0, 0, 0.02);
    text-align: center;
    position: relative;
    z-index: 1;
}

.elig-step-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 16px;
    border: 4px solid #ffffff;
    background: linear-gradient(
        145deg,
        var(--hiw-sapphire-light, #6366f1) 0%,
        var(--hiw-sapphire-main, #4338ca) 60%,
        var(--hiw-sapphire-dark, #312e81) 100%
    );
    box-shadow:
        0 4px 10px var(--sapphire-main-35),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.elig-step-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.elig-step-card__desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 599px) {
    .elig-steps-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .elig-steps-container::before {
        display: none;
    }

    .elig-step-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .elig-form-card {
        padding: 20px;
        border-radius: 16px;
    }

}


/* ===========================
   4E. FAQ "PILLOW STACK"
   (Separated Card Accordion)
   =========================== */

.elig-faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elig-faq-container .MuiAccordion-root {
    border-radius: 16px !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #ffffff;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 8px 12px -3px rgba(0, 0, 0, 0.02);
    transition:
        box-shadow 300ms ease,
        transform 300ms ease;
}

.elig-faq-container .MuiAccordion-root:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 4px 8px -4px rgba(0, 0, 0, 0.02);
}

.elig-faq-container .MuiAccordion-root.Mui-expanded {
    box-shadow:
        0 10px 20px -5px rgba(0, 0, 0, 0.08),
        0 4px 8px -4px rgba(0, 0, 0, 0.03);
}

.elig-faq-container .MuiAccordionSummary-root {
    min-height: 64px;
    padding: 8px 24px;
    border-radius: 16px;
}

.elig-faq-container .MuiAccordionSummary-content {
    margin: 16px 0;
}

.elig-faq-container .MuiAccordionDetails-root {
    padding: 0 24px 24px;
}


/* ===========================
   5. CONTROL PAD
   (CTA Button Container)
   =========================== */

.elig-control-pad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        5px 5px 14px rgba(0, 0, 0, 0.05),
        -3px -3px 8px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.7);
}


/* ===========================
   6. WIZARD CARD
   (Page-level Container)
   =========================== */

.elig-wizard-card {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    margin-bottom: 48px;
    box-shadow:
        8px 8px 24px var(--sapphire-light-8),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 1px solid var(--sapphire-light-15);
}

@media (min-width: 600px) {
    .elig-wizard-card {
        padding: 40px;
    }
}


/* ===========================
   7. QUESTION HEADING
   (Conversational Typography)
   =========================== */

.elig-question-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-align: center;
}

/* Utility: Tight tracking for section headings */
.elig-tight-heading {
    letter-spacing: -0.025em;
}

/* Tool link shown below question subtitle */
.elig-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4f46e5;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.elig-tool-link:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    text-decoration: none;
}

@media (max-width: 599px) {
    .elig-question-heading {
        font-size: 1.25rem;
    }
}


/* ===========================
   7A. HERO HEADER
   =========================== */

.elig-hero-header {
    text-align: center;
    margin-bottom: 32px;
}

.elig-hero-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}


/* ===========================
   7B. HERO BADGES
   (Trust Signals Row)
   =========================== */

.elig-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.elig-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        /* Outer depth */
        5px 5px 14px rgba(0, 0, 0, 0.06),
        -4px -4px 10px rgba(255, 255, 255, 0.95),
        /* Inner volume — white top-left highlight, dark bottom-right edge */
        inset 2px 2px 5px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 300ms ease, box-shadow 250ms ease;
}

.elig-hero-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        7px 7px 18px rgba(0, 0, 0, 0.08),
        -4px -4px 12px rgba(255, 255, 255, 1),
        inset 2px 2px 5px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.04);
}

/* Badge icon bead — small 3D sphere */
.elig-hero-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #ffffff;
}

.elig-hero-badge--green {
    color: #2e7d32;
}

.elig-hero-badge--green .elig-hero-badge__icon {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 40%),
        linear-gradient(145deg, #81c784 0%, #4caf50 50%, #388e3c 100%);
    box-shadow:
        0 2px 5px rgba(76, 175, 80, 0.35),
        inset 0 -1px 2px rgba(27, 94, 32, 0.25);
}

.elig-hero-badge--blue {
    color: #1565c0;
}

.elig-hero-badge--blue .elig-hero-badge__icon {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 40%),
        linear-gradient(145deg, #64b5f6 0%, #1976d2 50%, #0d47a1 100%);
    box-shadow:
        0 2px 5px rgba(25, 118, 210, 0.35),
        inset 0 -1px 2px rgba(13, 71, 161, 0.25);
}

.elig-hero-badge--grey {
    color: #37474f;
}

.elig-hero-badge--grey .elig-hero-badge__icon {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 40%),
        linear-gradient(145deg, #b0bec5 0%, #78909c 50%, #546e7a 100%);
    box-shadow:
        0 2px 5px rgba(84, 110, 122, 0.3),
        inset 0 -1px 2px rgba(55, 71, 79, 0.25);
}

/* Icon glyph inside the bead (via clip-path) */
.elig-hero-badge__icon::after {
    content: '';
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.elig-hero-badge--green .elig-hero-badge__icon::after {
    clip-path: polygon(
        14% 50%, 28% 38%, 42% 55%,
        78% 18%, 90% 30%, 42% 80%
    );
}

.elig-hero-badge--blue .elig-hero-badge__icon::after {
    /* Clock shape */
    clip-path: polygon(
        50% 0%, 58% 0%, 58% 44%, 80% 44%, 80% 56%,
        42% 56%, 42% 0%, 50% 0%, 50% 8%,
        /* outer circle approx */
        73% 15%, 85% 27%, 92% 43%, 92% 57%,
        85% 73%, 73% 85%, 57% 92%, 43% 92%,
        27% 85%, 15% 73%, 8% 57%, 8% 43%,
        15% 27%, 27% 15%, 43% 8%, 50% 8%
    );
}

.elig-hero-badge--grey .elig-hero-badge__icon::after {
    /* Lock shape */
    clip-path: polygon(
        25% 50%, 25% 95%, 75% 95%, 75% 50%,
        70% 50%, 70% 35%, 65% 20%, 55% 12%,
        45% 12%, 35% 20%, 30% 35%, 30% 50%,
        40% 50%, 40% 38%, 45% 28%, 50% 25%,
        55% 28%, 60% 38%, 60% 50%
    );
}


/* Hero subtitle */
.elig-hero-subtitle {
    font-size: 1.05rem;
    font-weight: 450;
    color: #334155;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 599px) {
    .elig-hero-badges {
        gap: 8px;
        margin-bottom: 28px;
    }

    .elig-hero-badge {
        padding: 5px 12px;
        font-size: 0.75rem;
        border-radius: 18px;
    }

    .elig-hero-badge__icon {
        width: 18px;
        height: 18px;
    }

    .elig-hero-subtitle {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elig-hero-badge {
        transition: none;
    }

    .elig-hero-badge:hover {
        transform: none;
    }
}


/* ===========================
   8. RESPONSIVE
   =========================== */

@media (max-width: 599px) {
    .elig-conduit__bead {
        width: 16px;
        height: 16px;
        right: -8px;
        border-width: 2px;
    }

    .elig-conduit__track {
        height: 10px;
        border-radius: 5px;
    }

    .elig-conduit__fill {
        border-radius: 5px;
        min-width: 16px;
    }

    .elig-clay-option {
        padding: 16px 18px;
        border-radius: 16px;
    }

    .elig-goal-card {
        padding: 14px 16px;
        border-radius: 20px;
    }

    .elig-verify-tray {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .elig-verify-chip {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .elig-control-pad {
        padding: 12px 16px;
        border-radius: 20px;
    }
}


/* ===========================
   9. REDUCED MOTION
   =========================== */

@media (prefers-reduced-motion: reduce) {
    .elig-conduit__fill {
        transition: none;
    }

    .elig-conduit__bead {
        transition: none;
    }

    .elig-clay-option,
    .elig-goal-card,
    .elig-goal-card__arrow,
    .elig-verify-chip,
    .elig-value-card,
    .elig-form-card {
        transition: none;
    }

    .elig-clay-option:hover,
    .elig-goal-card:hover,
    .elig-verify-chip:hover,
    .elig-value-card:hover,
    .elig-form-card:hover {
        transform: none;
    }

    .elig-goal-card:hover .elig-goal-card__arrow {
        transform: none;
    }

    .elig-result-card,
    .elig-result-action,
    .elig-result-cta {
        transition: none;
    }

    .elig-result-cta:hover,
    .elig-result-cta:active {
        transform: none;
    }
}


/* ============================================================
   10. RESULT CARDS
   Claymorphic result pages for eligibility outcomes.
   Color variants via CSS custom properties on the card.
   ============================================================ */

/* --- 10a. Main Card Container --- */

.elig-result-card {
    padding: 28px;
    border-radius: 32px;
    background: var(--result-accent-bg, #ffffff);
    border: 1px solid var(--result-accent-border, rgba(0, 0, 0, 0.06));
    box-shadow:
        /* Outer depth — soft diffused bottom-right + light top-left lift */
        10px 10px 30px rgba(0, 0, 0, 0.06),
        -6px -6px 18px rgba(255, 255, 255, 0.85),
        0 6px 20px rgba(0, 0, 0, 0.04),
        /* Inner volume — white highlight top-left, faint dark bottom-right */
        inset 2px 2px 4px rgba(255, 255, 255, 0.7),
        inset -2px -2px 4px rgba(0, 0, 0, 0.03);
}

@media (min-width: 600px) {
    .elig-result-card {
        padding: 44px;
    }
}

/* --- Color Variants --- */

.elig-result-card--success {
    --result-accent: #4caf50;
    --result-accent-light: #81c784;
    --result-accent-dark: #2e7d32;
    --result-accent-bg: rgba(76, 175, 80, 0.06);
    --result-accent-bg-strong: rgba(76, 175, 80, 0.12);
    --result-accent-border: rgba(76, 175, 80, 0.15);
    --result-accent-glow: rgba(76, 175, 80, 0.35);
}

.elig-result-card--warning {
    --result-accent: #ed6c02;
    --result-accent-light: #ff9800;
    --result-accent-dark: #e65100;
    --result-accent-bg: rgba(237, 108, 2, 0.06);
    --result-accent-bg-strong: rgba(237, 108, 2, 0.12);
    --result-accent-border: rgba(237, 108, 2, 0.18);
    --result-accent-glow: rgba(237, 108, 2, 0.3);
}

.elig-result-card--error {
    --result-accent: #d32f2f;
    --result-accent-light: #ef5350;
    --result-accent-dark: #c62828;
    --result-accent-bg: rgba(211, 47, 47, 0.06);
    --result-accent-bg-strong: rgba(211, 47, 47, 0.12);
    --result-accent-border: rgba(211, 47, 47, 0.18);
    --result-accent-glow: rgba(211, 47, 47, 0.3);
}

.elig-result-card--info {
    --result-accent: #0288d1;
    --result-accent-light: #03a9f4;
    --result-accent-dark: #01579b;
    --result-accent-bg: rgba(2, 136, 209, 0.06);
    --result-accent-bg-strong: rgba(2, 136, 209, 0.12);
    --result-accent-border: rgba(2, 136, 209, 0.18);
    --result-accent-glow: rgba(2, 136, 209, 0.3);
}

.elig-result-card--purple {
    --result-accent: #7c3aed;
    --result-accent-light: #a78bfa;
    --result-accent-dark: #5b21b6;
    --result-accent-bg: rgba(124, 58, 237, 0.06);
    --result-accent-bg-strong: rgba(124, 58, 237, 0.12);
    --result-accent-border: rgba(124, 58, 237, 0.18);
    --result-accent-glow: rgba(124, 58, 237, 0.3);
}

.elig-result-card--neutral {
    --result-accent: #78909c;
    --result-accent-light: #b0bec5;
    --result-accent-dark: #455a64;
    --result-accent-bg: #f8fafc;
    --result-accent-bg-strong: #f1f5f9;
    --result-accent-border: rgba(0, 0, 0, 0.08);
    --result-accent-glow: rgba(0, 0, 0, 0.08);
}


/* --- 10b. Header --- */

.elig-result-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.elig-result-header__icon-well {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.5) 0%, transparent 45%),
        linear-gradient(
            145deg,
            var(--result-accent-light) 0%,
            var(--result-accent) 50%,
            var(--result-accent-dark) 100%
        );
    box-shadow:
        0 4px 10px var(--result-accent-glow, rgba(0, 0, 0, 0.15)),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.elig-result-header__body {
    flex: 1;
    min-width: 0;
}

.elig-result-header__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--result-accent-dark, #0f172a);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
}


/* --- 10c. Badges --- */

.elig-result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.elig-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--result-accent-dark, #334155);
    background: var(--result-accent-bg-strong, #f1f5f9);
    border: 1px solid var(--result-accent-border, rgba(0, 0, 0, 0.06));
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.04),
        -1px -1px 3px rgba(255, 255, 255, 0.9),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}


/* --- 10d. Message --- */

.elig-result-message {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
    margin: 0 0 24px;
}


/* --- 10e. Callout --- */

.elig-result-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    background: var(--result-accent-bg-strong, #f1f5f9);
    box-shadow:
        inset 2px 2px 6px rgba(0, 0, 0, 0.04),
        inset -2px -2px 4px rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(255, 255, 255, 0.4);
}

.elig-result-callout__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--result-accent-dark, #334155);
}

.elig-result-callout__text {
    flex: 1;
    min-width: 0;
}

.elig-result-callout__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.elig-result-callout__subtitle {
    font-size: 0.85rem;
    font-weight: 450;
    color: #475569;
    line-height: 1.4;
    margin: 2px 0 0;
}


/* --- 10f. Action Card --- */

.elig-result-action {
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        7px 7px 20px rgba(0, 0, 0, 0.05),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(255, 255, 255, 0.6),
        inset -1px -1px 3px rgba(0, 0, 0, 0.025);
}

.elig-result-action--tinted {
    background: var(--result-accent-bg, #f8fafc);
    border-color: var(--result-accent-border, rgba(0, 0, 0, 0.06));
}

.elig-result-action__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.elig-result-action__desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 20px;
}


/* --- 10g. Checklist --- */

.elig-result-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elig-result-checklist__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.elig-result-checklist__bead {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.elig-result-checklist__bead--success {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85) 0%, transparent 40%),
        linear-gradient(145deg, #81c784 0%, #4caf50 50%, #388e3c 100%);
    box-shadow:
        0 2px 5px rgba(76, 175, 80, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 -2px 3px rgba(27, 94, 32, 0.25);
}

/* Checkmark inside success bead */
.elig-result-checklist__bead--success::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    clip-path: polygon(
        14% 50%, 28% 38%, 42% 55%,
        78% 18%, 90% 30%, 42% 80%
    );
    filter: drop-shadow(0 1px 1px rgba(0, 50, 0, 0.2));
}

.elig-result-checklist__bead--disabled {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7) 0%, transparent 40%),
        linear-gradient(145deg, #cfd8dc 0%, #90a4ae 50%, #607d8b 100%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

/* X mark inside disabled bead */
.elig-result-checklist__bead--disabled::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    clip-path: polygon(
        20% 10%, 50% 35%, 80% 10%, 90% 20%,
        65% 50%, 90% 80%, 80% 90%, 50% 65%,
        20% 90%, 10% 80%, 35% 50%, 10% 20%
    );
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.elig-result-checklist__text {
    font-size: 0.9rem;
    font-weight: 450;
    color: #334155;
    line-height: 1.4;
}

.elig-result-checklist__text--muted {
    color: #94a3b8;
}


/* --- 10h. Info Tray --- */

.elig-result-info-tray {
    padding: 22px 22px;
    border-radius: 18px;
    margin-bottom: 28px;
    background: #f8fafc;
    box-shadow:
        inset 2px 2px 6px rgba(0, 0, 0, 0.04),
        inset -2px -2px 4px rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(255, 255, 255, 0.4);
}

.elig-result-info-tray__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
}

.elig-result-info-tray__row + .elig-result-info-tray__row {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 4px;
    padding-top: 8px;
}

.elig-result-info-tray__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.elig-result-info-tray__value {
    font-size: 0.85rem;
    color: #475569;
}


/* --- 10i. Divider --- */

.elig-result-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.08) 70%, transparent 100%);
    margin: 24px 0;
    border: none;
}


/* --- 10j. Section headings --- */

.elig-result-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 14px;
}

.elig-result-section-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 12px;
}


/* --- 10k. Footer note --- */

.elig-result-footnote {
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

.elig-result-footnote a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(100, 116, 139, 0.4);
}


/* --- 10l. Pillowy CTA Button --- */

.elig-result-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--result-accent-light, #a78bfa) 0%,
            var(--result-accent, #7c3aed) 50%,
            var(--result-accent-dark, #6d28d9) 100%
        );
    box-shadow:
        0 6px 16px var(--result-accent-glow, rgba(124, 58, 237, 0.35)),
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition:
        transform 350ms var(--hiw-spring-easing, ease),
        box-shadow 250ms ease;
}

.elig-result-cta:hover {
    will-change: transform;
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px var(--result-accent-glow, rgba(124, 58, 237, 0.4)),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 2px 3px rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.elig-result-cta:active {
    transform: translateY(1px) scale(0.99);
    box-shadow:
        0 3px 10px var(--result-accent-glow, rgba(124, 58, 237, 0.3)),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}

.elig-result-cta:focus-visible {
    outline: 3px solid var(--result-accent-light, #a78bfa);
    outline-offset: 2px;
}

.elig-result-cta--secondary {
    color: var(--result-accent-dark, #334155);
    background: #ffffff;
    border: 1.5px solid var(--result-accent-border, rgba(0, 0, 0, 0.12));
    box-shadow:
        4px 4px 12px rgba(0, 0, 0, 0.04),
        -3px -3px 8px rgba(255, 255, 255, 0.9),
        inset 1px 1px 3px rgba(255, 255, 255, 0.6),
        inset -1px -1px 2px rgba(0, 0, 0, 0.02);
}

.elig-result-cta--secondary:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 16px rgba(0, 0, 0, 0.06),
        -3px -3px 10px rgba(255, 255, 255, 0.95),
        inset 1px 1px 3px rgba(255, 255, 255, 0.6),
        inset -1px -1px 2px rgba(0, 0, 0, 0.02);
}

.elig-result-cta--secondary:active {
    transform: translateY(1px) scale(0.99);
}

/* Warning-tinted CTA (e.g. "Find an Attorney") */
.elig-result-cta--warning {
    background:
        linear-gradient(145deg, #ffb74d 0%, #ff9800 50%, #e65100 100%);
    box-shadow:
        0 6px 16px rgba(237, 108, 2, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.elig-result-cta--warning:hover {
    box-shadow:
        0 8px 22px rgba(237, 108, 2, 0.35),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 2px 3px rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}


/* --- 10l-b. Result Nav Bar --- */

.elig-result-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 0 4px;
}

.elig-result-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition:
        background 200ms ease,
        color 200ms ease;
}

.elig-result-nav__btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #334155;
}

.elig-result-nav__btn:active {
    background: rgba(0, 0, 0, 0.07);
}


/* --- 10l-c. Flag Cards Container (clay overrides for MUI Accordion) ---
   !important is required to override MUI's inline/Emotion styles which have
   higher specificity than external CSS selectors. */

.elig-result-flags {
    margin-bottom: 24px;
}

.elig-result-flags .MuiAccordion-root {
    border-radius: 18px !important; /* MUI inline default */
    margin: 0 !important; /* MUI sets margin on expanded */
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    box-shadow:
        3px 3px 10px rgba(0, 0, 0, 0.04),
        -2px -2px 6px rgba(255, 255, 255, 0.9),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.elig-result-flags .MuiAccordion-root:not(:last-child) {
    margin-bottom: 12px !important;
}

.elig-result-flags .MuiAccordion-root:hover {
    transform: translateY(-1px);
    box-shadow:
        5px 5px 14px rgba(0, 0, 0, 0.06),
        -3px -3px 8px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.elig-result-flags .MuiAccordion-root.Mui-expanded {
    box-shadow:
        5px 5px 14px rgba(0, 0, 0, 0.06),
        -3px -3px 8px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.elig-result-flags .MuiAccordionSummary-root {
    min-height: 56px;
    padding: 8px 20px;
    border-radius: 18px;
}

.elig-result-flags .MuiAccordionDetails-root {
    padding: 0 20px 20px;
}


/* --- 10m. Result Responsive --- */

@media (max-width: 599px) {
    .elig-result-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .elig-result-header__icon-well {
        width: 44px;
        height: 44px;
    }

    .elig-result-header__title {
        font-size: 1.15rem;
    }

    .elig-result-callout {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .elig-result-action {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .elig-result-info-tray {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .elig-result-cta {
        padding: 14px 20px;
        border-radius: 16px;
    }

    .elig-result-nav {
        margin-bottom: 20px;
        padding: 0;
    }

    .elig-result-flags .MuiAccordion-root {
        border-radius: 14px !important;
    }

    .elig-result-flags .MuiAccordionSummary-root {
        padding: 6px 14px;
    }

    .elig-result-flags .MuiAccordionDetails-root {
        padding: 0 14px 14px;
    }
}


/* ===========================
   11. MODIFIER UTILITIES
   Reusable overrides for result components
   =========================== */

/* Callout title styled as body text (lighter weight, smaller size) */
.elig-result-callout__title--body {
    font-weight: 400;
    font-size: 0.85rem;
}

/* Action description with no bottom margin */
.elig-result-action__desc--flush {
    margin-bottom: 0;
}

/* Section title in success green */
.elig-result-section-title--success {
    color: #2e7d32;
}

/* Section subtitle styled as emphasized heading (dark, bold) */
.elig-result-section-subtitle--emphasis {
    color: #0f172a;
    font-weight: 600;
}

/* Info tray with tighter bottom margin (used inside action cards) */
.elig-result-info-tray--compact {
    margin-bottom: 20px;
}

/* CTA with bottom spacing (used when stacking multiple CTAs) */
.elig-result-cta--spaced {
    margin-bottom: 12px;
}

/* Result message with top spacing (used under badges) */
.elig-result-message--top {
    margin-top: 6px;
}

/* Preserve newlines in multi-line content (e.g. additionalInfo with \n) */
.elig-result-callout__title--preline {
    white-space: pre-line;
}


/* ===========================
   12. LAYOUT UTILITIES
   Shared section/category styles replacing MUI Box/Typography
   =========================== */

/* Section wrapper with consistent bottom margin */
.elig-section {
    margin-bottom: 32px;
}

/* Section heading: centered, bold, tight tracking */
.elig-section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    margin-bottom: 24px;
}

/* Category group with bottom margin */
.elig-category-group {
    margin-bottom: 32px;
}

/* Category label: uppercase, small, secondary color */
.elig-category-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

/* CTA section title (replaces Typography variant="h2" in FinalCTA) */
.elig-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 32px;
}

/* CTA section subtitle */
.elig-cta-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (min-width: 900px) {
    .elig-cta-subtitle {
        font-size: 1.1rem;
    }
}


/* ===========================
   13. TRUST SECTION
   Stats tray + testimonial cards — tactile clay style
   =========================== */

/* Stats tray: recessed clay container */
.elig-stats-tray {
    padding: 28px 24px;
    border-radius: 24px;
    margin: 0 0 32px;
    background: #f8fafc;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.05),
        inset -2px -2px 6px rgba(255, 255, 255, 1),
        0 1px 2px rgba(255, 255, 255, 0.5);
}

.elig-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.elig-stat-cell {
    text-align: center;
}

.elig-stat-cell__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hiw-sapphire-main, #4338ca);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.elig-stat-cell__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 450;
    color: #64748b;
    margin-top: 4px;
}

/* Testimonials grid */
.elig-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Testimonial card: raised clay pill */
.elig-testimonial-card {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        5px 5px 14px rgba(0, 0, 0, 0.04),
        -3px -3px 8px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: transform 450ms var(--hiw-spring-easing, ease), box-shadow 300ms ease;
}

.elig-testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow:
        7px 8px 18px rgba(0, 0, 0, 0.06),
        -3px -3px 10px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.elig-testimonial-card__quote {
    margin: 0;
    padding: 0;
    border-left: none;
}

.elig-testimonial-card__text {
    font-size: 0.9rem;
    font-style: italic;
    color: #334155;
    line-height: 1.7;
    margin: 0 0 12px;
}

.elig-testimonial-card__footer {
    display: flex;
    flex-direction: column;
}

.elig-testimonial-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    font-style: normal;
}

.elig-testimonial-card__context {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

@media (max-width: 599px) {
    .elig-stats-tray {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .elig-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .elig-stat-cell__value {
        font-size: 1.75rem;
    }

    .elig-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .elig-testimonial-card {
        padding: 20px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elig-testimonial-card {
        transition: none;
    }

    .elig-testimonial-card:hover {
        transform: none;
    }
}


/* ===========================
   14. SCROLL REVEAL
   CSS-only entrance animation triggered by IntersectionObserver.
   Respects prefers-reduced-motion natively (no JS check needed).
   =========================== */

.elig-scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 600ms ease,
        transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.elig-scroll-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .elig-scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
