.bates-home-guide {
    --guide-navy: #13203c;
    --guide-blue: #2457a7;
    --guide-yellow: #f3bf2f;
    --guide-border: #dce3ee;
    padding: clamp(64px, 8vw, 104px) 0;
    background:
        radial-gradient(circle at 10% 8%, rgba(36, 87, 167, .09), transparent 32%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    scroll-margin-top: 88px;
    overflow: clip;
}

.bates-home-guide *,
.bates-home-guide *::before,
.bates-home-guide *::after {
    box-sizing: border-box;
}

.bates-home-guide__intro {
    width: min(760px, 100%);
    margin: 0 auto clamp(28px, 4vw, 44px);
    text-align: center;
}

.bates-home-guide__intro h2 {
    margin: 10px 0 14px;
    color: var(--guide-navy);
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.bates-home-guide__intro p {
    max-width: 680px;
    margin: 0 auto;
    color: #526078;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.7;
}

.bates-home-guide__shell {
    width: min(1000px, 100%);
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(19, 32, 60, .1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(19, 32, 60, .12);
}

.bates-home-guide__progress {
    padding: 24px clamp(20px, 4vw, 44px) 21px;
    color: #fff;
    background: var(--guide-navy);
    scroll-margin-top: clamp(72px, 10vh, 104px);
}

.bates-home-guide__progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    font-size: .88rem;
}

.bates-home-guide__progress-head span { color: #cbd5e7; }
.bates-home-guide__progress-head strong { font-size: .95rem; }

.bates-home-guide__progress-track {
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .16);
}

.bates-home-guide__progress-track span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--guide-yellow);
    transition: width .32s ease;
}

.bates-home-guide__progress ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.bates-home-guide__progress li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #95a2ba;
}

.bates-home-guide__progress li span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    font-size: .76rem;
    font-weight: 800;
}

