/*
 * MBA Working Admission — Page-Specific Styles
 * Shared design system: srusti-design-system.css (loaded first)
 */

/* ══════════ ENQUIRY FORM CARD ══════════ */
.enquiry-form-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 5px solid var(--gold);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-field, .form-field-full { display: flex; flex-direction: column; }
.form-field-full { margin-bottom: 18px; }

.mwa-label {
    font-family: "Antonio", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 8px;
}

.mwa-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.mwa-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(55,71,153,0.1);
}

.mwa-input::placeholder { color: #9aa0b3; }

.mwa-select { cursor: pointer; appearance: auto; }

.mwa-recaptcha { align-items: flex-start; }

.mwa-submit {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 15px;
    cursor: pointer;
}

/* ══════════ OTP VERIFICATION MODAL ══════════ */
.mwa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,26,68,0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mwa-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mwa-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border-top: 5px solid var(--gold);
    padding: 40px 34px 34px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease;
}

.mwa-modal-overlay.open .mwa-modal-box {
    transform: translateY(0) scale(1);
}

.mwa-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: var(--off-white);
    border-radius: 50%;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mwa-modal-close:hover { background: var(--border); }
.mwa-modal-close svg { width: 18px; height: 18px; }

.mwa-modal-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mwa-modal-icon svg { width: 32px; height: 32px; }

.mwa-modal-title {
    font-family: "Antonio", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.mwa-modal-sub {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: var(--body-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.otp-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.inputotp {
    width: 48px;
    height: 58px;
    text-align: center;
    font-family: "Antonio", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
.inputotp::-webkit-outer-spin-button,
.inputotp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inputotp:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220,162,0,0.15);
}
.inputotp:disabled { background: var(--off-white); cursor: not-allowed; }

.mwa-verify-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px;
    cursor: pointer;
}

.mwa-modal-msg {
    margin-top: 16px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    min-height: 20px;
}
.mwa-modal-msg.is-success { color: #1a7f4b; }
.mwa-modal-msg.is-error { color: #c0392b; }

/* ══════════ ALERTS ══════════ */
.mwa-alert {
    max-width: 720px;
    margin: 0 auto 20px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    text-align: center;
}
.mwa-alert-error {
    background: #fdeceb;
    border: 1px solid #f5c6c2;
    color: #c0392b;
}
.mwa-alert-success {
    background: #e8f6ef;
    border: 1px solid #b7e0cb;
    color: #1a7f4b;
}

/* ══════════ RESEND ══════════ */
.mwa-resend {
    margin-top: 18px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: var(--body-gray);
}
.mwa-resend #resendBtn {
    border: none;
    background: none;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}
.mwa-resend #resendBtn:disabled {
    color: #9aa0b3;
    cursor: not-allowed;
}
.mwa-resend #resendTimer { color: #9aa0b3; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 768px) {
    .enquiry-form-card { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-row .form-field { margin-bottom: 18px; }
}

@media (max-width: 560px) {
    /* Prevent reCAPTCHA overflow on small screens */
    .mwa-recaptcha { overflow-x: auto; }
    .mwa-modal-box { padding: 34px 22px 26px; }
    .otp-box { gap: 8px; }
    .inputotp { width: 48px; height: 54px; font-size: 22px; }
}
