/* ─── Stepper Styles ─── */
.wizard-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    gap: 0.75rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.step.active .step-number {
    background: #65a6d7;
    color: #fff;
}

.step.active .step-title {
    color: #65a6d7;
}

.step.completed {
    cursor: pointer;
}

.step-separator {
    font-size: 2rem;
    font-weight: 900;
    color: #adb5bd;
    user-select: none;
    margin-top: -5px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Step Animations ─── */
.wizard-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.fade-left {
    animation: fadeLeftIn 0.4s ease forwards;
}

.fade-right {
    animation: fadeRightIn 0.4s ease forwards;
}

@keyframes fadeLeftIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRightIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── Modal Layout ─── */
#resumeWizardModal .modal-dialog {
    max-width: 640px;
}

.modal-content .modal-footer {
    padding-bottom: 0.5rem;
}

/* ─── Progress Bar ─── */
#uploadProgressWrapper {
    background-color: #e9ecef;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

/* ─── OTP Styling ─── */
.otp-digit {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.25rem;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 0;
    line-height: 2.8rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.otp-digit:focus {
    border-color: #65a6d7;
    outline: none;
}

/* ─── Validation ─── */
label.error,
.input-error-bubble {
    font-size: 0.75rem;
    color: #dc3545;
}

.preview-box p {
    margin-bottom: 0.25rem;
}

.otp-header-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* ──────────────── RESPONSIVE FIXES ──────────────── */
@media (max-width: 576px) {

    .wizard-stepper {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        border-radius: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
    }

    .wizard-stepper::-webkit-scrollbar {
        display: none;
    }

    .step {
        flex: 0 0 auto;
        scroll-snap-align: start;
        background: #fff;
        padding: 0.5rem 0.75rem;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        min-width: 160px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .step-title {
        font-size: 0.85rem;
    }

    .step-separator {
        font-size: 1.5rem;
        margin: 0;
    }

    /* OTP styling */
    .otp-digit {
        width: 2.3rem;
        height: 2.3rem;
        font-size: 1rem;
        line-height: 2.3rem;
        margin: 0 0.1rem;
    }

    .d-flex.justify-content-center.gap-2 {
        flex-wrap: nowrap;
        gap: 0.2rem !important;
        justify-content: center;
    }

    .modal-dialog {
        margin: 1rem auto;
    }

    .modal-content {
        padding: 0.75rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Tidy up OTP */
    .otp-digit {
        width: 2.3rem;
        height: 2.3rem;
        font-size: 1rem;
        line-height: 2.3rem;
        margin: 0 0.1rem;
    }

    .d-flex.justify-content-center.gap-2 {
        flex-wrap: nowrap;
        gap: 0.2rem !important;
        justify-content: center;
    }

    .modal-dialog {
        margin: 1rem auto;
    }

    .modal-content {
        padding: 0.75rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

#profilePreview {
    margin-bottom: 1rem !important;
}

.row.g-3 .form-control {
    margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
    [name="phone_code"] {
        width: 80px !important;
    }

    [name="mobile_number"] {
        flex: 1 1 auto;
    }
}

.d-flex.gap-2>* {
    margin-bottom: 0 !important;
}