@font-face {
    font-family: "Merck Display";
    src: url("/fonts/Merck.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Merck Regular";
    src: url("/fonts/Merck-Regular.otf") format("opentype");
    font-display: swap;
}

:root {
    --purple: #4a2d87;
    --purple-dark: #38206f;
    --red: #ed174f;
    --yellow: #ffd12d;
    --aqua: #99dedc;
    --white: #fff;
    --ink: #4b2a89;
    --shadow: 0 16px 34px rgba(24, 8, 58, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--yellow);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: var(--purple-dark);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

.campaign-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding: 22px 16px 150px;
    background:
        linear-gradient(rgba(74, 45, 135, 0.9), rgba(74, 45, 135, 0.9));
}

.campaign-shell::before,
.campaign-shell::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: min(46vw, 300px);
    aspect-ratio: 1.08;
    pointer-events: none;
}

.campaign-shell::before {
    left: -130px;
    top: 72px;
}

.campaign-shell::after {
    right: -130px;
    top: 210px;
}

.fullscreen-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(153, 222, 220, 0.35);
    border-radius: 50%;
    background: rgba(74, 45, 135, 0.65);
    color: var(--yellow);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(24, 8, 58, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0.8;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.fullscreen-btn:hover {
    background: rgba(153, 222, 220, 0.3);
    border-color: var(--aqua);
    color: var(--aqua);
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(153, 222, 220, 0.25);
}

.fullscreen-btn:active {
    transform: translateY(0) scale(0.95);
}

.fullscreen-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.ambient {
    display: none;
}

.hero-screen,
.form-screen,
.result-screen {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    margin: auto;
}

.is-hidden {
    display: none !important;
}

.brand-row,
.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.brand-campaign {
    width: 112px;
    height: auto;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
}

.brand-merck {
    width: 96px;
    height: auto;
}

.mini-logo-wrap {
    width: 96px;
    aspect-ratio: 1.08;
    display: grid;
    place-items: center;
}

.mini-logo {
    width: 76%;
}

.icon-button {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    background: transparent;
}

.icon-button img {
    width: 28px;
}

.hero-grid {
    display: grid;
    gap: 18px;
    text-align: center;
}

.hero-visual {
    width: min(360px, 86vw);
    aspect-ratio: 1.08;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.hero-visual img {
    width: 100%;
    padding: 1rem;
}

.score-card {
    display: none;
}

h1,
h2,
h3,
.eyebrow,
.primary-button,
.secondary-button,
.ghost-link,
.choice-option span,
.choice-pill span,
.campaign-footer strong,
.result-score,
.bmi-result strong {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: 0;
}

h1 {
    font-family: 'Merck Display', sans-serif;
    font-weight: normal;
}

.hero-copy h1,
.form-header h2,
.step-content h3,
.result-card h2 {
    margin: 0;
    line-height: 0.96;

}

.hero-copy h1 {
    color: var(--aqua);
    font-size: clamp(1.15rem, 10vw, 3rem);
    text-transform: uppercase;
}

.form-header h2 {
    color: var(--aqua);
    font-size: clamp(1.7rem, 8vw, 2rem);
    text-align: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: clamp(1rem, 4.5vw, 1.4rem);
}

.hero-text,
.hero-strong,
.step-help,
.result-card p,
.recommendation p,
.result-card small {
    color: var(--yellow);
    font-size: clamp(1.05rem, 4.7vw, 1.45rem);
    line-height: 1.22;
}

.hero-text,
.hero-strong {
    margin: 18px auto 0;
}

.hero-strong {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.hero-claim {
    margin: 18px auto 0;
    color: var(--yellow);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: clamp(1.35rem, 6vw, 2rem);
}

.hero-actions,
.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
}

.hero-actions.centered {
    justify-content: center;
}

.primary-button,
.ghost-link {
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    padding: 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aqua);
    color: var(--ink);
    text-decoration: none;
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.primary-button:hover,
.ghost-link:hover,
.choice-option span:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.3) opacity(0.55);
    transform: none;
}

[data-start] {
    animation: pulseButton 2.2s ease-in-out infinite;
}

