/* Niu User Journey — frontend wizard styles */

:root {
    --niu-uj-brand: #b71c2c;
    --niu-uj-brand-hover: #8a1421;
    --niu-uj-text: #1a1a1a;
    --niu-uj-muted: #6b7280;
    --niu-uj-border: #F1F5F9;
    --niu-uj-bg: #ffffff;
    --niu-uj-page-bg: #f9fafb;
    --niu-uj-chip-bg: #f3f4f6;
    --niu-uj-search-bg: #f9fafb;
}

.niu-uj {
    font-family: inherit;
    color: var(--niu-uj-text);
    background: #ffffff;
    border: 0.6px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0px 20px 25px -5px rgba(0,0,0,0.1), 0px 8px 10px -6px rgba(0,0,0,0.1);
    box-sizing: border-box;
    overflow: hidden;
}
.niu-uj *,
.niu-uj *::before,
.niu-uj *::after {
    box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────────── */
.niu-uj-header {
    background: #ffffff;
    padding: 32px 40px;
    margin-bottom: 0;
}
.niu-uj-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.75px;
    color: #0f172b;
    margin: 0;
}
.niu-uj-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #62748e;
    margin-top: 12px !important;
    margin-bottom: 0;
}

/* ── Search ──────────────────────────────────────────── */
.niu-uj-search {
    position: relative;
    margin-top: 24px;
    margin-bottom: 0;
    max-width: 768px;
}
.niu-uj-search input[type="search"] {
    width: 100%;
    height: 55.6px;
    padding: 16px 16px 16px 48px;
    background: #f8fafc;
    border: 1.8px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.1), 0px 1px 2px -1px rgba(0,0,0,0.1);
    font-size: 18px;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.4;
    color: var(--niu-uj-text);
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
}
.niu-uj-search input[type="search"]::placeholder {
    color: #90a1b9;
    font-size: 18px;
    font-family: Roboto, sans-serif;
    font-weight: 400;
}
.niu-uj-search input[type="search"]:focus {
    border-color: var(--niu-uj-brand);
    outline: none;
    /* Inset shadow fakes a 2px border (matches Figma) without causing layout shift. */
    box-shadow: inset 0 0 0 1px var(--niu-uj-brand);
}
.niu-uj-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--niu-uj-brand);
    pointer-events: none;
}

/* ── Divider ─────────────────────────────────────────── */
.niu-uj-divider {
    height: 1px;
    background: var(--niu-uj-border);
}

/* ── Stepper toolbar ─────────────────────────────────── */
.niu-uj-stepper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.niu-uj-stepper-back,
.niu-uj-stepper-startover {
    background: none;
    border: 0;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--niu-uj-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
}
.niu-uj-stepper-back { justify-self: start; }
.niu-uj-stepper-startover { justify-self: end; color: var(--niu-uj-brand); }
.niu-uj-stepper-back:hover,
.niu-uj-stepper-startover:hover { background: var(--niu-uj-chip-bg); }
.niu-uj-stepper-back:focus,
.niu-uj-stepper-startover:focus {
    outline: 2px solid var(--niu-uj-brand);
    outline-offset: 2px;
}
.niu-uj-stepper-step {
    justify-self: center;
    font-size: 14px;
    color: var(--niu-uj-muted);
    font-weight: 500;
}
.niu-uj-stepper-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Your-choices chips ──────────────────────────────── */
.niu-uj-choices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.niu-uj-choices-label { color: var(--niu-uj-muted); }
.niu-uj-chip {
    background: var(--niu-uj-chip-bg);
    border: 1px solid var(--niu-uj-border);
    color: var(--niu-uj-text);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.niu-uj-chip:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}
.niu-uj-chip:focus {
    outline: 2px solid var(--niu-uj-brand);
    outline-offset: 2px;
}

/* ── Body zone (choices + question heading) ──────────── */
.niu-uj-body {
    padding: 32px;
}

/* ── Question heading ────────────────────────────────── */
.niu-uj-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #0f172b;
    margin: 0 0 20px;
}

