:root {
    --primary: #5e17eb;
    --accent: #8b5cf6;
    --text: #222;
    --text-light: #555;
    --gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fc 0%, #f3e8ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====================== HEADER ====================== */
.header {
    padding: 28px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-family: 'Playfair Display', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1.5px;
}

.step-info {
    font-size: 1.15rem;
    color: #666;
    font-weight: 500;
}

/* ====================== PROGRESS ====================== */
.progress-container {
    height: 6px;
    background: #e5e5e5;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 20%;
    transition: width 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================== MAIN ====================== */
.main {
    flex: 1;
    padding: 60px 6% 100px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

/* ====================== STEPS ====================== */
h1 {
    font-size: 2.85rem;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.1;
    color: var(--text);
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.32rem;
    margin-bottom: 65px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Input */
.input-field {
    width: 100%;
    padding: 26px 32px;
    font-size: 1.32rem;
    border: 2px solid var(--gray);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(94, 23, 235, 0.1);
    outline: none;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 22px;
}

.option-card {
    padding: 34px 26px;
    border: 2px solid var(--gray);
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-size: 1.18rem;
    line-height: 1.4;
    font-weight: 500;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(94, 23, 235, 0.12);
}

.option-card.selected {
    border-color: var(--primary);
    background: #f8f4ff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* ====================== NAVIGATION ====================== */
.navigation {
    margin-top: auto;
    padding-top: 70px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 18px 56px;
    font-size: 1.18rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-back {
    background: transparent;
    border: 2px solid #ccc;
    color: #555;
}

.btn-back:hover {
    border-color: #999;
    color: #333;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #4c0fd4;
    transform: translateY(-2px);
}

/* ====================== TOAST ====================== */
.custom-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 36px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    max-width: 420px;
    text-align: center;
    animation: toastPop 0.4s ease;
}

.custom-toast.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.custom-toast.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

@keyframes toastPop {
    from {
        opacity: 0;
        transform: translate(-50%, -40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.35rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .main {
        padding: 40px 5% 80px;
    }
    
    .btn {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}