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

/* ═══ STEP PROGRESS ═══ */
#progress-bar {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#progress-bar.visible {
    opacity: 1;
}

/* track line behind dots */
#progress-fill {
    display: none;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-warm);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--accent-warm);
    transition: background 0.35s ease, color 0.35s ease;
    flex-shrink: 0;
}

.step-dot.done {
    background: var(--accent-warm);
    color: #fff;
}

.step-dot.active {
    background: var(--accent-warm);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(122, 102, 86, 0.15);
}

.step-line {
    width: 32px;
    height: 1.5px;
    background: var(--accent-warm);
    opacity: 0.25;
    transition: opacity 0.35s ease;
    flex-shrink: 0;
}

.step-line.done {
    opacity: 1;
}

#step-indicator {
    display: none;
}

:root {
    --bg: #C5BBAF;
    --bg2: #F2EBD9;
    --text: #0d0a07;
    --muted: #5c4f47;
    --accent-warm: #7A6656;
    --accent-warm-hover: #665445;
    --line: rgba(50, 40, 30, 0.15);
    --error: #d32f2f;
    --transition-fast: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    --transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Work Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

#form-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ═══ SCREENS ═══ */
.screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

/* ═══ INTRO SCREEN ═══ */
.intro-content {
    text-align: center;
    max-width: 600px;
}

.intro-logo {
    width: 180px;
    height: auto;
    margin-bottom: 40px;
    animation: fadeUp 0.8s var(--transition-fast) both;
}

.intro-tagline {
    font-size: 24px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 20px;
    animation: fadeUp 0.8s var(--transition-fast) both;
}

.intro-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeUp 0.8s var(--transition-fast) both;
}

/* ═══ QUESTION SCREENS ═══ */
.question-content {
    width: 100%;
    max-width: 500px;
    animation: slideUpFade 0.35s var(--transition-fast);
}

.question-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 50px;
    line-height: 1.3;
    text-align: center;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

input[type="text"],
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.5;
}

input[type="text"]:focus,
textarea:focus {
    border-bottom-color: var(--accent-warm);
    border-bottom-width: 2px;
    padding-bottom: 13px;
    box-shadow: 0 2px 0 var(--accent-warm);
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.char-count {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    margin-top: 8px;
}

.error-message {
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
    min-height: 18px;
    animation: slideDown 0.3s ease;
}

/* ═══ REVIEW SCREEN ═══ */
.review-box {
    background: var(--bg2);
    border: 1px solid var(--line);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 2px;
}

.review-item {
    margin-bottom: 30px;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.review-value {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
}

/* ═══ SUCCESS SCREEN ═══ */
.success-content {
    text-align: center;
    max-width: 600px;
}

.success-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 16px;
    animation: fadeUp 0.8s var(--transition-fast) both;
}

.success-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 60px;
    animation: fadeUp 0.8s var(--transition-fast) both;
}

.success-logo {
    width: 200px;
    height: 200px;
    opacity: 0.4;
    margin-bottom: 40px;
    animation: fadeUp 0.8s var(--transition-fast) both;
}

/* ═══ LOADING SCREEN ═══ */
.loading-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 2px solid var(--line);
    border-top: 2px solid var(--accent-warm);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* ═══ ERROR SCREEN ═══ */
.error-content {
    text-align: center;
    max-width: 500px;
}

.error-content h1 {
    font-size: 36px;
    color: var(--error);
    margin-bottom: 16px;
}

.error-content p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 30px;
}

/* ═══ NAVIGATION ═══ */
.navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

button {
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary {
    background: var(--accent-warm);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-warm-hover);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-back,
.btn-next {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    min-width: 140px;
}

.btn-back:hover,
.btn-next:hover {
    color: var(--text);
    border-color: var(--muted);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-warm);
    border: 1px solid var(--accent-warm);
}

.btn-secondary:hover {
    background: var(--accent-warm);
    color: white;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .question-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .intro-logo {
        width: 120px;
    }

    .intro-tagline {
        font-size: 18px;
    }

    .intro-subtitle {
        font-size: 14px;
    }

    input[type="text"],
    textarea {
        font-size: 16px;
    }

    .success-title {
        font-size: 32px;
    }

    .success-subtitle {
        font-size: 18px;
    }

    .review-box {
        padding: 20px;
    }

    .navigation {
        flex-direction: column;
    }

    .btn-back,
    .btn-next {
        width: 100%;
    }
}