/* ── Card grid ───────────────────────────────────────── */
.niu-uj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .niu-uj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {

    /* ── Outer panel ─────────────────────────────────────── */
    .niu-uj {
        border-radius: 16px;
        border: 1px solid #f1f5f9;
        padding: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        box-shadow: 0 0 0 1px rgba(15,23,43,0.05),
                    0 20px 25px -5px rgba(0,0,0,0.10),
                    0 8px 10px -6px rgba(0,0,0,0.10);
    }

    /* ── Header zone ─────────────────────────────────────── */
    .niu-uj-header {
        padding: 24px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0;
    }
    .niu-uj-title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -0.5297px;
        margin-bottom: 8px;
    }
    .niu-uj-subtitle {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.3125px;
        margin-bottom: 24px;
    }

    /* ── Search input ────────────────────────────────────── */
    .niu-uj-search input[type="search"] {
        height: 48px;
        padding: 12px 16px 12px 48px;
        background: #f8fafc;
        border: 2px solid #e2e8f0;
        border-radius: 14px;
        font-size: 14px;
        line-height: 1.4;
        letter-spacing: -0.3125px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    }
    .niu-uj-search input[type="search"]::placeholder {
        color: #90a1b9;
    }
    .niu-uj-search input[type="search"]:focus {
        border-color: var(--niu-uj-brand);
        box-shadow: inset 0 0 0 1px var(--niu-uj-brand);
    }
    .niu-uj-search-icon {
        left: 16px;
        width: 20px;
        height: 20px;
    }

    /* ── Divider (hidden — header bottom-border replaces it) */
    .niu-uj-divider { display: none; }

    /* ── Body zone ───────────────────────────────────────── */
    .niu-uj-body { padding: 24px; }
    .niu-uj-result { padding: 0; }

    /* ── Stepper ─────────────────────────────────────────── */
    .niu-uj-stepper {
        padding-bottom: 17px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 24px;
    }
    .niu-uj-stepper-back,
    .niu-uj-stepper-startover {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        color: #45556c;
        gap: 4px;
    }
    .niu-uj-stepper-startover { color: #45556c; }
    .niu-uj-stepper-step {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        color: #90a1b9;
    }
    .niu-uj-stepper-icon { width: 16px; height: 16px; }

    /* ── Your-choices chips — hidden on mobile ───────────── */
    .niu-uj-choices { display: none; }

    /* ── Question heading ────────────────────────────────── */
    .niu-uj-heading {
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
        letter-spacing: -0.4492px;
        text-transform: capitalize;
        margin-bottom: 20px;
    }

    /* ── Card grid — 2-row horizontal carousel ───────────── */
    .niu-uj-grid {
        display: grid;
        grid-template-columns: unset;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        gap: 16px 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .niu-uj-grid::-webkit-scrollbar { display: none; }

    /* ── Cards ───────────────────────────────────────────── */
    .niu-uj-card {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        width: auto;
        min-height: 0;
        padding: 26px;
        border: 2px solid #f1f5f9;
        border-radius: 14px;
        box-sizing: border-box;
    }
    .niu-uj-card-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 20px;
    }
    .niu-uj-card-icon svg { width: 32px; height: 32px; }
    .niu-uj-card-icon img { width: 32px; height: 32px; }
    .niu-uj-card-title {
        font-size: 18px;
        font-weight: 500;
        line-height: 22.5px;
        letter-spacing: -0.4395px;
        margin-bottom: 8px;
    }
    .niu-uj-card-subtitle {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.1504px;
    }

    /* ── Carousel affordances ────────────────────────────── */
    .niu-uj-grid-wrap {
        position: relative;
    }
    .niu-uj-grid-prev,
    .niu-uj-grid-next {
        position: absolute;
        top: 50%;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        border: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.07);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        color: #0f172b;
        z-index: 2;
    }
    .niu-uj-grid-prev {
        left: 0;
        transform: translate(-50%, -50%);
    }
    .niu-uj-grid-next {
        right: 0;
        transform: translate(50%, -50%);
    }
    .niu-uj-grid-prev svg { transform: rotate(180deg); }
    .niu-uj-grid-prev[hidden],
    .niu-uj-grid-next[hidden] { display: none; }
    .niu-uj-grid-prev svg,
    .niu-uj-grid-next svg { width: 20px; height: 20px; }
    .niu-uj-grid-hint {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        height: 43px;
        padding: 0 16px;
        margin: 20px 0 0;
        font-size: 14px;
        font-weight: 500;
        line-height: 22.5px;
        letter-spacing: -0.4395px;
        color: #0f172b;
        white-space: nowrap;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
        filter: drop-shadow(0 4px 7px rgba(0,0,0,0.08));
    }
    .niu-uj-grid-hint[hidden] { display: none; }

    /* ── "I'm not sure" wide button ─────────────────────── */
    .niu-uj-not-sure {
        padding: 18px 26px;
        border-width: 2px;
    }
    .niu-uj-not-sure-icon {
        width: 32px;
        height: 32px;
    }
    .niu-uj-not-sure-icon svg {
        width: 32px;
        height: 32px;
    }
    .niu-uj-not-sure-label {
        font-size: 18px;
        line-height: 22.5px;
    }

    /* ── Result view ─────────────────────────────────────── */
    .niu-uj-result {
        padding: 24px;
    }
    .niu-uj-result-inner {
        border: 2px solid #f1f5f9;
        border-radius: 14px;
        padding: 32px;
        box-shadow: 0 1px 1.5px rgba(0,0,0,0.1), 0 1px 1px rgba(0,0,0,0.1);
    }
    .niu-uj-result .niu-uj-heading {
        text-align: center;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
        text-transform: none;
    }
    .niu-uj-result-body {
        text-align: center;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.3125px;
        color: #62748e;
        margin-bottom: 24px;
    }
    .niu-uj-result-body > *:last-child { margin-bottom: 0; }
    .niu-uj-result-footnote {
        display: flex;
        align-items: flex-start;
        gap: 8.1px;
        margin-top: 24px;
        padding-top: 25px;
        border-top: 1px solid #f1f5f9;
    }
    .niu-uj-result-footnote .niu-uj-footnote-icon {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        margin-top: 2px;
        color: #62748e;
    }
    .niu-uj-result-footnote p {
        margin: 0;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.1504px;
        color: #62748e;
    }

    /* ── Button stack ────────────────────────────────────── */
    .niu-uj-buttons {
        flex-direction: column;
        gap: 16px;
        flex-wrap: nowrap;
    }
    .niu-uj-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 64px;
        padding: 0 24px;
        border-radius: 14px;
        font-size: 18px;
        font-weight: 500;
        text-align: center;
        box-sizing: border-box;
    }
    .niu-uj-btn.is-red {
        background: var(--niu-uj-brand);
        color: #fff;
        border: 0;
        box-shadow: 0 4px 3px rgba(0,0,0,0.1), 0 2px 2px rgba(0,0,0,0.1);
        justify-content: space-between;
    }
    .niu-uj-btn.is-red .niu-uj-btn-icon {
        display: inline-flex;
        align-items: center;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    .niu-uj-btn.is-white {
        background: #fff;
        color: #314158;
        border: 2px solid #e2e8f0;
    }
    .niu-uj-btn.is-white:hover { background: #f8fafc; }

}

.niu-uj-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: #ffffff;
    border: 1.815px solid #f1f5f9;
    border-radius: 14px;
    padding: 21.81px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    font: inherit;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.5;
    margin: 0;
}
.niu-uj-card:hover,
.niu-uj-card:focus {
    border-color: #ed1f24;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    outline: none;
    transform: translateY(-1px);
}
.niu-uj-card-icon {
    color: #ed1f24;
    width: 31.993px;
    height: 31.993px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.niu-uj-card-icon svg { width: 31.993px; height: 31.993px; display: block; color: inherit; }
.niu-uj-card-icon img { width: 31.993px; height: 31.993px; object-fit: contain; display: block; }
.niu-uj-card-title {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #0f172b;
    margin: 11.997px 0 0 0;
    padding: 0 19.995px 0 0;
    width: 100%;
    box-sizing: border-box;
    font-variation-settings: 'wdth' 100;
}
.niu-uj-card-subtitle {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #62748e;
    margin: 5.994px 0 0 0;
    padding: 0 19.995px 0 0;
    width: 100%;
    box-sizing: border-box;
    font-variation-settings: 'wdth' 100;
}

/* ── "I'm not sure" wide button ──────────────────────── */
.niu-uj-not-sure {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 16px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1.815px solid #f1f5f9;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: border-color .15s ease, background-color .15s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.niu-uj-not-sure:hover,
.niu-uj-not-sure:focus {
    border-color: #cbd5e1;
    background: #f8fafc;
    outline: none;
}
.niu-uj-not-sure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31.993px;
    height: 31.993px;
    flex-shrink: 0;
    color: #90a1b9;
}
.niu-uj-not-sure-icon svg {
    width: 31.993px;
    height: 31.993px;
    display: block;
}
.niu-uj-not-sure-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #62748e;
}

