@font-face {
    font-family: 'Saans';
    src: url('./Fonts/SaansUprightsVF.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f4f4f5;
    --bg-elevated: #fefefe;
    --bg-dark: #01259F;
    --text: #01259F;
    --text-inverse: #f4f4f5;
    --text-secondary: var(--text);
    --text-muted: var(--text);
    --border: rgba(1, 37, 159, 0.12);
    --border-subtle: rgba(1, 37, 159, 0.08);
    --surface-soft: #b3c4fc;
    --surface-white: #fefefe;
    --surface-gray: #f4f4f5;
    --max-width: 600px;
    --error: #dc2626;
}

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

html {
    min-height: 100%;
}

body {
    font-family: 'Saans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 450;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(244, 244, 245, 0.78);
    backdrop-filter: blur(22px) saturate(1.2);
}

.logo {
    height: 20px;
    color: var(--text);
    text-decoration: none;
}

.logo:visited,
.logo:active,
.logo:hover {
    color: var(--text);
}

.logo svg {
    height: 100%;
    width: auto;
}

.header-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: right;
}

/* Main Container */
.form-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px;
    flex: 1;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 48px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--bg-dark);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Step Indicator */
.step-indicator {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Step Content */
.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

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

.step h2 {
    font-family: 'Saans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step-description {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Form Elements */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 450;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--bg-dark);
    box-shadow: 0 0 0 3px rgba(1, 37, 159, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: none;
    min-height: 140px;
}

.helper-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.optional-tag {
    font-weight: 400;
    color: var(--text-muted);
}

/* Option Buttons */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 15px;
    font-weight: 450;
    color: var(--text);
    min-height: 56px;
}

.option-btn:hover {
    border-color: var(--text);
}

.option-btn.selected {
    border-color: var(--text);
    background: var(--surface-soft);
    color: var(--text);
}

.option-btn .option-sub {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.option-btn.selected .option-sub {
    color: var(--text-muted);
}

/* Section Divider */
.section-divider {
    margin: 32px 0;
}

.section-divider:first-child {
    margin-top: 0;
}

.section-label {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* GDPR Checkbox */
.gdpr-container {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--bg-elevated);
    margin-top: 2px;
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: var(--text);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
}

.checkbox-custom svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom svg {
    opacity: 1;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-label a:hover {
    color: var(--text-muted);
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 450;
    cursor: pointer;
    padding: 12px 0;
    transition: color 0.2s ease;
    min-height: 48px;
}

.btn-back:hover {
    color: var(--text);
}

.btn-continue,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 16px 32px;
    border-radius: 100px;
    border: none;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
}

.btn-continue:hover,
.btn-submit:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-continue:disabled,
.btn-submit:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--error);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 20px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Success Screen */
.success-screen {
    display: none;
    text-align: center;
    padding: 80px 24px;
}

.success-screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-screen h1 {
    font-family: 'Saans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 16px;
}

.success-screen .lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.success-screen .note {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg);
    color: var(--text);
    padding: 40px 32px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-logo {
    height: 18px;
    margin-bottom: 16px;
}

.footer-logo svg {
    height: 100%;
    width: auto;
    fill: var(--text);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 20px 24px;
        gap: 16px;
    }

    .header-subtitle {
        max-width: 150px;
        font-size: 12px;
        line-height: 1.2;
    }

    .form-container {
        padding: 48px 20px;
    }

    .step h2 {
        font-size: 28px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .btn-continue,
    .btn-submit {
        padding: 14px 24px;
        font-size: 14px;
    }

    .checkbox-wrapper {
        gap: 12px;
    }

    .checkbox-custom {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    footer {
        padding: 32px 24px;
    }

    .footer-links {
        gap: 16px;
    }
}
