/* ===== WIZARD STEPPER ===== */
.wizard-nav {
    display: flex;
    justify-content: center;
    padding: 1.75rem 2rem 1.25rem;
    background: #fafbfc;
    border-bottom: 1px solid #f1f1f4;
}

.wizard-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 80px;
    right: 80px;
    height: 3px;
    background: #e4e6ef;
    z-index: 0;
}

.wizard-progress-line {
    position: absolute;
    top: 22px;
    left: 50px;
    height: 3px;
    width: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
    transition: width 0.5s ease;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: white;
    color: #a1a5b7;
    border: 3px solid #e4e6ef;
    transition: all 0.4s ease;
}

.wizard-step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.wizard-step.completed .step-icon {
    background: #50cd89;
    color: white;
    border-color: #50cd89;
}

.wizard-step.completed .step-number {
    display: none;
}

.wizard-step.completed .step-check {
    display: inline !important;
}

.step-check {
    display: none !important;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a1a5b7;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.wizard-step.active .step-label {
    color: #667eea;
    font-weight: 700;
}

.wizard-step.completed .step-label {
    color: #50cd89;
}

/* ===== STEP CONTENT ===== */
.step-pane {
    display: none;
}

.step-pane.active {
    display: block;
    animation: stepFadeIn 0.35s ease forwards;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CARD HEADER ===== */
.card-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: none;
}

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.section-title i {
    font-size: 1.15rem;
    color: #667eea;
}

.section-title h4 {
    margin: 0;
    font-weight: 700;
    color: #3f4254;
    font-size: 1.1rem;
}

/* ===== NAV BUTTONS ===== */
.btn-wizard-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-wizard-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.btn-wizard-prev {
    background: #f5f8fa;
    color: #7e8299;
    border: 1px solid #e4e6ef;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-wizard-prev:hover {
    background: #e4e6ef;
    color: #3f4254;
}

/* ===== SUMMARY ===== */
.summary-section {
    background: #fafbfc;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f1f4;
    transition: all 0.3s ease;
}

.summary-section:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f1f4;
}

.summary-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #3f4254;
    font-size: 1rem;
}

.summary-table {
    width: 100%;
    margin: 0;
}

.summary-table td {
    padding: 0.35rem 0;
    border: none;
    vertical-align: top;
    font-size: 0.92rem;
}

.summary-table td:first-child {
    width: 180px;
    color: #a1a5b7;
    font-weight: 500;
}

.summary-table td:last-child {
    color: #3f4254;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== INPUT FOCUS ===== */
.step-pane .form-control:focus,
.step-pane .form-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12) !important;
}

.step-pane .input-group:focus-within .input-group-text {
    border-color: #667eea !important;
    color: #667eea !important;
    transition: all 0.3s ease;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
    font-size: 0.85rem;
    color: #a1a5b7;
    font-weight: 500;
}

/* ===== SHAKE ERROR ===== */
@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.shake-error {
    animation: shakeError 0.5s ease;
}

.wizard-error {
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .wizard-nav {
        padding: 1rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .wizard-steps::before {
        top: 18px;
        left: 30px;
        right: 30px;
    }

    .wizard-progress-line {
        top: 18px;
        left: 30px;
    }

    .summary-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}