/* ── Final result view ───────────────────────────────── */
.niu-uj-result { padding: 32px; }
.niu-uj-result-inner {
    background: #ffffff;
    border: 0.605px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0px 0px 0px 0px rgba(15, 23, 43, 0.05), 0px 20px 25px 0px rgba(0, 0, 0, 0.1), 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 32px;
    box-sizing: border-box;
}
.niu-uj-result-preamble { margin: 0 0 24px 0; }
.niu-uj-inline-content-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}
.niu-uj-result .niu-uj-heading { margin-bottom: 16px; }
.niu-uj-result-body { line-height: 1.6; margin-bottom: 20px; }

/* Result heading row + green check badge (Figma 2126-8517) */
.niu-uj-result-preamble .niu-uj-result-heading-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px 0;
}
.niu-uj-result-preamble .niu-uj-result-heading-row .niu-uj-heading {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 36px;
    color: #0f172b;
}
.niu-uj-results-check-badge {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dcfce7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.niu-uj-results-check-badge svg {
    width: 24px;
    height: 24px;
    display: block;
}
.niu-uj-result-preamble .niu-uj-result-body {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 32.5px;
    color: #314158;
    margin: 0 0 0 64px;
}

/* Footnote (Figma 2126-8542) — desktop layout (mobile rules already in @media 560px block) */
.niu-uj-result-inner .niu-uj-result-footnote {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 0.6px solid #f1f5f9;
}
.niu-uj-result-inner .niu-uj-footnote-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    display: block;
}
.niu-uj-result-inner .niu-uj-result-footnote p {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #62748e;
}
@media (max-width: 640px) {
    .niu-uj-results-check-badge { flex-basis: 40px; width: 40px; height: 40px; }
    .niu-uj-results-check-badge svg { width: 20px; height: 20px; }
    .niu-uj-result-preamble .niu-uj-result-heading-row .niu-uj-heading { font-size: 22px; line-height: 28px; }
    .niu-uj-result-preamble .niu-uj-result-body { font-size: 16px; line-height: 24px; margin-left: 0; }
    /* Figma 2009-1390 — 390px mobile result view */
    .niu-uj-result-preamble .niu-uj-results-check-badge { display: none; }
    .niu-uj-result-preamble .niu-uj-result-heading-row {
        display: block;
        text-align: center;
    }
    .niu-uj-result-preamble .niu-uj-result-heading-row .niu-uj-heading {
        font-family: 'Archia', 'Plus Jakarta Sans', system-ui, sans-serif;
        font-size: 20px;
        letter-spacing: -0.022em;
        text-transform: capitalize;
        max-width: 200px;
        margin: 0 auto;
    }
    .niu-uj-result-preamble .niu-uj-result-body {
        text-align: center;
        color: #62748e;
    }
    .niu-uj-results-button--filled,
    .niu-uj-results-button--outline,
    .niu-uj-results-button--outline_external {
        min-height: 64px;
        border-radius: 14px;
        padding: 18px 24px;
    }
    .niu-uj-results-text p,
    .niu-uj-results-text-body {
        font-size: 14px;
        line-height: 20px;
    }
}
.niu-uj-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.niu-uj-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    line-height: 1.4;
}
.niu-uj-btn.is-red   { background: var(--niu-uj-brand); color: #fff; }
.niu-uj-btn.is-red:hover { background: var(--niu-uj-brand-hover); }
.niu-uj-btn.is-white { background: #fff; color: var(--niu-uj-brand); border-color: var(--niu-uj-brand); }
.niu-uj-btn.is-white:hover { background: rgba(183, 28, 44, 0.06); }
.niu-uj-btn.is-disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Inline result panel (Task 6 / AC 9) ────────────── */

/* Header row: icon badge + heading */
.niu-uj-results-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Icon badge — 48px mint circle with centred check */
.niu-uj-results-block-icon-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dcfce7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.niu-uj-results-block-icon-badge svg {
    width: 24px;
    height: 24px;
}

/* Heading */
.niu-uj-results-block-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 36px;
    color: #0f172b;
    margin: 0;
}

/* Intro paragraph */
.niu-uj-results-block-intro {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 32.5px;
    color: #314158;
    margin-top: 24px;
    margin-bottom: 0;
}

/* Blocks area — flex column with 24px gap between blocks */
.niu-uj-results-block-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

/* Centered title block */
.niu-uj-results-centered-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #0f172b;
    text-align: center;
    margin: 0;
}

