nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.nav-back {
    color: #a0a0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-back:hover {
    color: #6c63ff;
}

/* PROGRESS BAR */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: #1e1e3a;
}

.progress-bar {
    height: 4px;
    background-color: #6c63ff;
    width: 25%;
    transition: width 0.4s ease;
}

.step-label {
    text-align: center;
    color: #a0a0b0;
    font-size: 13px;
    padding: 10px;
}

/* FORM CONTAINER */
.form-container {
    max-width: 800px;
    margin: 20px auto 60px;
    padding: 0 20px;
}

/* STEP SECTIONS */
.step-section {
    display: none;
}

.step-section.active {
    display: block;
}

.step-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    color: #a0a0b0;
    font-size: 15px;
    margin-bottom: 30px;
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #a0a0b0;
    font-weight: 500;
}

.form-group input,
.form-group select {
    background-color: #1a1a35;
    border: 1px solid #2a2a50;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #6c63ff;
}

.form-group select option {
    background-color: #1a1a35;
}

.form-group input.error,
.form-group select.error {
    border-color: #ff4f4f;
}

/* BUTTONS */
.btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.next-btn,
.predict-btn {
    background-color: #6c63ff;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: auto;
    display: block;
}

.next-btn:hover,
.predict-btn:hover {
    background-color: #5548e0;
    transform: translateY(-2px);
}

.back-btn {
    background-color: transparent;
    color: #a0a0b0;
    border: 1px solid #2a2a50;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

/* LOADING */
.loading-section {
    display: none;
    text-align: center;
    padding: 80px 20px;
}

.loading-section p {
    color: #a0a0b0;
    margin-top: 20px;
    font-size: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #1e1e3a;
    border-top: 4px solid #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}