/*
 * ESA acquisition wizard (intake funnel + post-questionnaire analysis).
 *
 * Structured content/flow is modeled on the waggy.pet mobile funnel, but the
 * look is Verify.Dog console cards + brand yellow (#FDD000) primary CTAs with black
 * text, console fonts, white cards on the console background. No Waggy styling.
 *
 * Layout is a single-step-per-screen wizard: only .esa-step.is-active shows.
 * Shared by Funnel.cshtml (esa-funnel.js) and Analysis.cshtml (esa-analysis.js).
 */

:root {
    --esa-yellow: #FDD000;
    --esa-ink: #111111;
    --esa-line: #e6e6e6;
    --esa-muted: #55647a;
    /* Warm coral accent for decorative underlines. Reads as a hand-drawn
       highlight and stays clear of the yellow/black brand pairing. */
    --esa-accent: #ff6935;
}

/* Accented decorative underline. Add to any inline span/strong inside a
   headline, subhead, or body copy to give a hand-drawn highlight under it.
   Works across line wraps and never touches the yellow/black theme. */
.esa-uline {
    text-decoration-line: underline;
    text-decoration-color: var(--esa-accent);
    -webkit-text-decoration-color: var(--esa-accent);
    text-decoration-thickness: 0.13em;
    text-underline-offset: 0.16em;
    text-decoration-skip-ink: none;
}

/* ---- Page shell -------------------------------------------------------- */
.esa-wizard {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px 160px;
}

/*
  Back arrow sits OUTSIDE the white card — to its left, flush with the card top.
  Absolute so it does not reserve a row above the card (keeps the card high in view).
*/
.esa-wizard__top {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 12px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 0;
    width: auto;
    max-width: none;
}

/* Desktop: pin to the left of the centered 560px card (button + 12px gap). */
@media (min-width: 640px) {
    .esa-wizard__top {
        left: calc(50% - 280px - 56px);
    }
}

