/* ==========================================================================
   MMDU Aspirant Enquiry - public pages (form, thank-you, aspirant login / home)
   The form is compact (as on admission.mmumullana.org): placeholders are the visible labels,
   square boxes in tight rows, a red login bar at the top.
   ========================================================================== */
:root {
    --brand: #9b1c2c;
    --brand-600: #7f1624;
    --brand-50: #fbf1f2;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --field-line: #d9d9d9;
    --field-off: #f1f1f1;
    --bg: #f5f6fa;
    --ok: #15803d;
    --ok-50: #effaf3;
    --err: #b91c1c;
    --err-50: #fef2f2;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(155, 28, 44, .08) 0, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(155, 28, 44, .06) 0, transparent 45%),
        var(--bg);
    min-height: 100vh;
}
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a { color: var(--brand); }

.page { max-width: 520px; margin: 0 auto; padding: 24px 16px 32px; }


.enq-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 22px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.enq-head { text-align: center; margin-bottom: 14px; }
.enq-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .04em; color: var(--brand); }
.enq-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.enq-login { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.enq-login a { font-weight: 700; text-decoration: none; }

/* red bar: "Already have an Account? Login" */
.login-bar {
    display: block; margin: 0 0 12px; padding: 17px 12px;
    background: var(--brand); color: #fff; text-align: center; text-decoration: none;
    font-weight: 700; font-size: 16px; border: 0;
}
.login-bar:hover { background: var(--brand-600); }

/* ---------- compact fields ---------- */
.field { margin-bottom: 6px; min-width: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

input[type=text], input[type=email], input[type=tel], input[type=password], select {
    width: 100%; height: 46px;
    padding: 0 13px;
    font: inherit; font-size: 15px; color: var(--ink);
    background-color: #fff;
    border: 1px solid var(--field-line); border-radius: 2px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #333; opacity: 1; }
select { appearance: none; padding-right: 30px; color: #333; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; text-overflow: ellipsis; }
select:disabled, input:disabled { background-color: var(--field-off); color: #555; cursor: not-allowed; }
input:disabled::placeholder { color: #444; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(155, 28, 44, .12); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.err { color: var(--err); font-size: 12px; margin: 3px 0 2px; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: 12px; margin-top: 3px; }
.hint:empty { display: none; }
.hint.debug { color: #92400e; }

/* age group: one compact row */
.age-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 2px 6px; }
.age-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.age-row .err { flex-basis: 100%; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.radio { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }
.radio input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }

.age-block { margin: 0; }

.inline { display: flex; gap: 0; align-items: stretch; }
.inline input { flex: 1; min-width: 0; }
.prefix { display: flex; align-items: center; padding: 0 12px; height: 46px; border: 1px solid var(--field-line); border-right: 0; background: #fff; color: #333; font-size: 15px; }
.btn-otp { height: 46px; border-radius: 0 2px 2px 0; padding: 0 14px; background: #fff; color: var(--brand); border: 1px solid var(--field-line); border-left: 0; font-size: 13.5px; }
.btn-otp:hover:not(:disabled) { background: var(--brand-50); }
.btn-otp:disabled { color: #888; background: var(--field-off); }
.otp-input:not(:placeholder-shown) { letter-spacing: .12em; }
.verified { margin: 0 0 6px; padding: 10px 12px; color: var(--ok); background: var(--ok-50); font-weight: 600; font-size: 13px; }
.otp-group.is-verified input[type=tel] { background: var(--ok-50); border-color: #86efac; }

.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.check input { margin: 2px 0 0; width: 15px; height: 15px; flex: none; accent-color: var(--brand); }
/* consent paragraphs: small print, as required */
.consent { margin-top: 8px; }
.consent .check span { font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.consent a { font-weight: 600; }
/* Privacy Policy link: its own small line under the communication consent */
.small-print { margin: 4px 0 0 23px; font-size: 11.5px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 700;
    border-radius: 2px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover:not(:disabled) { background: var(--brand-50); }
.btn-block { width: 100%; padding: 14px; font-size: 16px; margin-top: 10px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.alert.error { background: var(--err-50); color: var(--err); border: 1px solid #fecaca; }
.alert.success { background: var(--ok-50); color: var(--ok); border: 1px solid #bbf7d0; }


/* ---------- thank-you / login / my enquiries ---------- */
.narrow { max-width: 460px; margin: 0 auto; }
.done { text-align: center; padding: 10px 0; }
.done .big-icon { font-size: 52px; color: var(--ok); }
.done h1 { margin: 12px 0 6px; font-size: 24px; }
.ref { display: inline-block; margin: 12px 0; padding: 10px 18px; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 18px; letter-spacing: .05em; }
.muted { color: var(--muted); }
.actions-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* login page (mobile + OTP) keeps labelled fields */
.field > label:not(.sr-only):not(.check) { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--brand); }
#login-form .inline .btn { border: 1px solid var(--brand); border-radius: 0 2px 2px 0; }

.top-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.top-bar h1 { margin: 0; font-size: 22px; }
.enq-list { display: grid; gap: 12px; }
.enq-list .enq-card { padding: 16px 18px; box-shadow: none; border-radius: 12px; }
.enq-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.enq-card-prog { margin-top: 6px; font-weight: 700; font-size: 15px; }
.enq-card-meta { margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.enq-card-date { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: var(--ink-2); }
.pill-admitted, .pill-applied { background: var(--ok-50); color: var(--ok); }

@media (max-width: 480px) {
    .page { padding: 14px 10px 24px; }
    .enq-card { padding: 16px 12px 18px; border-radius: 10px; }
}

/* ---------- /embed: inside the iframe on the university websites ---------- */
/* Same red and font as admission.mmumullana.org so the form blends into its "Enquire Now" panel;
   the page's own heading ("ADMISSIONS OPEN FOR 2026-27") replaces ours. */
body.embed {
    --brand: #c41e30; --brand-600: #a3172a; --brand-50: #fdf0f1;
    background: transparent; min-height: 0;
    font-family: Arial, Helvetica, sans-serif;
}
.embed .enq-card { border: 0; border-radius: 0; box-shadow: none; padding: 2px 1px 6px; background: transparent; }
.embed .enq-head { display: none; }
.embed .done { padding: 16px 6px; }
.embed .done h1 { font-size: 20px; }
.embed .done .big-icon { font-size: 42px; }
@media (max-width: 340px) {
    .embed .row-2 { grid-template-columns: 1fr; }
    .embed .prefix { padding: 0 8px; }
    .embed .btn-otp { padding: 0 9px; }
}
