*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand-900: #18233d;
    --brand-800: #163d6c;
    --brand-700: #0e5297;
    --brand-600: #0178ef;
    --brand-500: #1d87f2;
    --brand-400: #5aacff;
    --brand-300: #90caf9;
    --brand-200: #bbdefb;
    --brand-100: #e3f2fd;
    --brand-50: #f3faff;
    --neutral-900: #18233d;
    --neutral-700: #2d3644;
    --neutral-500: #5a6578;
    --neutral-300: #a8b0be;
    --neutral-200: #cdd3dc;
    --neutral-100: #e8ecf0;
    --neutral-50: #f3faff;
    --white: #ffffff;
    --amber: #e67e22;
    --red-soft: #fdf0ec;
    --red-text: #a93226;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card:
        0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-hover:
        0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

html {
    font-size: 16px;
}
body {
    font-family: "Open Sans", sans-serif;
    background: linear-gradient(
        165deg,
        #ffffff 0%,
        #f0f7ff 40%,
        #e8f2ff 70%,
        #f5f9ff 100%
    );
    background-attachment: fixed;
    color: var(--neutral-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(187, 222, 251, 0.4);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 32px;
    width: auto;
}
.header-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
    background: #0178ef;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(1, 120, 239, 0.25);
}
.header-cta:hover {
    background: #0e5297;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 120, 239, 0.35);
}

/* Progress stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.25rem 2rem 1.25rem;
    width: 100%;
    max-width: 760px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin-top: 1rem;
}
.step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neutral-300);
    white-space: nowrap;
    transition: color 0.3s;
}
.step-label {
    display: none;
}
@media (min-width: 900px) {
    .step-label {
        display: inline;
    }
    .stepper {
        max-width: 1060px;
    }
}
.step.active {
    color: var(--neutral-900);
}
.step.done {
    color: var(--brand-600);
}
.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--white);
    transition: all 0.3s;
    flex-shrink: 0;
}
.step.active .step-circle {
    background: #0178ef;
    border-color: #0178ef;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(1, 120, 239, 0.3);
}
.step.done .step-circle {
    background: #0178ef;
    border-color: #0178ef;
    color: var(--white);
}
.step-check {
    display: none;
}
.step.done .step-num {
    display: none;
}
.step.done .step-check {
    display: inline;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--neutral-200);
    margin: 0 6px;
    border-radius: 2px;
    transition: background 0.4s;
    min-width: 16px;
}
.step-line.done {
    background: #0178ef;
}

/* Main content area */
.main {
    width: 100%;
    max-width: 840px;
    padding: 3rem 2rem 4rem;
    margin-top: 0.5rem;
}

/* Breadcrumb tag */
.breadcrumb-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-100);
    color: var(--brand-800);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.breadcrumb-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-500);
}

/* Question heading */
.question-head {
    margin-bottom: 0.75rem;
}
.question-head h1 {
    font-family: "Zilla Slab", serif;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--neutral-900);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.question-head p {
    font-size: 0.88rem;
    color: var(--neutral-500);
    line-height: 1.65;
    max-width: 540px;
}

