.astar-family-route-quiz {
    --route-ink: #10233d;
    --route-muted: #586779;
    --route-blue: #1769aa;
    --route-blue-dark: #0f4f84;
    --route-blue-soft: #eef7ff;
    --route-line: #d8e3ee;
    --route-paper: #ffffff;
    width: min(1120px, calc(100% - 32px));
    margin: 38px auto;
    padding: clamp(24px, 4vw, 46px);
    color: var(--route-ink);
    background: linear-gradient(145deg, #f7fbff 0%, #ffffff 58%, #fffaf0 100%);
    border: 1px solid var(--route-line);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(16, 35, 61, .08);
    box-sizing: border-box;
}

.astar-family-route-quiz [hidden] {
    display: none !important;
}

.astar-family-route-quiz *,
.astar-family-route-quiz *::before,
.astar-family-route-quiz *::after {
    box-sizing: border-box;
}

.astar-family-route-quiz h2 {
    margin: 0;
    color: var(--route-ink);
    font-size: clamp(28px, 3.4vw, 43px);
    line-height: 1.18;
    letter-spacing: -.03em;
}

.astar-family-route-quiz p {
    margin-top: 0;
}

.astar-family-route-quiz__kicker,
.astar-family-route-quiz__section {
    display: block;
    margin-bottom: 10px;
    color: var(--route-blue);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.astar-family-route-quiz__lead {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--route-muted);
    font-size: 17px;
    line-height: 1.75;
}

.astar-family-route-quiz__gate-layout,
.astar-family-route-quiz__intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
}

.astar-family-route-quiz__gate-action {
    padding-left: 26px;
    border-left: 3px solid var(--route-blue);
}

.astar-family-route-quiz__gate-action strong {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
}

.astar-family-route-quiz__gate-action p {
    margin-bottom: 18px;
    color: var(--route-muted);
    line-height: 1.7;
}

.astar-family-route-quiz__intro-points {
    display: grid;
    gap: 9px;
    padding-left: 25px;
    border-left: 3px solid var(--route-blue);
    color: #35506f;
    font-size: 15px;
    font-weight: 650;
}

.astar-family-route-quiz__intro-points span::before {
    content: "✓";
    margin-right: 9px;
    color: var(--route-blue);
}

.astar-family-route-quiz__notice {
    margin: 24px 0 22px;
    padding: 14px 16px;
    color: #4f6072;
    background: rgba(238, 247, 255, .82);
    border-left: 3px solid #7fb2dc;
    border-radius: 4px 12px 12px 4px;
    font-size: 14px;
    line-height: 1.7;
}

.astar-family-route-quiz__actions,
.astar-family-route-quiz__nav,
.astar-family-route-quiz__result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.astar-family-route-quiz__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 720;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.astar-family-route-quiz__button:hover {
    transform: translateY(-1px);
}

.astar-family-route-quiz__button:focus-visible,
.astar-family-route-quiz__option input:focus-visible + span {
    outline: 3px solid rgba(23, 105, 170, .28);
    outline-offset: 3px;
}

.astar-family-route-quiz__button--primary {
    color: #fff !important;
    background: var(--route-blue);
    border-color: var(--route-blue);
    box-shadow: 0 8px 20px rgba(23, 105, 170, .18);
}

.astar-family-route-quiz__button--primary:hover {
    color: #fff !important;
    background: var(--route-blue-dark);
    border-color: var(--route-blue-dark);
}

.astar-family-route-quiz__button--secondary {
    color: var(--route-blue-dark) !important;
    background: #fff;
    border-color: #b8cbe0;
}