.esa-wizard__back {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e4e8ef;
    background: #fff;
    color: #8a94a6;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 27, 45, .08);
    transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

.esa-wizard__back:hover {
    background: #fff;
    color: #6b7585;
    border-color: #d5dae3;
}

.esa-wizard__back[hidden] {
    display: none;
}

/* No empty chrome when back isn't shown yet. */
.esa-wizard__top:not(:has(.esa-wizard__back:not([hidden]))) {
    display: none;
}

/* Narrow: back sits ABOVE the card (not beside it) so the card stays full-width. */
@media (max-width: 639px) {
    .esa-wizard__top {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin: 0 0 12px;
    }

    .esa-wizard--cards:has(.esa-wizard__back:not([hidden])) .esa-step.is-active {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Progress bar removed from the funnel per design. */
.esa-wizard__progress {
    display: none;
}

.esa-wizard__progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--esa-yellow);
    transition: width .35s ease;
}

/* ---- Viewport chrome overrides ----------------------------------------
   On any page that renders a wizard funnel, drop the breadcrumbs and pull
   the content up so the step card is visible without scrolling. Scoped via
   :has() so non-funnel console pages are untouched. */
body:has(.esa-wizard) .breadcrumb {
    display: none;
}

body:has(.esa-wizard) .main {
    padding-top: calc(64px + 8px);
}

/* Standalone marketing chrome: clear the fixed yellow header, then leave a
   short gap so the content card is not flush against it. */
body:has(.page-wrapper > .header.fixed-top):has(.esa-wizard) .page-wrapper > .main {
    padding-top: calc(3.75rem + 56px);
}

body:has(.page-wrapper > .header.fixed-top):has(.esa-wizard) .esa-wizard {
    padding-top: 0;
    margin-top: 0;
}

/* ---- Steps ------------------------------------------------------------- */
.esa-step {
    display: none;
    animation: esa-fade .28s ease both;
}

.esa-step.is-active {
    display: block;
}

@keyframes esa-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* --- Card treatment ------------------------------------------------------
   Every funnel step renders inside a white card that matches the site's
   .card-default (white, rounded, soft drop shadow). Applied via the
   .esa-wizard--cards modifier so the analysis wizard is unaffected. */
.esa-wizard--cards .esa-step.is-active {
    background: #fff;
    border: 1px solid var(--esa-line); /* #e6e6e6 — same as Yes/No choice border gray */
    border-radius: 0.75rem;
    box-shadow: 2px 4px 12px 0 rgba(0, 0, 0, 0.08);
    padding: 28px 20px;
    max-width: 560px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .esa-wizard--cards .esa-step.is-active {
        border-radius: 1.5rem;
        padding: 40px 36px;
    }
}

/* Secondary text inside the cards uses the requested slate color;
   the eyebrow is bumped to 16px. */
.esa-wizard--cards .esa-step__eyebrow {
    color: #383f49;
    font-size: 16px;
}

.esa-wizard--cards .esa-step__subtitle,
.esa-wizard--cards .esa-consent {
    color: #383f49;
}

/* Flatten nested content blocks so they don't read as a card-in-a-card. */
.esa-wizard--cards .esa-testimonial {
    border: none;
    box-shadow: none;
    padding: 0;
}

.esa-wizard--cards .esa-points li {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0;
}

.esa-wizard--cards .esa-compare {
    border: none;
    box-shadow: none;
}

.esa-wizard--cards .esa-actions {
    margin-top: 28px;
}

/* ---- Uniform vertical rhythm inside every funnel card ------------------
   Keeps a consistent gap between the primary content blocks so no element
   (especially an action button) ever butts up against the block below it,
   and the card keeps even top/bottom padding. */
.esa-wizard--cards .esa-step.is-active > .esa-media {
    margin-bottom: 24px;
}

/* When a button is followed by fine print / a callout, give it real space. */
.esa-wizard--cards .esa-actions:not(:last-child) {
    margin-bottom: 28px;
}

/* No trailing margin on the final block so bottom padding stays uniform. */
.esa-wizard--cards .esa-step.is-active > *:last-child {
    margin-bottom: 0;
}

.esa-step__eyebrow {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 700;
    color: var(--esa-accent);
    margin-bottom: 12px;
}

.esa-step__title {
    text-align: center;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--esa-ink);
    margin: 0 auto 12px;
    max-width: 560px;
}

.esa-step__subtitle {
    text-align: center;
    font-size: 16px;
    line-height: 1.55;
    color: var(--esa-muted);
    margin: 0 auto 28px;
    max-width: 520px;
}

/* ---- Answer cards (choice questions) ----------------------------------- */
.esa-choices {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.esa-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: #fff;
    color: var(--esa-ink);
    border: 1px solid var(--esa-line);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.esa-choice:hover {
    background: #fffbe6;
    border-color: var(--esa-yellow);
}

.esa-choice.is-selected {
    background: var(--esa-yellow);
    border-color: var(--esa-yellow);
    color: #000;
}

.esa-choice__key {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--esa-yellow);
    color: #000;
    font-weight: 800;
    font-size: 18px;
}

.esa-choice.is-selected .esa-choice__key {
    background: #000;
    color: var(--esa-yellow);
}

/* ---- Multi-select checkbox choices (pre-qualification) ----------------- */
.esa-checks {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Long lists get a bounded, scrollable area so the card stays usable. */
.esa-checks--scroll {
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--esa-line);
    border-radius: 12px;
    background: #fafafa;
}

.esa-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: #fff;
    color: var(--esa-ink);
    border: 1px solid var(--esa-line);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.esa-check:hover {
    background: #fffbe6;
    border-color: var(--esa-yellow);
}

.esa-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.esa-check__box {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 2px solid #c7cdd6;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: background .15s ease, border-color .15s ease;
}

.esa-check__box:after {
    content: "\2713";
    color: #000;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .12s ease, transform .12s ease;
}