/* Text block */
.niu-uj-results-text p,
.niu-uj-results-text-body {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 32.5px;
    color: #314158;
    margin: 0;
}
.niu-uj-results-text > *:last-child { margin-bottom: 0; }

/* WYSIWYG block */
.niu-uj-results-wysiwyg {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #314158;
}
.niu-uj-results-wysiwyg > *:first-child { margin-top: 0; }
.niu-uj-results-wysiwyg > *:last-child  { margin-bottom: 0; }

/* Alert blocks (Figma 2126-8527) — icon + body side-by-side */
.niu-uj-results-alert {
    background: #f8fafc;
    border: 0.6px solid #e2e8f0;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #1d293d;
}

.niu-uj-results-alert-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.niu-uj-results-alert-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.niu-uj-results-alert-body {
    flex: 1 1 auto;
    min-width: 0;
}

.niu-uj-results-alert-heading {
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #1d293d;
    margin: 0 0 4px 0;
}

.niu-uj-results-alert-text {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #1d293d;
    margin: 0;
}

.niu-uj-results-alert-text + .niu-uj-results-alert-text {
    margin-top: 8px;
}

/* Alert variants */

.niu-uj-results-alert--info {
    border-left: 3.63px solid #3b82f6;
    background: #eff6ff;
    color: #1e3a8a;
}