/* Options list */
.options {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.options.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.options.grid .option {
    padding: 0.85rem 0.9rem;
    gap: 10px;
}
.options.grid .option-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 10px;
    flex-shrink: 0;
}
.options.grid .option-text {
    min-width: 0;
}
.options.grid .option-text strong {
    font-size: 0.85rem;
}
.options.grid .option-text span {
    font-size: 0.76rem;
}
.options.grid .option-check {
    width: 20px;
    height: 20px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.1rem 1.3rem;
    background: #ffffff;
    border: 1.5px solid #e8eff8;
    border-radius: var(--radius);
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.18s;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}
.option::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-50);
    opacity: 0;
    transition: opacity 0.18s;
}
.option:hover {
    border-color: var(--brand-300);
    box-shadow:
        0 6px 20px rgba(1, 120, 239, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}
.option:hover::before {
    opacity: 1;
}
.option.selected {
    border-color: #0178ef;
    box-shadow:
        0 0 0 3px rgba(1, 120, 239, 0.1),
        0 4px 12px rgba(1, 120, 239, 0.08);
}
.option.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, #f3faff, #e3f2fd);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ebf4ff, #e3f2fd);
    border: 1px solid rgba(187, 222, 251, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0178ef;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition:
        background 0.18s,
        color 0.18s,
        border-color 0.18s;
}
.option-icon svg {
    width: 20px;
    height: 20px;
}
.option:hover .option-icon,
.option.selected .option-icon {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    border-color: var(--brand-300);
    color: #0e5297;
}
.option-text {
    flex: 1;
    position: relative;
    z-index: 1;
}
.option-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 2px;
}
.option-text span {
    font-size: 0.82rem;
    color: var(--neutral-500);
    line-height: 1.4;
}
.option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.18s;
}
.option.selected .option-check {
    background: #0178ef;
    border-color: #0178ef;
    box-shadow: 0 2px 6px rgba(1, 120, 239, 0.3);
}
.option-check svg {
    display: none;
}
.option.selected .option-check svg {
    display: block;
}

/* Multi-select checkbox (square) */
#screen6 .option-check {
    border-radius: 4px;
}

/* Multi-select hint */
.multi-hint {
    font-size: 0.78rem;
    color: var(--neutral-500);
    margin-top: 0.5rem;
    margin-bottom: -0.25rem;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
}
.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--neutral-500);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.15s;
}
.btn-back:hover {
    color: var(--neutral-900);
}
.btn-back:disabled {
    opacity: 0;
    pointer-events: none;
}

.btn-continue {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: #0178ef;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.15s,
        opacity 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(1, 120, 239, 0.3);
}
.btn-continue:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-continue:not(:disabled):hover {
    background: #0e5297;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 120, 239, 0.35);
}