.esa-check input:checked + .esa-check__box {
    background: var(--esa-yellow);
    border-color: var(--esa-yellow);
}

.esa-check input:checked + .esa-check__box:after {
    opacity: 1;
    transform: none;
}

.esa-check:has(input:checked) {
    border-color: var(--esa-yellow);
    background: #fffdf2;
}

.esa-check input:focus-visible + .esa-check__box {
    outline: 2px solid var(--esa-ink);
    outline-offset: 2px;
}

.esa-check__label {
    line-height: 1.45;
}

/* Search / filter box for the long task list. */
.esa-filter {
    max-width: 520px;
    margin: 0 auto 14px;
}

.esa-filter input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--esa-line);
    font-size: 16px;
}

.esa-filter input:focus {
    border-color: var(--esa-yellow);
    outline: none;
}

/* "Other (please specify)" free-text field, shown only when Other is checked.
   Full-width so it lines up with the choice cards above and below (auto side
   margins would shrink it to content width inside the flex column). */
.esa-other-specify {
    width: 100%;
    margin: 12px 0 0;
    display: none;
}

.esa-other-specify.is-visible {
    display: block;
}

.esa-other-specify input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--esa-line);
    font-size: 16px;
}

.esa-other-specify input:focus {
    border-color: var(--esa-yellow);
    outline: none;
}

/* Empty-state row shown when a filter matches nothing. */
.esa-checks__empty {
    padding: 16px;
    text-align: center;
    color: var(--esa-muted);
    font-size: 15px;
}

/* ---- Interstitial content cards ---------------------------------------- */
.esa-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 20px;
    max-width: 520px;
}

.esa-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.esa-points {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.esa-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--esa-line);
    border-radius: 12px;
    padding: 16px 18px;
    /* Match the site's card-default drop shadow. */
    box-shadow: 2px 4px 12px 0 rgba(0, 0, 0, 0.08);
}

.esa-points li:before {
    content: "\2713"; /* check */
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--esa-yellow);
    color: #000;
    font-weight: 800;
    font-size: 15px;
}

/* Scoped icon bullets (house / $ / paw / medical) for the protections step.
   Keeps the yellow circle + black icon look but swaps the check for a themed
   glyph. Only applies to .esa-points--icons, so other check lists are unchanged. */
.esa-points--icons li:before {
    content: "";
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px 15px;
}
.esa-points--icons li.esa-ico--house:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3.2 2.5 11l1.3 1.5L5 11.4V20h5v-5h4v5h5v-8.6l1.2 1.1L21.5 11z'/%3E%3C/svg%3E");
}
.esa-points--icons li.esa-ico--dollar:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5v19'/%3E%3Cpath d='M16.5 6.6C15.6 5.4 13.9 4.8 12 4.8c-2.4 0-4.3 1.2-4.3 3.1 0 4.6 8.6 2.4 8.6 7 0 1.9-1.9 3.1-4.3 3.1-1.9 0-3.6-.6-4.5-1.8'/%3E%3C/svg%3E");
    background-size: 16px 16px;
}
.esa-points--icons li.esa-ico--paw:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='6' cy='10.5' r='2'/%3E%3Ccircle cx='10' cy='6.8' r='2'/%3E%3Ccircle cx='14' cy='6.8' r='2'/%3E%3Ccircle cx='18' cy='10.5' r='2'/%3E%3Cpath d='M12 11.2c-2.8 0-5 1.9-5 4.1 0 1.6 1.3 2.3 2.7 2.3 1 0 1.6-.5 2.3-.5s1.3.5 2.3.5c1.4 0 2.7-.7 2.7-2.3 0-2.2-2.2-4.1-5-4.1z'/%3E%3C/svg%3E");
    background-size: 17px 17px;
}
.esa-points--icons li.esa-ico--med:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M9.5 3h5v6h6v5h-6v6h-5v-6h-6V9h6z'/%3E%3C/svg%3E");
}