.secondary-button,
.form-actions .primary-button:not([data-submit]) {
    width: 76px;
    height: 76px;
    min-height: 76px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: transparent;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.secondary-button::before,
.form-actions .primary-button:not([data-submit])::before {
    content: "";
    width: 38px;
    height: 38px;
    background: var(--purple);
}

.secondary-button::before {
    clip-path: polygon(62% 0, 18% 50%, 62% 100%, 62% 66%, 100% 66%, 100% 34%, 62% 34%);
}

.form-actions .primary-button:not([data-submit])::before {
    clip-path: polygon(38% 0, 82% 50%, 38% 100%, 38% 66%, 0 66%, 0 34%, 38% 34%);
}

.progress-wrap {
    margin: 12px 0 22px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--aqua);
    font-family: "Merck Display", "Merck Regular", Arial, sans-serif;
    font-size: 1.03rem;
}

.progress-meta strong {
    color: var(--yellow);
}

.progress-track {
    position: relative;
    height: 9px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--aqua);
}

.progress-track span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--red);
    transition: width 0.28s ease;
}

.progress-track img {
    position: absolute;
    left: 0;
    top: 50%;
    width: 25px;
    transform: translate(-50%, -50%);
    transition: left 0.28s ease;
}

.question-card {
    padding: 0;
}

.step {
    display: none;
    text-align: center;
    animation: stepIn 0.42s cubic-bezier(.16, 1, .3, 1) both;
}

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