/* HubSpot form */
/* Contact form */
.contact-form {
    margin-top: 2rem;
    background: #ffffff;
    border: 1.5px solid #e8eff8;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-row .form-group {
    margin-bottom: 0;
}
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
}
.contact-form label .req {
    color: #e74c3c;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: "Open Sans", sans-serif;
    transition: border-color 0.2s;
    background: var(--white);
}
.contact-form input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(1, 120, 239, 0.08);
}
.form-consent {
    margin: 1rem 0 1.25rem;
    font-size: 0.82rem;
    color: var(--neutral-500);
}
.form-consent input[type="checkbox"] {
    margin-right: 6px;
}
.form-error {
    font-size: 0.82rem;
    color: #e74c3c;
    margin-bottom: 0.75rem;
    display: none;
}
.form-error.visible {
    display: block;
}
.email-hint {
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 4px;
}
.contact-form input.input-error {
    border-color: #e74c3c;
}
.contact-form input.input-error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.contact-form .btn-continue {
    width: 100%;
    justify-content: center;
}
.contact-form .btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Screen transitions */
.screen {
    display: none;
    animation: fadeUp 0.35s ease both;
}
.screen.active {
    display: block;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result card */
/* Result cards */
.result-card {
    border-radius: 20px;
    padding: 2rem 2rem;
    margin-bottom: 1.25rem;
    border: 1.5px solid;
    position: relative;
    overflow: hidden;
}
.result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.result-card.required {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    border-color: var(--brand-200);
}
.result-card.required::before {
    background: linear-gradient(90deg, #0178ef, #5aacff);
}
.result-card.not-required {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    border-color: var(--brand-200);
}
.result-card.not-required::before {
    background: linear-gradient(90deg, #0178ef, #5aacff);
}
.result-card.unclear {
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
    border-color: #fde68a;
}
.result-card.unclear::before {
    background: linear-gradient(90deg, #e67e22, #f59e0b);
}
.result-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.result-icon-wrap svg {
    width: 24px;
    height: 24px;
}
.result-card.not-required .result-icon-wrap {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0e5297;
}
.result-card.unclear .result-icon-wrap {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #e67e22;
}
.result-card.required .result-icon-wrap {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0178ef;
}
.result-title {
    font-family: "Zilla Slab", serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--neutral-900);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.result-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.result-card.required .result-subtitle {
    color: #0178ef;
}
.result-card.not-required .result-subtitle {
    color: var(--brand-600);
}
.result-card.unclear .result-subtitle {
    color: #e67e22;
}
.result-body {
    font-size: 0.88rem;
    color: var(--neutral-500);
    line-height: 1.75;
}

/* Info cards (sector, timeline) */
.timeline-card {
    background: #ffffff;
    border: 1.5px solid #e8eff8;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.timeline-card h3 {
    font-family: "Zilla Slab", serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.timeline-card h3 svg {
    color: #0178ef;
}
.timeline-card p {
    font-size: 0.86rem;
    color: var(--neutral-500);
    line-height: 1.7;
}
.timeline-card strong {
    color: var(--neutral-700);
}

/* Readiness card */
.readiness-card {
    background: #ffffff;
    border: 1.5px solid #e8eff8;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.readiness-card h3 {
    font-family: "Zilla Slab", serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--neutral-900);
    margin-bottom: 1.25rem;
}
.score-bar-wrap {
    margin-bottom: 0.5rem;
}
.score-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--neutral-500);
    margin-bottom: 6px;
}
.score-label span:last-child {
    font-weight: 700;
    color: #0178ef;
}
.score-bar {
    height: 10px;
    background: #f0f4f8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.score-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #5aacff, #0178ef);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Gap indicators */
.gap-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.75rem;
}
.gap-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.86rem;
    color: var(--neutral-700);
    line-height: 1.55;
    padding: 10px 14px;
    background: #f8fafb;
    border-radius: 10px;
    border-left: 3px solid transparent;
}
.gap-item:has(.gap-dot.green) {
    border-left-color: #0178ef;
    background: #f5f9ff;
}
.gap-item:has(.gap-dot.amber) {
    border-left-color: #f59e0b;
    background: #fffdf5;
}
.gap-item:has(.gap-dot.red) {
    border-left-color: #ef4444;
    background: #fef7f5;
}
.gap-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}
.gap-dot.red {
    background: #ef4444;
}
.gap-dot.amber {
    background: #f59e0b;
}
.gap-dot.green {
    background: #0178ef;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #0e5297 0%, #163d6c 50%, #18233d 100%);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 30px rgba(14, 82, 151, 0.25);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(
        circle,
        rgba(1, 120, 239, 0.2),
        transparent 70%
    );
    border-radius: 50%;
}
.cta-section h3 {
    font-family: "Zilla Slab", serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
}
.cta-section p {
    font-size: 0.86rem;
    color: var(--brand-200);
    line-height: 1.65;
    margin-top: -0.5rem;
    position: relative;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    color: #0e5297;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    position: relative;
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.15s,
        box-shadow 0.2s;
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(1, 120, 239, 0.3);
}
.cta-btn:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* Footer */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
    color: var(--neutral-300);
    margin-top: auto;
}

/* Source citation */
.source-note {
    font-size: 0.72rem;
    color: var(--neutral-300);
    margin-top: 0.75rem;
}

/* Progress bar top */
.progress-track {
    width: 100%;
    max-width: 760px;
    height: 3px;
    background: var(--neutral-100);
    position: relative;
    margin: 0 auto;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5aacff, #0178ef);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Responsive */
@media (max-width: 640px) {
    .stepper {
        padding: 1rem 1rem 0;
        gap: 0;
    }
    .step {
        font-size: 0;
        gap: 0;
    }
    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    .step-line {
        min-width: 12px;
        margin: 0 4px;
    }
    .main {
        padding: 1.5rem 1rem 3rem;
    }
    .options.grid {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 0 1rem;
    }
}