.esa-points strong {
    display: block;
    color: var(--esa-ink);
    font-size: 16px;
}

.esa-points span {
    color: var(--esa-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Reassurance / fine-print note under an interstitial's points. */
.esa-fineprint {
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    background: #f5f6f8;
    border-radius: 14px;
    text-align: left;
}

.esa-fineprint p {
    margin: 0 0 10px;
    color: #2e3644;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.esa-fineprint p:last-child {
    margin-bottom: 0;
}

/* Content callout (informational body copy, not CTA fine print) */
.esa-callout {
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 20px 22px;
    background: #f5f6f8;
    border-radius: 14px;
    text-align: left;
}

.esa-callout p {
    margin: 0 0 12px;
    color: #2e3644;
    font-size: 16px;
    line-height: 1.55;
}

.esa-callout p:last-child {
    margin-bottom: 0;
}

/* Diamond-bulleted content callout variant */
.esa-callout--bullets p {
    position: relative;
    padding-left: 26px;
}

.esa-callout--bullets p:before {
    content: "\2666"; /* diamond */
    position: absolute;
    left: 4px;
    top: 0;
    color: #ff6b35;
    font-size: 16px;
    line-height: 1.55;
}

/* Diamond-bulleted variant (matches the funnel's list-style notes). */
.esa-fineprint--bullets p {
    position: relative;
    padding-left: 26px;
}

.esa-fineprint--bullets p:before {
    content: "\2666"; /* diamond */
    position: absolute;
    left: 4px;
    top: 0;
    color: #ff6b35;
    font-size: 15px;
    line-height: 1.55;
}

/* Testimonial */
.esa-testimonial {
    max-width: 520px;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid var(--esa-line);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.esa-testimonial__avatar {
    display: block;
    width: 260px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid var(--esa-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
}

/* Wide photo variant: fills the card like the other funnel media images. */
.esa-testimonial__avatar--wide {
    width: 100%;
    max-width: 520px;
}

/* ---- Intro / hero steps (pre-questionnaire welcome screens) ------------ */
.esa-hero__badges {
    list-style: none;
    padding: 0;
    margin: 4px auto 28px;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.esa-hero__badge,
.esa-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
}

.esa-hero__badge {
    color: var(--esa-ink);
    font-weight: 600;
}

.esa-hero__check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--esa-yellow);
    color: #000;
    font-weight: 800;
    font-size: 14px;
}

.esa-hero__rating {
    display: block;
    color: var(--esa-muted);
    font-weight: 600;
}

.esa-hero__stars {
    display: inline;
    white-space: nowrap;
    margin-right: 8px;
    color: #f5a623;
    letter-spacing: 1px;
    font-size: 16px;
}

.esa-testimonial__quote {
    font-size: 16px;
    line-height: 1.6;
    color: var(--esa-ink);
    font-style: italic;
    margin: 0 0 18px;
}

.esa-testimonial__name {
    font-weight: 800;
    color: var(--esa-ink);
    margin-top: 4px;
}

.esa-testimonial__role {
    color: var(--esa-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Comparison table ("What sets us apart") */
.esa-compare {
    max-width: 520px;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid var(--esa-line);
    border-radius: 16px;
    overflow: hidden;
}

.esa-compare__row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--esa-line);
}

.esa-compare__row:first-child {
    border-top: none;
    background: #fafafa;
    font-weight: 800;
    color: var(--esa-ink);
}

.esa-compare__row span:not(:first-child) {
    text-align: center;
}

.esa-compare__yes { color: #16a34a; font-weight: 800; }
.esa-compare__no  { color: #dc2626; font-weight: 800; }
.esa-compare__them { color: #8a93a3; font-weight: 600; }

/* ---- Forms ------------------------------------------------------------- */
.esa-form {
    max-width: 460px;
    margin: 0 auto;
}

.esa-form .form-label {
    font-weight: 600;
    color: var(--esa-ink);
}

.esa-form .form-control,
.esa-form .form-select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--esa-line);
    font-size: 16px; /* >=16px avoids iOS zoom-on-focus */
}

.esa-consent {
    max-width: 460px;
    margin: 20px auto 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--esa-muted);
    font-size: 14px;
    line-height: 1.5;
}

.esa-consent a { color: #1f4b99; }

/* ---- Continue / primary button ---------------------------------------- */
.esa-actions {
    width: 100%;
    max-width: 460px;
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand yellow CTA — identical to the home page primary button.
   Never full span: capped at 300px and centered. Red/green are reserved
   for the plans pages (.esa-rp) and Complete purchase. */
.esa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    min-height: 3.375rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.425rem 1rem;
    border: 2px solid #FDD000;
    border-radius: 999px;
    background: #FDD000;
    color: #353434;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

/* Do NOT put :visited / sticky :focus on the light hover fill — links stay dark after click. */
.esa-btn:visited {
    background: #FDD000;
    border-color: #FDD000;
    color: #353434;
    text-decoration: none;
}

.esa-btn:hover,
.esa-btn:focus-visible {
    background: #fdd726;
    border-color: #fdd51a;
    color: #00000D;
    text-decoration: none;
}

.esa-btn:active {
    background: #fdd933;
    border-color: #fdd51a;
    color: #00000D;
    text-decoration: none;
}

.esa-btn:disabled,
.esa-btn.is-disabled {
    opacity: .5;
    cursor: not-allowed;
}

.esa-btn--ghost,
a.esa-btn--ghost,
.esa-btn--ghost:visited,
a.esa-btn--ghost:visited {
    background: #fff;
    border-color: var(--esa-line);
    color: var(--esa-ink);
}
.esa-btn--ghost:hover,
.esa-btn--ghost:focus-visible,
a.esa-btn--ghost:hover,
a.esa-btn--ghost:focus-visible {
    background: #f7f7f8;
    border-color: #cfcfcf;
    color: var(--esa-ink);
}
.esa-btn--ghost:active,
a.esa-btn--ghost:active {
    background: #f0f0f1;
    border-color: #cfcfcf;
    color: var(--esa-ink);
}

/* ---- Analysis animation ------------------------------------------------ */
.esa-analysis {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.esa-scan {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    width: 100%;
    max-width: 420px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.esa-scan li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--esa-line);
    color: var(--esa-muted);
    opacity: .5;
    transition: opacity .3s ease, border-color .3s ease;
}

.esa-scan li.is-done {
    opacity: 1;
    border-color: var(--esa-yellow);
    color: var(--esa-ink);
    font-weight: 600;
}

.esa-scan__icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d5d9e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: transparent;
}

.esa-scan li.is-done .esa-scan__icon {
    background: var(--esa-yellow);
    border-color: var(--esa-yellow);
    color: #000;
}

.esa-meter {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 16px;
    text-align: left;
}

.esa-meter__label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--esa-ink);
    margin-bottom: 6px;
}

.esa-meter__track {
    height: 8px;
    border-radius: 999px;
    background: #ececec;
    overflow: hidden;
}

.esa-meter__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--esa-yellow);
    transition: width .6s ease;
}

.esa-analysis__pct {
    font-size: 40px;
    font-weight: 800;
    color: var(--esa-ink);
}

/* Match found badge */
.esa-match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #e6f7ec;
    color: #16a34a;
    font-size: 48px;
    margin: 0 auto 16px;
}

/* ---- Mobile ------------------------------------------------------------ */
@media (max-width: 575.98px) {
    .esa-wizard { padding: 0 12px 140px; }

    .esa-step__title { font-size: 23px; }

    .esa-step__subtitle { font-size: 15px; margin-bottom: 22px; }

    .esa-choice { font-size: 16px; padding: 14px 14px; }

    .esa-choice__key { width: 34px; height: 34px; font-size: 16px; }

    .esa-analysis__pct { font-size: 32px; }
}