.niu-uj-results-alert--info .niu-uj-results-alert-icon,
.niu-uj-results-alert--info .niu-uj-results-alert-heading,
.niu-uj-results-alert--info .niu-uj-results-alert-text {
    color: #1e3a8a;
}

.niu-uj-results-alert--warning {
    border-left: 3.63px solid #ed1f24;
    background: #fffbeb;
    color: #1d293d;
}

.niu-uj-results-alert--warning .niu-uj-results-alert-icon {
    color: #ed1f24;
}

.niu-uj-results-alert--success {
    border-left: 3.63px solid #16a34a;
    background: #f0fdf4;
    color: #14532d;
}

.niu-uj-results-alert--success .niu-uj-results-alert-icon,
.niu-uj-results-alert--success .niu-uj-results-alert-heading,
.niu-uj-results-alert--success .niu-uj-results-alert-text {
    color: #14532d;
}

/* Contact info block */
.niu-uj-results-contact {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #314158;
}
.niu-uj-results-contact > *:last-child { margin-bottom: 0; }

/* Buttons row */
.niu-uj-results-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Shared button base */
.niu-uj-results-button--filled,
.niu-uj-results-button--outline,
.niu-uj-results-button--outline_external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    border-radius: 14px;
    padding: 16px 32px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    border: none;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Primary filled button */
