:root {
    --primary: #c9a55c;
    /* Premium Gold */
    --primary-dark: #a6894a;
    --secondary: #1a1a1a;
    /* Dark Background */
    --accent: #f8f1e5;
    /* Light Beige */
    --text: #ffffff;
    --text-muted: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--secondary);
    background-image: radial-gradient(circle at top right, #2a2215, transparent),
        radial-gradient(circle at bottom left, #1a1a1a, transparent);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Start from top for better mobile scrolling */
    overflow-x: hidden;
    overflow-y: auto;
    /* Only one scrollbar */
}

header {
    width: 100%;
    padding: 1.5rem 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.header-subtitle {
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 2px;
    opacity: 0.8;
}

.onboarding-container {
    width: 90%;
    max-width: 600px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    /* Slightly tighter on mobile */
    margin-top: 8rem;
    /* Enough room for header */
    margin-bottom: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
    flex-shrink: 0;
    /* Don't squash when keyboard opens */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(201, 165, 92, 0.1);
}

.btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    margin-top: 0.5rem;
}

.footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Checkbox and Radios */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    color: var(--text-muted);
    font-weight: 400;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .header-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .onboarding-container {
        padding: 1.5rem;
        margin-top: 6rem;
        margin-bottom: 2rem;
        width: 94%;
        border-radius: 16px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        /* Prevent iPhone auto-zoom */
    }
}