/* ==========================================================================
   Multi-Step Form - Modern & Premium Styles
   ========================================================================== */

#multi-step-form {
    position: relative;
    width: 100%;
}

/* Step Progress Indicator Header */
.step-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 10px;
}

.step-wizard-header::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.step-wizard-progress-bar {
    position: absolute;
    top: 24px;
    left: 40px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    z-index: 2;
    transition: width 0.4s ease;
    width: 0%;
}

.step-wizard-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
    flex: 1;
}

.step-wizard-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.step-wizard-item.active .step-wizard-circle {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.step-wizard-item.finish .step-wizard-circle {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.step-wizard-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.step-wizard-item.active .step-wizard-title {
    color: #0f172a;
    font-weight: 700;
}

.step-wizard-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Tabs */
#multi-step-form .tab {
    display: none;
    animation: fadeInStep 0.35s ease-in-out;
}

#multi-step-form .tab.active-tab {
    display: block;
}

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

/* Form Controls & Validation */
#multi-step-form .form-control {
    border-radius: 8px;
    height: 48px;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

#multi-step-form .form-control:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    background-color: #ffffff;
}

#multi-step-form .form-control.is-invalid,
#multi-step-form .form-control.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    background-color: #fff8f8 !important;
}

#multi-step-form .field-error-msg {
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

#multi-step-form .form-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Process Box & Action Buttons */
#process_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.btn-wizard {
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 48px;
}

.btn-wizard-prev {
    background-color: #f1f5f9;
    color: #334155;
    border: 1.5px solid #cbd5e1;
}

.btn-wizard-prev:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    transform: translateX(-2px);
}

.btn-wizard-next {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    margin-left: auto;
}

.btn-wizard-next:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.btn-wizard-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    margin-left: auto;
}

.btn-wizard-submit:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-wizard-submit:disabled,
.btn-wizard-next:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* Phone input adjustments */
.iti {
    width: 100%;
    display: block;
}

.iti input.form-control {
    padding-left: 52px !important;
}

@media (max-width: 576px) {
    .step-wizard-header {
        margin-bottom: 1.8rem;
    }
    .step-wizard-circle {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .step-wizard-title {
        font-size: 0.82rem;
    }
    .step-wizard-subtitle {
        display: none;
    }
    #process_box {
        flex-direction: column-reverse;
    }
    .btn-wizard {
        width: 100%;
        margin-left: 0 !important;
    }
}
