:root {
    --navy: #0B1F33;
    --sea: #145C72;
    --blue: #38A7C7;
    --sand: #E8D6B8;
    --bg: #F5F8FA;
    --white: #FFFFFF;
    --muted: #617286;
    --line: rgba(11, 31, 51, 0.12);
    --shadow: 0 28px 80px rgba(11, 31, 51, 0.14);
    --radius: 30px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', Arial, sans-serif;
    color: var(--navy);
    background:
        radial-gradient(circle at 15% 15%, rgba(56, 167, 199, 0.2), transparent 32%),
        radial-gradient(circle at 90% 15%, rgba(232, 214, 184, 0.45), transparent 28%),
        linear-gradient(135deg, #eef7fb 0%, #f7fafb 42%, #f1f5f8 100%);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.noscript {
    padding: 16px;
    text-align: center;
    background: #ffe7e7;
    color: #721c24;
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.quiz-card {
    width: min(1120px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.quiz-content {
    padding: 42px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-line {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.brand-pill,
.place-pill,
.badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-pill {
    padding: 9px 14px;
    color: var(--white);
    background: var(--navy);
}

.place-pill {
    padding: 9px 14px;
    color: var(--sea);
    background: rgba(56, 167, 199, 0.12);
}

.progress-wrap {
    margin-bottom: 30px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.back-button {
    border: 0;
    background: transparent;
    color: var(--sea);
    font-weight: 800;
    padding: 8px 0;
}

.back-button[hidden] {
    display: none;
}

.progress-bar {
    height: 9px;
    background: rgba(11, 31, 51, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    width: 10%;
    height: 100%;
    background: linear-gradient(90deg, var(--sea), var(--blue));
    border-radius: inherit;
    transition: width 260ms ease;
}

.screen {
    flex: 1;
    display: flex;
    align-items: center;
}

.intro-screen,
.question-screen,
.lead-form,
.success-screen {
    width: 100%;
}

.fade-in {
    animation: fadeIn 240ms ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    padding: 9px 13px;
    margin-bottom: 18px;
    color: var(--sea);
    background: rgba(20, 92, 114, 0.1);
    font-size: 13px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--blue);
    text-transform: uppercase;
    font-size: 12px;
}

h1,
h2 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

h1 {
    max-width: 620px;
    font-size: clamp(34px, 4.6vw, 58px);
}

h2 {
    max-width: 610px;
    font-size: clamp(30px, 4vw, 48px);
}

p {
    margin: 18px 0 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin-top: 30px;
    padding: 0 28px;
    border: 0;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sea), var(--blue));
    box-shadow: 0 16px 36px rgba(20, 92, 114, 0.24);
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(20, 92, 114, 0.3);
}

.primary-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.full-width {
    width: 100%;
}

.mini-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.mini-benefits span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
}

.answers-grid {
    display: grid;
    gap: 13px;
    margin-top: 30px;
}

.answer-button {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy);
    text-align: left;
    font-weight: 900;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.answer-button svg {
    width: 22px;
    min-width: 22px;
    fill: var(--blue);
}

.answer-button:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 167, 199, 0.55);
    background: var(--white);
    box-shadow: 0 14px 34px rgba(11, 31, 51, 0.09);
}

.fields-grid {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--navy);
    font-weight: 800;
    font-size: 14px;
}

.field input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: none;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.78);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
    border-color: rgba(56, 167, 199, 0.8);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(56, 167, 199, 0.14);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff0f0;
    color: #9b1c1c;
    font-weight: 800;
}

.lead-form small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sea), var(--blue));
    font-size: 38px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(20, 92, 114, 0.24);
}

.success-note {
    width: fit-content;
    max-width: 560px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--sea);
    background: rgba(56, 167, 199, 0.12);
    font-weight: 800;
}

.quiz-visual {
    position: relative;
    min-height: 680px;
    background: var(--navy);
    overflow: hidden;
}

.quiz-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 51, 0.06), rgba(11, 31, 51, 0.45));
    pointer-events: none;
}

.quiz-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 180ms ease;
}

.visual-caption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    color: var(--white);
    background: rgba(11, 31, 51, 0.44);
    backdrop-filter: blur(12px);
}

.visual-caption strong {
    font-size: 18px;
}

.visual-caption span {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

@media (max-width: 920px) {
    .page-shell {
        padding: 0;
        display: block;
    }

    .quiz-card {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .quiz-visual {
        order: -1;
        min-height: 260px;
        max-height: 320px;
    }

    .quiz-content {
        padding: 26px 18px 34px;
    }

    .top-line {
        margin-bottom: 18px;
    }

    .screen {
        align-items: flex-start;
    }

    .visual-caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 14px;
        border-radius: 18px;
    }

    p {
        font-size: 16px;
    }

    .answer-button,
    .field input,
    .primary-button {
        min-height: 56px;
    }
}

@media (max-width: 520px) {
    .brand-pill,
    .place-pill {
        padding: 8px 11px;
        font-size: 12px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 30px;
    }

    .answers-grid {
        gap: 10px;
    }

    .answer-button {
        padding: 16px;
        border-radius: 18px;
    }

    .mini-benefits span {
        font-size: 12px;
    }
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 16px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.privacy-check input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--sea);
}

.privacy-check a {
    color: var(--sea);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 92, 114, 0.28);
}

.privacy-check a:hover {
    border-bottom-color: currentColor;
}