.niu-uj-results-button--filled {
    background: #ed1f24;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0px 4px 3px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.niu-uj-results-button--filled:hover,
.niu-uj-results-button--filled:focus {
    background: #d11a1f;
    color: #ffffff;
    outline: none;
}

/* Secondary outline button */
.niu-uj-results-button--outline {
    background: #ffffff;
    border: 1.8px solid #e2e8f0;
    color: #314158;
    font-weight: 400;
}
.niu-uj-results-button--outline:hover,
.niu-uj-results-button--outline:focus {
    background: #f8fafc;
    color: #314158;
    outline: none;
}

/* External outline button (arrow icon injected by JS) */
.niu-uj-results-button--outline_external {
    background: #ffffff;
    border: 1.8px solid #e2e8f0;
    color: #314158;
    font-weight: 400;
}
.niu-uj-results-button--outline_external:hover,
.niu-uj-results-button--outline_external:focus {
    background: #f8fafc;
    color: #314158;
    outline: none;
}
.niu-uj-results-button--outline_external svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Optional footer / eligibility note */
.niu-uj-results-block-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 0.6px solid #f1f5f9;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #62748e;
}
.niu-uj-results-block-footer-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: #62748e;
}
.niu-uj-results-block-footer p { margin: 0; }

/* Mobile adjustments for inline result panel */
@media (max-width: 560px) {
    .niu-uj-results-block {
        padding: 16px;
    }
    .niu-uj-results-block-heading {
        font-size: 22px;
        line-height: 28px;
    }
    .niu-uj-results-buttons {
        flex-direction: column;
    }
    .niu-uj-results-button--filled,
    .niu-uj-results-button--outline,
    .niu-uj-results-button--outline_external {
        width: 100%;
        justify-content: center;
    }
}

/* ── States: loading / error / empty ─────────────────── */
.niu-uj-loading,
.niu-uj-error,
.niu-uj-empty {
    padding: 24px;
    text-align: center;
    color: var(--niu-uj-muted);
    font-size: 14px;
}

/* ── Search results overlay ──────────────────────────── */
.niu-uj-search-heading {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--niu-uj-muted);
    font-weight: 500;
}
.niu-uj-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.niu-uj-search-results .niu-uj-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    text-align: left;
}
.niu-uj-search-results .niu-uj-card-title { margin: 0; }
.niu-uj-search-crumb { color: var(--niu-uj-muted); font-size: 12px; }

/* ── Noscript fallback ───────────────────────────────── */
.niu-uj-noscript { padding: 0 0 0 20px; }
.niu-uj-noscript-icon svg,
.niu-uj-noscript-icon img { width: 16px; height: 16px; vertical-align: -3px; color: var(--niu-uj-brand); }

/* ── Search dropdown ─────────────────────────────────── */
.niu-uj-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--niu-uj-bg);
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 20;
    padding: 8px;
}
.niu-uj-search-dropdown[hidden] { display: none; }
.niu-uj-search-dropdown-label {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #90a1b9;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.niu-uj-search-dropdown-empty {
    padding: 20px 12px;
    text-align: center;
    color: var(--niu-uj-muted);
    font-size: 14px;
}
.niu-uj-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background-color .12s ease;
}
.niu-uj-search-result:hover,
.niu-uj-search-result:focus {
    background: var(--niu-uj-chip-bg);
    outline: none;
}
.niu-uj-search-result-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--niu-uj-chip-bg);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--niu-uj-muted);
}
.niu-uj-search-result-icon svg,
.niu-uj-search-result-icon img { width: 18px; height: 18px; object-fit: contain; }
.niu-uj-search-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.niu-uj-search-result-title {
    font-size: 16px;
    font-weight: 500;
    color: #0f172b;
    line-height: 22px;
    letter-spacing: -0.3125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.niu-uj-search-result-crumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: #62748e;
    line-height: 1.4;
}
.niu-uj-search-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--niu-uj-muted);
}
.niu-uj-search-result-arrow {
    flex-shrink: 0;
    color: var(--niu-uj-muted);
    display: inline-flex;
    align-items: center;
}