.astar-family-route-quiz__button[disabled] {
    opacity: .46;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.astar-family-route-quiz__stage {
    max-width: 860px;
    margin: 0 auto;
}

.astar-family-route-quiz__progress-row {
    display: grid;
    grid-template-columns: minmax(150px, .42fr) minmax(220px, 1fr);
    gap: 22px;
    align-items: end;
    margin-bottom: 24px;
}

.astar-family-route-quiz__progress-row strong {
    font-size: 15px;
}

.astar-family-route-quiz__section {
    margin-bottom: 3px;
}

.astar-family-route-quiz__progress {
    height: 8px;
    overflow: hidden;
    background: #dfe9f2;
    border-radius: 999px;
}

.astar-family-route-quiz__progress span {
    display: block;
    width: 3.34%;
    height: 100%;
    background: linear-gradient(90deg, var(--route-blue), #41a2c9);
    border-radius: inherit;
    transition: width .22s ease;
}

.astar-family-route-quiz__form {
    margin: 0;
}

.astar-family-route-quiz__question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.astar-family-route-quiz__question legend {
    display: block;
    width: 100%;
    margin-bottom: 18px;
    padding: 0;
    color: var(--route-ink);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 760;
    line-height: 1.4;
}

.astar-family-route-quiz__help {
    margin: -6px 0 17px;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.65;
}

.astar-family-route-quiz__options {
    display: grid;
    gap: 11px;
}

.astar-family-route-quiz__option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.astar-family-route-quiz__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.astar-family-route-quiz__option span {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 14px 48px 14px 17px;
    color: #263d58;
    background: var(--route-paper);
    border: 1px solid #cbd9e7;
    border-radius: 14px;
    line-height: 1.55;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.astar-family-route-quiz__option span::after {
    content: "";
    position: absolute;
    right: 18px;
    width: 17px;
    height: 17px;
    border: 2px solid #657d94;
    border-radius: 50%;
}

.astar-family-route-quiz__option:hover span {
    border-color: #82acd0;
    background: #fafdff;
}

.astar-family-route-quiz__option input:checked + span {
    color: #0f4f84;
    background: var(--route-blue-soft);
    border-color: var(--route-blue);
    box-shadow: 0 0 0 2px rgba(23, 105, 170, .1);
}

.astar-family-route-quiz__option input:checked + span::after {
    border: 5px solid var(--route-blue);
    background: #fff;
}

.astar-family-route-quiz__validation {
    min-height: 22px;
    margin: 11px 0 3px;
    color: #9a3412;
    font-size: 14px;
}

.astar-family-route-quiz__nav {
    justify-content: space-between;
    padding-top: 11px;
}

.astar-family-route-quiz__result {
    max-width: 850px;
    margin: 0 auto;
}

.astar-family-route-quiz__result-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    color: var(--route-blue-dark);
    background: var(--route-blue-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.astar-family-route-quiz__result h2 {
    margin-bottom: 13px;
}

.astar-family-route-quiz__result-copy {
    color: #43556a;
    font-size: 16px;
    line-height: 1.8;
}

.astar-family-route-quiz__reasons,
.astar-family-route-quiz__prep {
    margin: 20px 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--route-line);
    border-radius: 16px;
}

.astar-family-route-quiz__reasons strong,
.astar-family-route-quiz__prep strong {
    display: block;
    margin-bottom: 8px;
}

.astar-family-route-quiz__reasons ul,
.astar-family-route-quiz__prep ol {
    margin: 0;
    padding-left: 21px;
    color: #40536a;
    line-height: 1.75;
}

.astar-family-route-quiz__result--select {
    --route-blue: #a96612;
    --route-blue-dark: #77480e;
    --route-blue-soft: #fff5df;
}

.astar-family-route-quiz__result--blocked {
    --route-blue: #b4443c;
    --route-blue-dark: #873029;
    --route-blue-soft: #fff0ee;
}

.astar-family-route-quiz__fine-print {
    margin: 18px 0 0;
    color: #667588;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .astar-family-route-quiz {
        width: min(100% - 20px, 1120px);
        margin: 26px auto;
        padding: 23px 18px;
        border-radius: 20px;
    }

    .astar-family-route-quiz__gate-layout,
    .astar-family-route-quiz__intro-layout,
    .astar-family-route-quiz__progress-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .astar-family-route-quiz__gate-layout,
    .astar-family-route-quiz__intro-layout {
        gap: 22px;
    }

    .astar-family-route-quiz__gate-action,
    .astar-family-route-quiz__intro-points {
        padding: 16px 0 0;
        border-top: 3px solid var(--route-blue);
        border-left: 0;
    }

    .astar-family-route-quiz__progress-row {
        gap: 11px;
        margin-bottom: 20px;
    }

    .astar-family-route-quiz__button {
        flex: 1 1 145px;
    }

    .astar-family-route-quiz__question legend {
        font-size: 22px;
    }

    .astar-family-route-quiz__option span {
        min-height: 62px;
        padding: 13px 43px 13px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .astar-family-route-quiz *,
    .astar-family-route-quiz *::before,
    .astar-family-route-quiz *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