/* Horizontal step layout grid shared for all screen sizes above 360px */
@media (min-width: 360px) {
    .step.is-active:not([data-step="0"]):not(.result-step) {
        display: grid;
        align-items: center;
        text-align: left;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-media {
        width: 100%;
        min-height: auto;
        margin: 0;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-media::before {
        width: 100%;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-content {
        text-align: left;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-help {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .choice-group {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .single-input {
        margin-left: 0;
        text-align: left;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .metric-preview,
    .step.is-active:not([data-step="0"]):not(.result-step) .bmi-result {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* Mobile & Tablet grid variation: Image next to question text, answers below */
@media (min-width: 360px) and (max-width: 859px) {
    .step.is-active:not([data-step="0"]):not(.result-step) {
        grid-template-columns: minmax(105px, 140px) 1fr;
        gap: 18px;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-media {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-media img {
        max-width: 100%;
        max-height: 135px;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-content {
        display: contents;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .eyebrow {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-content h3 {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-help,
    .step.is-active:not([data-step="0"]):not(.result-step) .choice-group,
    .step.is-active:not([data-step="0"]):not(.result-step) .single-input,
    .step.is-active:not([data-step="0"]):not(.result-step) .metric-preview,
    .step.is-active:not([data-step="0"]):not(.result-step) .bmi-result,
    .step.is-active:not([data-step="0"]):not(.result-step) .field-error {
        grid-column: 1 / span 2;
    }
}

.step-media {
    position: relative;
    width: min(390px, 90vw);
    min-height: 265px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}

.step-media::before {
    content: "";
    position: absolute;
    width: min(390px, 90vw);
    aspect-ratio: 1.08;
}

.step-media img {
    position: relative;
    z-index: 1;
    max-width: min(230px, 60vw);
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 12px 13px rgba(0, 0, 0, 0.2));
}

.step-content h3 {
    color: var(--yellow);
    font-size: clamp(1.7rem, 9.5vw, 2.5rem);
    line-height: 1.05;
}

.step-content h3.text-medium {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.15;
}

.step-content h3.text-long {
    font-size: clamp(1.2rem, 5.2vw, 1.6rem);
    line-height: 1.15;
}

.step-help {
    max-width: 440px;
    margin: 18px auto;
}

.field-grid {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .name-row {
        grid-template-columns: 1fr;
    }
}

label,
.terms-text {
    color: var(--yellow);
    font-size: clamp(1rem, 4.2vw, 1.22rem);
    text-align: left;
}

input {
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    background: var(--white);
    color: var(--ink);
    outline: none;
}

input:focus {
    box-shadow: 0 0 0 5px rgba(153, 222, 220, 0.35);
}

.single-input {
    display: block;
    width: min(440px, 100%);
    margin: 0 auto;
    text-align: center;
}

.unit-input {
    display: grid;
    grid-template-columns: 1fr 54px;
    align-items: center;
    min-height: 58px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--white);
}

.unit-input input {
    min-height: 58px;
    margin: 0;
    background: transparent;
}

.unit-input em {
    color: var(--ink);
    font-style: normal;
    font-family: "Merck Display", "Merck Regular", Arial, sans-serif;
}

.choice-group {
    width: min(440px, 100%);
    margin: 20px auto 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 12px;
}

.choice-group legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.choice-option input,
.choice-pill input {
    position: absolute;
    opacity: 0;
}

.choice-option span,
.choice-pill span {
    min-height: 56px;
    padding: 10px 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aqua);
    color: var(--ink);
    font-size: clamp(1.25rem, 6vw, 2rem);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transition: font-size 0.22s ease;
}

.choice-option span.text-medium,
.choice-pill span.text-medium {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
}

.choice-option span.text-long,
.choice-pill span.text-long {
    font-size: clamp(0.95rem, 4.2vw, 1.22rem);
}

.choice-option input:checked+span,
.choice-pill input:checked+span {
    box-shadow: 0 0 0 5px rgba(255, 209, 45, 0.38);
    filter: brightness(1.05);
}

.terms-row {
    width: min(440px, 100%);
    margin: 18px auto 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.terms-text {
    color: var(--yellow);
    font-size: clamp(1rem, 4.2vw, 1.22rem);
    line-height: 1.35;
    margin: 0;
}

.neon-checkbox {
    --primary: var(--aqua);
    --primary-dark: #74c7c5;
    --primary-light: #cbf7f6;
    --size: 28px;
    position: relative;
    width: var(--size);
    height: var(--size);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.neon-checkbox input {
    display: none;
}

.neon-checkbox__frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.neon-checkbox__box {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    border: 2px solid var(--primary-dark);
    transition: all 0.4s ease;
}

.neon-checkbox__check-container {
    position: absolute;
    inset: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neon-checkbox__check {
    width: 80%;
    height: 80%;
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.neon-checkbox__glow {
    position: absolute;
    inset: -2px;
    border-radius: 6px;
    background: var(--primary);
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.neon-checkbox__borders {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    overflow: hidden;
}

.neon-checkbox__borders span {
    position: absolute;
    width: 40px;
    height: 1px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.neon-checkbox__borders span:nth-child(1) {
    top: 0;
    left: -100%;
    animation: borderFlow1 2s linear infinite;
}

.neon-checkbox__borders span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 1px;
    height: 40px;
    animation: borderFlow2 2s linear infinite;
}

.neon-checkbox__borders span:nth-child(3) {
    bottom: 0;
    right: -100%;
    animation: borderFlow3 2s linear infinite;
}

.neon-checkbox__borders span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 1px;
    height: 40px;
    animation: borderFlow4 2s linear infinite;
}

.neon-checkbox__particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 6px var(--primary);
}

.neon-checkbox__rings {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.neon-checkbox__rings .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--primary);
    opacity: 0;
    transform: scale(0);
}

.neon-checkbox__sparks span {
    position: absolute;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
}

/* Hover Effects */
.neon-checkbox:hover .neon-checkbox__box {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Checked State */
.neon-checkbox input:checked~.neon-checkbox__frame .neon-checkbox__box {
    border-color: var(--primary);
    background: rgba(153, 222, 220, 0.1);
}

.neon-checkbox input:checked~.neon-checkbox__frame .neon-checkbox__check {
    stroke-dashoffset: 0;
    transform: scale(1.1);
}

.neon-checkbox input:checked~.neon-checkbox__frame .neon-checkbox__glow {
    opacity: 0.2;
}

.neon-checkbox input:checked~.neon-checkbox__frame .neon-checkbox__borders span {
    opacity: 1;
}

/* Particle Animations */
.neon-checkbox input:checked~.neon-checkbox__frame .neon-checkbox__particles span {
    animation: particleExplosion 0.6s ease-out forwards;
}

.neon-checkbox input:checked~.neon-checkbox__frame .neon-checkbox__rings .ring {
    animation: ringPulse 0.6s ease-out forwards;
}

.neon-checkbox input:checked~.neon-checkbox__frame .neon-checkbox__sparks span {
    animation: sparkFlash 0.6s ease-out forwards;
}

/* Animations */
@keyframes borderFlow1 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes borderFlow2 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(200%);
    }
}

@keyframes borderFlow3 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200%);
    }
}

@keyframes borderFlow4 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200%);
    }
}

@keyframes particleExplosion {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--x, 20px)),
                calc(-50% + var(--y, 20px))) scale(0);
        opacity: 0;
    }
}

@keyframes ringPulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes sparkFlash {
    0% {
        transform: rotate(var(--r, 0deg)) translateX(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: rotate(var(--r, 0deg)) translateX(30px) scale(0);
        opacity: 0;
    }
}

/* Particle Positions */
.neon-checkbox__particles span:nth-child(1) {
    --x: 25px;
    --y: -25px;
}

.neon-checkbox__particles span:nth-child(2) {
    --x: -25px;
    --y: -25px;
}

.neon-checkbox__particles span:nth-child(3) {
    --x: 25px;
    --y: 25px;
}

.neon-checkbox__particles span:nth-child(4) {
    --x: -25px;
    --y: 25px;
}

.neon-checkbox__particles span:nth-child(5) {
    --x: 35px;
    --y: 0px;
}

.neon-checkbox__particles span:nth-child(6) {
    --x: -35px;
    --y: 0px;
}

.neon-checkbox__particles span:nth-child(7) {
    --x: 0px;
    --y: 35px;
}

.neon-checkbox__particles span:nth-child(8) {
    --x: 0px;
    --y: -35px;
}

.neon-checkbox__particles span:nth-child(9) {
    --x: 20px;
    --y: -30px;
}

.neon-checkbox__particles span:nth-child(10) {
    --x: -20px;
    --y: 30px;
}

.neon-checkbox__particles span:nth-child(11) {
    --x: 30px;
    --y: 20px;
}

.neon-checkbox__particles span:nth-child(12) {
    --x: -30px;
    --y: -20px;
}

/* Spark Rotations */
.neon-checkbox__sparks span:nth-child(1) {
    --r: 0deg;
    top: 50%;
    left: 50%;
}

.neon-checkbox__sparks span:nth-child(2) {
    --r: 90deg;
    top: 50%;
    left: 50%;
}

.neon-checkbox__sparks span:nth-child(3) {
    --r: 180deg;
    top: 50%;
    left: 50%;
}

.neon-checkbox__sparks span:nth-child(4) {
    --r: 270deg;
    top: 50%;
    left: 50%;
}

/* Ring Delays */
.neon-checkbox__rings .ring:nth-child(1) {
    animation-delay: 0s;
}

.neon-checkbox__rings .ring:nth-child(2) {
    animation-delay: 0.1s;
}

.neon-checkbox__rings .ring:nth-child(3) {
    animation-delay: 0.2s;
}

.terms-link {
    display: inline;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--yellow);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.terms-link:hover,
.terms-link:focus {
    color: var(--white);
    outline: none;
}

.metric-preview,
.bmi-result,
.summary-box,
.recommendation {
    width: min(440px, 100%);
    margin: 18px auto 0;
    border: 2px solid rgba(153, 222, 220, 0.42);
    border-radius: 24px;
    padding: 16px;
    background: rgba(153, 222, 220, 0.12);
}

.metric-preview span,
.bmi-result span,
.bmi-result em {
    display: block;
    color: var(--aqua);
    font-style: normal;
}

.metric-preview strong,
.bmi-result strong {
    display: block;
    color: var(--yellow);
    font-size: clamp(1.8rem, 8vw, 3rem);
}

.summary-box {
    display: grid;
    gap: 8px;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(153, 222, 220, 0.28);
    padding-bottom: 7px;
}

.summary-row:last-child {
    border-bottom: 0;
    color: var(--aqua);
    font-family: "Merck Display", "Merck Regular", Arial, sans-serif;
}

.field-error {
    min-height: 24px;
    margin: 8px 0 0;
    color: var(--aqua);
    font-family: "Merck Display", "Merck Regular", Arial, sans-serif;
}

.calculate-button {
    margin-top: 18px;
}

.result-screen {
    text-align: center;
}

.result-card {
    padding-top: 12px;
}

.result-logo {
    width: 120px;
    padding: 12px;
    margin: 0 0 12px auto;
}

.result-ball {
    position: relative;
    width: min(235px, 66vw);
    aspect-ratio: 1;
    margin: 12px auto 8px;
    display: grid;
    place-items: center;
    animation: ballScoreIn 0.72s cubic-bezier(.18, .9, .2, 1.2) both;
}

.result-ball::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: var(--risk-color, #31b54a);
    opacity: 0.72;
}

.result-ball img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-ball strong {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-family: "Merck Display", "Merck Regular", Arial, sans-serif;
    font-size: clamp(2.4rem, 14vw, 4.4rem);
    text-shadow: 
        -1.5px -1.5px 0 rgba(0, 0, 0, 0.8),
        1.5px -1.5px 0 rgba(0, 0, 0, 0.8),
        -1.5px 1.5px 0 rgba(0, 0, 0, 0.8),
        1.5px 1.5px 0 rgba(0, 0, 0, 0.8),
        0 6px 12px rgba(0, 0, 0, 0.9);
}

.result-card h2 {
    color: var(--aqua);
    font-size: clamp(2.25rem, 10vw, 4rem);
}

.result-score {
    font-size: 1.35rem;
}

.result-score strong {
    color: var(--yellow);
    font-size: 2.1rem;
}

.campaign-footer {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0;
    width: min(560px, calc(100% - 24px));
    min-height: 120px;
    transform: translateX(-50%);
    padding: 20px 20px 12px;
    text-align: center;
    background: url("/images/FOOTER@4x.png") no-repeat center bottom / 100% 100%;
}

.campaign-footer strong {
    display: block;
    color: var(--yellow);
    font-size: clamp(1rem, 5vw, 1.55rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.campaign-footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 10vw, 70px);
    margin-top: 10px;
}

.campaign-footer img:first-child {
    width: 58px;
}

.campaign-footer img:last-child {
    width: 142px;
}

.terms-modal {
    position: fixed;
    z-index: 20;
    inset: 0;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(27, 12, 57, 0.78);
}

.terms-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(82vh, 760px);
    overflow: auto;
    padding: 26px;
    border-radius: 18px;
    background: var(--white);
    color: #2c2650;
    box-shadow: var(--shadow);
}

.terms-dialog h2,
.terms-dialog h3 {
    margin: 0 42px 10px 0;
    color: var(--ink);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.terms-copy {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.45;
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseButton {

    0%,
    100% {
        box-shadow: var(--shadow), 0 0 0 0 rgba(153, 222, 220, 0.36);
    }

    50% {
        box-shadow: var(--shadow), 0 0 0 12px rgba(153, 222, 220, 0);
    }
}

@keyframes ballScoreIn {
    from {
        opacity: 0;
        transform: scale(0) rotate(-28deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@media (min-width: 860px) {
    .campaign-shell {
        padding-top: 28px;
    }

    .hero-screen,
    .form-screen,
    .result-screen {
        width: min(1120px, 100%);
    }

    .hero-grid {
        grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 1.1fr);
        align-items: center;
        gap: 44px;
        text-align: left;
    }

    .hero-visual {
        grid-column: 1;
        grid-row: 1;
        width: min(430px, 38vw);
    }

    .hero-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .hero-text,
    .hero-strong,
    .hero-claim {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-actions.centered {
        justify-content: center;
    }

    .form-screen,
    .result-screen {
        width: min(820px, 100%);
    }

    /* Horizontal step layout: image left, content right */
    .step.is-active:not([data-step="0"]):not(.result-step) {
        grid-template-columns: minmax(220px, 300px) 1fr;
        gap: 36px;
    }

    .step.is-active:not([data-step="0"]):not(.result-step) .step-media img {
        max-height: 320px;
    }
}

@media (max-width: 430px) {
    .campaign-shell {
        padding-inline: 14px;
    }

    .step-media {
        min-height: 220px;
    }

    .step-media::before {
        width: min(330px, 88vw);
    }

    .step-media img {
        max-height: 200px;
    }

    /* Reducción de fuentes y elementos en celular */
    .hero-copy h1 {
        font-size: 1.7rem;
    }

    .hero-claim {
        font-size: 1.25rem;
    }

    .hero-text,
    .hero-strong,
    .step-help,
    .result-card p,
    .recommendation p {
        font-size: 0.95rem;
    }

    .step-content h3 {
        font-size: 1.7rem;
    }

    .choice-option span,
    .choice-pill span {
        font-size: 1.1rem;
        min-height: 48px;
        padding: 8px 18px;
    }

    .primary-button,
    .ghost-link {
        font-size: 1.1rem;
        min-height: 48px;
        padding: 0 24px;
    }

    .secondary-button,
    .form-actions .primary-button:not([data-submit]) {
        width: 58px;
        height: 58px;
        min-height: 58px;
    }

    .secondary-button::before,
    .form-actions .primary-button:not([data-submit])::before {
        width: 28px;
        height: 28px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .eyebrow {
        font-size: 0.9rem;
    }

    label,
    .terms-text {
        font-size: 0.9rem;
    }

    input,
    .unit-input,
    .unit-input input {
        min-height: 30px;
    }
}

/* Contenedor de balones en el fondo */
.bouncing-balls-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Balón individual rebotando */
.bouncing-ball {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background-image: var(--ball-img);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.09;
    /* Sutil y tenue pero visible */
    pointer-events: none;
    will-change: transform;
}

/* ============================================================
   PROFESSIONAL UI ANIMATIONS
   Elegant, smooth, staggered entrance + micro-animations
   ============================================================ */

/* --- Core Keyframes --- */

/* Fade + lift from below */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade + drop from above */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade + slide from left */
@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade + slide from right */
@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale up (logo pop) */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.06) rotate(1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Gentle continuous float */
@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Subtle glow pulse on logo */
@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22)) drop-shadow(0 0 0px rgba(153, 222, 220, 0));
    }

    50% {
        filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22)) drop-shadow(0 0 14px rgba(153, 222, 220, 0.45));
    }
}

/* Golden shimmer sweep across text */
@keyframes goldenShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Pulsating golden glow halo */
@keyframes goldenGlow {

    0%,
    100% {
        text-shadow:
            0 0 4px rgba(255, 209, 45, 0.3),
            0 0 8px rgba(255, 209, 45, 0.15);
        filter: brightness(1);
    }

    50% {
        text-shadow:
            0 0 10px rgba(255, 209, 45, 0.65),
            0 0 28px rgba(255, 209, 45, 0.35),
            0 0 50px rgba(255, 180, 0, 0.15);
        filter: brightness(1.12);
    }
}

/* Subtle shimmer sweep */
@keyframes shimmerText {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Progress bar fill entrance */
@keyframes progressEntrance {
    from {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Mini-logo continuous slow spin */
@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------------
   HERO SCREEN — Staggered entrance animations
------------------------------------------------------- */

/* Hero visual logo: pop in with float */
.hero-screen[data-panel="intro"]:not(.is-hidden) .hero-visual img {
    animation:
        popIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both,
        floatLogo 4s ease-in-out 0.75s infinite;
}

/* Eyebrow label */
.hero-screen[data-panel="intro"]:not(.is-hidden) .eyebrow {
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Main H1 title */
.hero-screen[data-panel="intro"]:not(.is-hidden) .hero-copy h1 {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

/* Hero body text */
.hero-screen[data-panel="intro"]:not(.is-hidden) .hero-text {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}

.hero-screen[data-panel="intro"]:not(.is-hidden) .hero-strong {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

/* Hero claim line */
.hero-screen[data-panel="intro"]:not(.is-hidden) .hero-claim {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.hero-screen[data-panel="intro"]:not(.is-hidden) .hero-claim strong {
    display: inline-block;
    background: linear-gradient(90deg,
            #c8940a 0%,
            #ffd12d 20%,
            #fff7cc 35%,
            #ffffff 50%,
            #fff7cc 65%,
            #ffd12d 80%,
            #c8940a 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        goldenShimmer 3.5s linear 1.2s infinite,
        goldenGlow 4s ease-in-out 1.2s infinite;
}

/* CTA button */
.hero-screen[data-panel="intro"]:not(.is-hidden) .hero-actions {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both;
}

/* -------------------------------------------------------
   FORM SCREEN HEADER — Entrance animations
------------------------------------------------------- */

/* Back arrow button */
.form-screen:not(.is-hidden) .icon-button {
    animation: fadeLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* Title block (eyebrow + h2) */
.form-screen:not(.is-hidden) .form-header>div {
    animation: fadeDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Mini logo — pop in then slow float */
.form-screen:not(.is-hidden) .mini-logo-wrap {
    animation: popIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}

.form-screen:not(.is-hidden) .mini-logo {
    animation: floatLogo 5s ease-in-out 0.83s infinite;
}

/* Progress bar wrapper */
.form-screen:not(.is-hidden) .progress-wrap {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

/* Step content entrance (reuses stepIn already defined) */

/* Form footer navigation */
.form-screen:not(.is-hidden) .form-actions {
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* -------------------------------------------------------
   RESULT SCREEN — Entrance animations
------------------------------------------------------- */

.result-screen:not(.is-hidden) .result-logo {
    animation: popIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both,
        glowPulse 3.5s ease-in-out 0.75s infinite;
}

.result-screen:not(.is-hidden) .eyebrow {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.result-screen:not(.is-hidden) .result-card h2 {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.result-screen:not(.is-hidden) .result-score {
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.result-screen:not(.is-hidden) .recommendation {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both;
}

.result-screen:not(.is-hidden) .final-title,
.result-screen:not(.is-hidden) .doctor-question {
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.66s both;
}

.result-screen:not(.is-hidden) .hero-actions {
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.76s both;
}

/* -------------------------------------------------------
   CAMPAIGN FOOTER — subtle entrance
------------------------------------------------------- */

@keyframes footerFadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.campaign-footer {
    animation: footerFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* Footer logo float */
.campaign-footer img:first-child {
    animation: floatLogo 4.5s ease-in-out 1s infinite;
}

/* -------------------------------------------------------
   CONTINUOUS MICRO-ANIMATIONS ON LOGOS
------------------------------------------------------- */

/* Glow pulse on the campaign logo in hero */
.hero-visual img {
    transition: filter 0.3s ease;
}

/* Mini logo in form header glows on hover */
.mini-logo-wrap:hover .mini-logo {
    filter: drop-shadow(0 0 10px rgba(153, 222, 220, 0.7));
    transition: filter 0.3s ease;
}

/* -------------------------------------------------------
   PRIMARY BUTTON — shimmer on hover
------------------------------------------------------- */

.primary-button,
.ghost-link {
    position: relative;
    overflow: hidden;
}

.primary-button::after,
.ghost-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 70%);
    background-size: 200% 100%;
    background-position: -200% center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border-radius: inherit;
}

.primary-button:hover::after,
.ghost-link:hover::after {
    opacity: 1;
    animation: shimmerText 0.6s ease forwards;
}

/* -------------------------------------------------------
   CHOICE OPTION BUTTONS — stagger entrance inside step
------------------------------------------------------- */

.choice-option:nth-child(1) {
    animation-delay: 0.05s;
}

.choice-option:nth-child(2) {
    animation-delay: 0.12s;
}

.choice-option:nth-child(3) {
    animation-delay: 0.19s;
}

.choice-option:nth-child(4) {
    animation-delay: 0.26s;
}

.step.is-active .choice-option {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* -------------------------------------------------------
   FORM FIELDS — stagger entrance on step 0
------------------------------------------------------- */

.step.is-active .field-grid label:nth-child(1) {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.step.is-active .field-grid label:nth-child(2),
.step.is-active .field-grid .name-row {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.step.is-active .field-grid label:nth-child(3) {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.step.is-active .field-grid label:nth-child(4) {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.step.is-active .terms-row {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

/* -------------------------------------------------------
   STEP IMAGES — pop in on each step
------------------------------------------------------- */

.step.is-active .step-media img {
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both,
        floatLogo 5s ease-in-out 0.65s infinite;
}

/* -------------------------------------------------------
   STEP CONTENT TEXTS
------------------------------------------------------- */

.step.is-active .step-content h3 {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.step.is-active .step-help {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* -------------------------------------------------------
   REDUCE MOTION — respect accessibility preference
------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* --- Flatpickr Calendar Custom Branded Theme --- */
.flatpickr-calendar {
    background: var(--purple-dark) !important;
    border: 2px solid var(--aqua) !important;
    box-shadow: 0 10px 30px rgba(24, 8, 58, 0.5), 0 0 15px rgba(153, 222, 220, 0.2) !important;
    border-radius: 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    color: var(--white) !important;
}

/* Arrows pointing to the input */
.flatpickr-calendar.arrowTop:before {
    border-bottom-color: var(--aqua) !important;
}

.flatpickr-calendar.arrowTop:after {
    border-bottom-color: var(--purple) !important;
}

.flatpickr-calendar.arrowBottom:before {
    border-top-color: var(--aqua) !important;
}

.flatpickr-calendar.arrowBottom:after {
    border-top-color: var(--purple-dark) !important;
}

/* Month and Year navigation bar */
.flatpickr-months {
    background: var(--purple) !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    padding: 8px 0 !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--aqua) !important;
    fill: var(--aqua) !important;
    padding: 10px !important;
    height: 34px !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--yellow) !important;
    fill: var(--yellow) !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: currentColor !important;
    width: 14px !important;
    height: 14px !important;
}

/* Month Dropdown and Year Input */
.flatpickr-current-month {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--yellow) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0 !important;
    width: 100% !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months {
    font-family: inherit !important;
    font-weight: bold !important;
    color: var(--yellow) !important;
    background: var(--purple-dark) !important;
    border: 1px solid rgba(153, 222, 220, 0.3) !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    cursor: pointer !important;
    outline: none !important;
    font-size: 0.9rem !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months:hover {
    border-color: var(--yellow) !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months option {
    background-color: var(--purple-dark) !important;
    color: var(--white) !important;
}

.flatpickr-current-month .numInputWrapper {
    width: 7ch !important;
    display: inline-block !important;
}

.flatpickr-current-month input.cur-year {
    font-family: inherit !important;
    font-weight: bold !important;
    color: var(--yellow) !important;
    background: var(--purple-dark) !important;
    border: 1px solid rgba(153, 222, 220, 0.3) !important;
    border-radius: 6px !important;
    padding: 2px 4px !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
    height: auto !important;
    outline: none !important;
}

.flatpickr-current-month input.cur-year:focus {
    border-color: var(--yellow) !important;
}

.flatpickr-current-month .numInputWrapper span {
    border: 0 !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--aqua) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: var(--aqua) !important;
}

/* Weekdays label header */
.flatpickr-weekdays {
    background: var(--purple-dark) !important;
    padding: 4px 0 !important;
}

span.flatpickr-weekday {
    color: var(--aqua) !important;
    font-weight: 700 !important;
}

/* Days container and individual days */
.flatpickr-days {
    border: 0 !important;
}

.dayContainer {
    padding: 4px !important;
}

.flatpickr-day {
    color: var(--white) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    border: 1px solid transparent !important;
    margin: 2px !important;
    max-width: 35px !important;
    height: 35px !important;
    line-height: 33px !important;
}

/* Day hover */
.flatpickr-day:hover,
.flatpickr-day:focus {
    background: var(--yellow) !important;
    border-color: var(--yellow) !important;
    color: var(--ink) !important;
    font-weight: bold !important;
}

/* Selected day */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--aqua) !important;
    border-color: var(--aqua) !important;
    color: var(--ink) !important;
    font-weight: bold !important;
}

/* Today highlight */
.flatpickr-day.today {
    border-color: var(--red) !important;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    border-color: var(--yellow) !important;
    background: var(--yellow) !important;
    color: var(--ink) !important;
}

/* Days in adjacent months (prev/next month) */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.25) !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

/* Disabled days */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
}

@media (max-width: 600px) {
    .step.is-active:not([data-step="0"]):not(.result-step) .step-content h3 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .step-content h3.text-medium {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .step-content h3.text-long {
        font-size: clamp(1.0rem, 4.2vw, 1.25rem);
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .choice-option span {
        font-size: clamp(1.05rem, 5vw, 1.4rem);
        min-height: 48px;
        padding: 8px 16px;
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .choice-option span.text-medium {
        font-size: clamp(0.95rem, 4.2vw, 1.2rem);
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .choice-option span.text-long {
        font-size: clamp(0.85rem, 3.8vw, 1.05rem);
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .step-help {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .unit-input {
        min-height: 48px;
    }
    .step.is-active:not([data-step="0"]):not(.result-step) .unit-input input {
        min-height: 48px;
    }
}