/* Multi-step Form Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.step.active .step-circle {
    background: #28a745;
    color: white;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.step.completed .step-circle {
    background: #28a745;
    color: white;
}

.step.completed .step-circle::before {
    content: '✓';
    font-size: 18px;
}

.step-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-label {
    color: #28a745;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

/* Form Step Content */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Navigation Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-prev, .btn-next {
    flex: 1;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-next {
    background: #28a745;
    color: white;
}

.btn-next:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-prev:disabled, .btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Hide default submit button */
.form-group button[type="submit"] {
    display: none;
}

.form-step:last-child .form-group button[type="submit"] {
    display: block;
    width: 100%;
}

/* Step Title */
.step-title {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.2s ease;
    user-select: none;
}

.password-toggle-icon:hover {
    transform: translateY(-50%) scale(1.1);
}

.eye-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* Modal Multi-step Adjustments */
.modal-container .step-indicator {
    margin-bottom: 25px;
}

.modal-container .step-circle {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

.modal-container .step-label {
    font-size: 11px;
}

/* Center Modal */
.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.modal-container {
    position: relative;
    margin: auto;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
        align-items: center;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .step {
        margin-bottom: 15px;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .btn-prev, .btn-next {
        width: 100%;
    }
    
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-container {
        max-height: 95vh;
    }
}
