/* Multi-step Form Styles */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.step.active .step-number {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.step.completed .step-number {
    background-color: #22c55e;
    color: white;
    border-color: #22c55e;
}

.step.completed .step-number::before {
    content: "✓";
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #e91e63;
    font-weight: 600;
}

.step.completed .step-label {
    color: #22c55e;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 1rem;
    margin-top: -1.5rem;
    max-width: 150px;
}

.step.active ~ .step-line,
.step.completed ~ .step-line {
    background-color: #22c55e;
}

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

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

/* Show first step by default - this ensures step 1 is always visible initially */
#step-1 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#step-1.active {
    display: block !important;
}

/* Hide step 2 by default */
#step-2 {
    display: none !important;
}

#step-2.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure active steps are always visible */
.form-step.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* If no step indicator exists (edit form), show all steps */
.no-multistep .form-step {
    display: block !important;
}

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

/* Button Styles */
.btn-next-step,
.btn-prev-step {
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
    }
    
    .step-line {
        width: 2px;
        height: 40px;
        margin: 0.5rem 0;
        margin-left: 19px;
    }
    
    .step {
        max-width: 100%;
        width: 100%;
    }
}

