/* =========================
   OTP MODAL (FIXED)
========================= */

.otp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);

    /* perfect center */
    align-items: center;
    justify-content: center;
}

.otp-modal.active {
    display: flex;
}

.otp-modal-content {
    background: #fff;
    width: 90%;
    max-width: 650px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideIn 0.3s ease;
    margin: 0;
}

@keyframes slideIn {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.otp-modal-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.otp-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.otp-modal-close {
    font-size: 26px;
    cursor: pointer;
}

.otp-modal-body {
    padding: 25px;
}

.otp-modal-body p {
    margin-bottom: 15px;
    color: #666;
}

.otp-input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.otp-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.15);
}

.otp-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.otp-modal-buttons .button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.button-primary {
    background: #007cba;
    color: #fff;
}

.button-primary:hover {
    background: #005a87;
}

.button-secondary {
    background: #6c757d;
    color: #fff;
}

.button-secondary:hover {
    background: #5a6268;
}

.otp-modal-buttons .button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.otp-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.otp-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.otp-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* =========================
   FORM CONTAINER (CLEANED)
========================= */

.msur-container,
.msur-login-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* =========================
   PROGRESS BAR
========================= */

.msur-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.msur-progress-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #fff;
    color: #999;
    border-radius: 30px;
    font-size: 14px;
}

.msur-progress-step.active {
    color: #007cba;
    background: #e3f2fd;
}

/* =========================
   FORM
========================= */

.msur-step {
    display: none;
}

.msur-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

.form-section {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007cba;
    outline: none;
}

/* =========================
   BUTTONS
========================= */

.msur-buttons {
    text-align: center;
    margin-top: 25px;
}

.msur-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.next-btn,
.submit-btn {
    background: #007cba;
    color: #fff;
}

.prev-btn {
    background: #6c757d;
    color: #fff;
}

/* =========================
   OTP INLINE STATUS
========================= */

.email-status {
    font-size: 12px;
    margin-top: 5px;
}

.email-status.verified {
    color: green;
}

.email-status.unverified {
    color: orange;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .otp-modal-content {
        width: 95%;
    }

    .msur-container {
        padding: 20px;
    }
}