.bates-home-guide__progress li small {
    overflow: hidden;
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bates-home-guide__progress li.is-active,
.bates-home-guide__progress li.is-complete { color: #fff; }
.bates-home-guide__progress li.is-active span { border-color: var(--guide-yellow); background: var(--guide-yellow); color: var(--guide-navy); }
.bates-home-guide__progress li.is-complete span { border-color: rgba(243, 191, 47, .7); color: var(--guide-yellow); }

.bates-home-guide__body {
    min-width: 0;
    padding: clamp(28px, 5vw, 52px);
}

.bates-home-guide__step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.bates-home-guide__step[hidden] { display: none; }

.bates-home-guide__step.is-active {
    animation: bates-guide-enter .28s ease both;
}

.bates-home-guide__step.is-shaking {
    animation: bates-guide-shake .22s ease both;
}

.bates-home-guide__step legend {
    width: 100%;
    padding: 0;
    color: var(--guide-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.bates-home-guide__step > p {
    margin: 10px 0 24px;
    color: #647086;
    line-height: 1.6;
}

.bates-home-guide__choices {
    display: grid;
    min-width: 0;
    gap: 13px;
}

.bates-home-guide__choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bates-home-guide__choices--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bates-home-guide__choice {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.bates-home-guide__choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bates-home-guide__choice > span {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 94px;
    flex-direction: column;
    justify-content: center;
    padding: 19px 20px 19px 54px;
    border: 1px solid var(--guide-border);
    border-radius: 16px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.bates-home-guide__choice > span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    border: 2px solid #aab4c5;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}

.bates-home-guide__choice--check > span::before { border-radius: 6px; }
.bates-home-guide__choice strong { color: var(--guide-navy); font-size: .98rem; line-height: 1.35; }
.bates-home-guide__choice small { margin-top: 5px; color: #69758a; font-size: .82rem; line-height: 1.45; }
.bates-home-guide__choice--compact > span { min-height: 92px; padding-left: 20px; text-align: center; }
.bates-home-guide__choice--compact > span::before { position: static; margin: 0 auto 10px; transform: none; }

.bates-home-guide__choice:hover > span {
    border-color: #aebcd2;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(19, 32, 60, .08);
}

.bates-home-guide__choice input:focus-visible + span {
    outline: 3px solid rgba(36, 87, 167, .28);
    outline-offset: 3px;
}

.bates-home-guide__choice input:checked + span {
    border-color: var(--guide-blue);
    background: #f4f7fd;
    box-shadow: 0 0 0 1px var(--guide-blue), 0 12px 28px rgba(36, 87, 167, .11);
}

.bates-home-guide__choice input:checked + span::before {
    border-color: var(--guide-blue);
    background: var(--guide-blue);
}

.bates-home-guide__choice--check input:checked + span::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translate(-50%, -54%);
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
}

.bates-home-guide__actions,
.bates-home-guide__result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.bates-home-guide__field-error {
    display: block;
    margin-top: 14px;
    color: #ad2f2f;
    font-size: .88rem;
    font-weight: 700;
}

.bates-home-guide__field-error[hidden] { display: none; }

.bates-home-guide__result[hidden] { display: none; }
.bates-home-guide__result { animation: bates-guide-enter .35s ease both; }
.bates-home-guide__result-head { max-width: 720px; }
.bates-home-guide__result h3 { margin: 10px 0; color: var(--guide-navy); font-size: clamp(1.65rem, 3.5vw, 2.4rem); letter-spacing: -.025em; }
.bates-home-guide__result-head p { color: #647086; line-height: 1.6; }

.bates-home-guide__recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 26px;
}

.bates-home-guide__recommendation {
    display: flex;
    min-width: 0;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--guide-border);
    border-radius: 16px;
    background: #fff;
}

.bates-home-guide__recommendation-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--guide-navy);
    color: var(--guide-yellow);
    font-weight: 900;
}

.bates-home-guide__recommendation strong { display: block; color: var(--guide-navy); line-height: 1.3; }
.bates-home-guide__recommendation small { display: block; margin-top: 4px; color: #647086; line-height: 1.45; }

.bates-home-guide__result-note {
    display: flex;
    gap: 10px 18px;
    align-items: center;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff8df;
    color: #4d4634;
}

.bates-home-guide__result-note strong { flex: 0 0 auto; color: var(--guide-navy); }
.bates-home-guide__result-actions { justify-content: flex-start; }
.bates-home-guide__noscript { width: min(1000px, 100%); margin: 16px auto 0; color: #667085; text-align: center; }

@keyframes bates-guide-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bates-guide-shake {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-5px); }
    70% { transform: translateX(5px); }
}

@media (max-width: 760px) {
    .bates-home-guide { padding: 54px 0; scroll-margin-top: 72px; }
    .bates-home-guide__shell { border-radius: 20px; }
    .bates-home-guide__progress { padding: 20px; }
    .bates-home-guide__progress ol { gap: 5px; }
    .bates-home-guide__progress li { justify-content: center; }
    .bates-home-guide__progress li small { display: none; }
    .bates-home-guide__body { padding: 26px 20px 28px; }
    .bates-home-guide__choices--two,
    .bates-home-guide__choices--four,
    .bates-home-guide__recommendations { grid-template-columns: minmax(0, 1fr); }
    .bates-home-guide__choice > span,
    .bates-home-guide__choice--compact > span { min-height: 74px; padding: 15px 16px 15px 50px; text-align: left; }
    .bates-home-guide__choice--compact > span::before { position: absolute; margin: 0; transform: translateY(-50%); }
    .bates-home-guide__result-note { align-items: flex-start; flex-direction: column; }
    .bates-home-guide__actions .button,
    .bates-home-guide__result-actions .button { width: 100%; }
}

@media (max-width: 420px) {
    .bates-home-guide__progress-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .bates-home-guide__progress { padding-inline: 16px; }
    .bates-home-guide__body { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .bates-home-guide__step.is-active,
    .bates-home-guide__step.is-shaking,
    .bates-home-guide__result { animation: none; }
    .bates-home-guide__progress-track span,
    .bates-home-guide__choice > span { transition: none; }
    .bates-home-guide__choice:hover > span { transform: none; }
}