/* Suppress focus ring on the wizard's interactive elements (including keyboard nav). */
.niu-uj-body h2:focus,
.niu-uj-card:focus,
.niu-uj-chip:focus,
.niu-uj-btn:focus,
.niu-uj-search-result:focus,
.niu-uj-stepper-back:focus,
.niu-uj-stepper-startover:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.niu-uj-search-result-arrow .niu-uj-search-chevron { width: 18px; height: 18px; }

/* ── Figma 2009-1390 — nested inner card + mobile pixel-match ─────────── */
@media (max-width: 640px) {
    /* Outer result wrapper — 12px viewport gutter; collapse middle wrapper so
       the nested card is the only visible surface and gets full mobile width. */
    .niu-uj-result { padding: 12px; }
    .niu-uj-result-inner {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    /* Nested inner card — now the single visible result surface on mobile */
    .niu-uj-result-card {
        background: #ffffff;
        border: 2px solid #f1f5f9;
        border-radius: 14px;
        box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Preamble: heading + subtitle */
    .niu-uj-result-card .niu-uj-result-preamble { margin: 0; text-align: center; }
    .niu-uj-result-card .niu-uj-result-heading-row {
        display: block;
        margin: 0;
    }
    .niu-uj-result-card .niu-uj-results-check-badge { display: none; }
    .niu-uj-result-card .niu-uj-heading {
        font-family: 'Archia', 'Plus Jakarta Sans', system-ui, sans-serif;
        font-weight: 500;
        font-size: 20px;
        line-height: 28px;
        letter-spacing: -0.022em;
        color: #0f172b;
        text-transform: capitalize;
        max-width: 200px;
        margin: 0 auto;
    }
    .niu-uj-result-card .niu-uj-result-body {
        font-family: Roboto, sans-serif;
        font-size: 16px;
        line-height: 24px;
        color: #62748e;
        text-align: center;
        margin: 8px 0 0;
    }

    /* Inline content area */
    .niu-uj-result-card .niu-uj-inline-content-blocks { gap: 16px; margin: 0; }

    /* Buttons stack */
    .niu-uj-result-card .niu-uj-results-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .niu-uj-result-card .niu-uj-results-button--filled,
    .niu-uj-result-card .niu-uj-results-button--outline,
    .niu-uj-result-card .niu-uj-results-button--outline_external {
        width: 100%;
        min-height: 56px;
        padding: 14px 16px;
        border-radius: 14px;
        font-family: Roboto, sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.022em;
        justify-content: center;
        white-space: normal;
    }
    .niu-uj-result-card .niu-uj-results-button--outline,
    .niu-uj-result-card .niu-uj-results-button--outline_external {
        border-width: 2px;
        border-color: #e2e8f0;
        color: #314158;
    }
    .niu-uj-result-card .niu-uj-results-button--filled {
        background: #ed1f24;
        color: #ffffff;
        box-shadow: 0 4px 3px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1);
    }

    /* Footnote: top border + flex row with icon */
    .niu-uj-result-card .niu-uj-result-footnote {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding-top: 24px;
        margin: 0;
        border-top: 1px solid #f1f5f9;
    }
    .niu-uj-result-card .niu-uj-result-footnote p {
        font-size: 14px;
        line-height: 20px;
        color: #62748e;
        margin: 0;
    }
    .niu-uj-result-card .niu-uj-footnote-icon {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }
}
