/* Multi-Step Form Styles */

/* Progress Indicator */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #9b0013, #e74c3c);
    color: white;
    border-color: #9b0013;
    box-shadow: 0 4px 15px rgba(155, 0, 19, 0.3);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.progress-step.completed .step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.progress-step.completed .step-circle {
    font-size: 0;
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: #9b0013;
    font-weight: 700;
}

.progress-step.completed .step-label {
    color: #28a745;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    position: relative;
    margin: 0 -10px;
    top: -15px;
}

.progress-line.completed {
    background: #28a745;
}

/* Form Steps */
.multi-step-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
}

.form-navigation .btn {
    min-width: 150px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-navigation .btn-secondary {
    background: #6c757d;
    border: none;
}

.form-navigation .btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.form-navigation .btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-navigation .btn-danger {
    background: linear-gradient(135deg, #9b0013, #e74c3c);
    border: none;
    box-shadow: 0 4px 15px rgba(155, 0, 19, 0.3);
}

.form-navigation .btn-danger:hover {
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 0, 19, 0.4);
}

/* Step Summary (Optional) */
.step-summary {
    background: rgba(155, 0, 19, 0.05);
    border: 2px solid rgba(155, 0, 19, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.step-summary h6 {
    color: #9b0013;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-summary p {
    margin: 0.5rem 0;
    color: #2c3e50;
}

/* Validation States */
.form-step .is-invalid,
.form-step select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-step .invalid-feedback {
    display: block !important;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Ensure error messages don't cascade */
.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
}

/* Fix for input groups */
.input-group + .invalid-feedback {
    display: block !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .progress-container {
        padding: 1.5rem 0;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
    
    .progress-line {
        margin: 0 -5px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .progress-container {
        overflow-x: auto;
        padding: 1rem 0;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.65rem;
        max-width: 60px;
    }
    
    .progress-line {
        min-width: 30px;
    }
}
