:root {
    color-scheme: light;
    --bg: #eef3f8;
    --card: #ffffff;
    --ink: #13202f;
    --muted: #66758a;
    --primary: #155eef;
    --primary-dark: #0f46b7;
    --border: #dbe3ee;
    --danger: #b42318;
    --success: #057647;
    --shadow: 0 24px 70px rgba(22, 34, 51, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(21, 94, 239, 0.16), transparent 34rem),
        linear-gradient(135deg, #f7fbff 0%, var(--bg) 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.page-shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.hero {
    margin-bottom: 28px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.brand-header img {
    display: block;
    width: 76px;
    height: 80px;
    object-fit: contain;
}

.brand-name {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
}

.brand-name span {
    color: #73c7e0;
}

.brand-name strong {
    color: #529abe;
}

.brand-contact {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 0.98rem;
}

.hero h1,
.card h2 {
    margin: 0;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 8vw, 4.8rem);
}

.hero p:last-child {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card,
.progress-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.card {
    padding: clamp(24px, 4vw, 40px);
}

.progress-card {
    margin-bottom: 18px;
    padding: 18px 22px;
}

.progress-meta,
.section-heading,
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.progress-meta {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #d9e5f5;
}

.progress-track div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #36bffa);
    transition: width 180ms ease;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    max-width: 680px;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.step-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--primary-dark);
    padding: 8px 14px;
    font-weight: 800;
}

.question {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

.conditional-question {
    overflow: hidden;
    border: 1px solid rgba(21, 94, 239, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(21, 94, 239, 0.08), rgba(54, 191, 250, 0.06)),
        #ffffff;
    box-shadow: 0 18px 44px rgba(21, 94, 239, 0.12);
    margin-top: -8px;
    max-height: 420px;
    opacity: 1;
    padding: 20px;
    transform: translateY(0);
    transition:
        max-height 280ms ease,
        opacity 220ms ease,
        padding 280ms ease,
        margin 280ms ease,
        transform 280ms ease;
}

.conditional-question.conditional-hidden {
    border-width: 0;
    box-shadow: none;
    margin-bottom: 0;
    margin-top: -26px;
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.question legend {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 800;
}

.required,
.error-message {
    color: var(--danger);
}

input[type="text"],
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfdff;
    color: var(--ink);
    font: inherit;
    padding: 14px 16px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
    resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfdff;
    padding: 13px 14px;
    cursor: pointer;
}

.option input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.other-detail {
    overflow: hidden;
    border: 1px solid rgba(82, 154, 190, 0.26);
    border-radius: 18px;
    background: rgba(234, 247, 252, 0.78);
    margin-top: 12px;
    max-height: 180px;
    opacity: 1;
    padding: 14px;
    transform: translateY(0);
    transition:
        max-height 260ms ease,
        opacity 220ms ease,
        padding 260ms ease,
        margin 260ms ease,
        transform 260ms ease;
}

.other-detail label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.other-detail.is-hidden {
    border-width: 0;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.has-error input[type="text"],
.has-error textarea,
.has-error .option {
    border-color: rgba(180, 35, 24, 0.6);
}

.error-message {
    margin: 8px 0 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.actions {
    margin-top: 32px;
    justify-content: flex-end;
}

button {
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 13px 22px;
    transition: background 140ms ease, transform 140ms ease;
}

button:hover,
.button-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

button.secondary {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--ink);
}

button.secondary:hover {
    background: #f6f8fb;
}

.button-link {
    display: inline-block;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    padding: 13px 22px;
    text-decoration: none;
    transition: background 140ms ease, transform 140ms ease;
}

.review-list {
    display: grid;
    gap: 14px;
}

.review-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fbfdff;
    padding: 18px;
}

.review-item h3,
.review-item p {
    margin: 0;
}

.review-item h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.review-section,
.muted {
    color: var(--muted);
}

.review-section {
    margin-bottom: 6px !important;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.success-card {
    border-color: rgba(5, 118, 71, 0.2);
}

.success-card .eyebrow {
    color: var(--success);
}

.notice {
    border-radius: 16px;
    font-weight: 700;
    padding: 12px 14px;
}

.notice.success {
    background: rgba(5, 118, 71, 0.1);
    color: var(--success);
}

.notice.warning {
    background: rgba(180, 35, 24, 0.08);
    color: var(--danger);
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 22px, 960px);
        padding: 28px 0;
    }

    .section-heading,
    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-header {
        align-items: flex-start;
        gap: 14px;
    }

    .brand-header img {
        width: 58px;
        height: 61px;
    }

    .brand-contact {
        font-size: 0.9rem;
    }

    .actions button {
        width: 100%;
    }
}
