/* ═══════════════════════════════════════════════════════════════════════════
   PICT MODEL SCHOOL — FY2027 ADMISSION ENQUIRY (presentation only)
   Clean white layout. Colours: dark blue #334E89 (headings, primary buttons),
   light blue #DCE8FF (supporting areas), soft red #FDE7E7 (highlights), red #EA3333 (required marks).
   Loaded after Bootstrap 5 by index.php, form.php, form-submit.php, thankyou.php, closed.php.
   No behaviour depends on this file: ids, names and scripts are unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'madefor-display'; font-style: normal; font-weight: 100 400; font-display: swap; src: url('fonts/madefor-display-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'madefor-display'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/madefor-display-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'madefor-display'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('fonts/madefor-display-latin-700.woff2') format('woff2'); }

:root {
    --adm-blue: #334E89;
    --adm-blue-deep: #283F72;
    --adm-blue-light: #DCE8FF;
    --adm-red: #EA3333;
    --adm-red-text: #B42323;
    --adm-red-soft: #FDE7E7;
    --adm-text: #1F2937;
    --adm-text-2: #374151;
    --adm-muted: #6B7280;
    --adm-line: #E8EBF0;
    --adm-field-line: #D3D9E3;
    --adm-field-hover: #B4BECD;
    --adm-neutral: #F6F7F9;
    --adm-radius: 8px;
    --adm-font: 'madefor-display', 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

/* ── Page ── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.adm {
    margin: 0;
    background: #fff;
    color: var(--adm-text);
    font-family: var(--adm-font);
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.adm main { flex: 1 0 auto; }
.adm-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.adm a { color: var(--adm-blue); }
.adm a:hover { color: var(--adm-blue-deep); }

/* ── Header ── */
.adm-masthead { background: #fff; border-bottom: 1px solid var(--adm-line); }
.adm-masthead-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 26px; padding-bottom: 24px; }
.adm-masthead img { width: 84px; height: auto; flex: 0 0 auto; }
.adm-school { margin: 0 0 4px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--adm-red-text); }
.adm-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--adm-blue); }

/* ── Steps (Instructions → Enquiry Form → Token Number) ── */
.adm-steps { list-style: none; display: flex; max-width: 640px; margin: 30px auto 8px; padding: 0; }
.adm-steps li { flex: 1 1 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--adm-muted); min-width: 0; }
.adm-steps li:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--adm-line); margin: 0 12px 0 2px; min-width: 16px; }
.adm-step-no {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; border: 1px solid var(--adm-field-line); background: #fff; color: var(--adm-muted);
}
.adm-step-label { white-space: nowrap; }
.adm-steps li.is-current { color: var(--adm-blue); font-weight: 600; }
.adm-steps li.is-current .adm-step-no { background: var(--adm-blue); border-color: var(--adm-blue); color: #fff; }
.adm-steps li.is-done { color: var(--adm-text-2); }
.adm-steps li.is-done .adm-step-no { background: var(--adm-blue-light); border-color: var(--adm-blue-light); color: var(--adm-blue); }
.adm-steps li.is-done .adm-step-no svg { width: 14px; height: 14px; }

/* ── Content area (no card: content sits directly on the white page) ── */
.adm-sheet { padding: 32px 0 8px; }
.adm-page-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--adm-line); }
.adm-page-head h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--adm-blue); }
.adm-page-head p { margin: 0; color: var(--adm-muted); font-size: 15.5px; }
.adm-page-head-tight { margin-bottom: 0; padding-bottom: 16px; }
.adm-page-head-tight h2 { margin: 0; }
.adm-required-note { font-size: 14px; color: var(--adm-muted); }
.adm-required-note .req { margin-right: 2px; }
.adm h3.adm-h3 { font-size: 17px; font-weight: 600; color: var(--adm-blue); margin: 0 0 10px; }
.adm-section-label { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--adm-muted); }

/* ── Instructions (index.php) ── */
.adm-notes { list-style: none; counter-reset: adm-note; margin: 0; padding: 0; }
.adm-notes li {
    counter-increment: adm-note; position: relative; padding: 15px 0 15px 44px; margin: 0;
    border-bottom: 1px solid var(--adm-line);
    color: var(--adm-text-2); font-size: 15.5px; line-height: 1.7;
}
.adm-notes li::before {
    content: counter(adm-note, decimal-leading-zero); position: absolute; left: 0; top: 15px;
    font-size: 15px; font-weight: 700; color: var(--adm-red-text); font-variant-numeric: tabular-nums;
}
.adm-next .adm-notes li:last-child { border-bottom: 0; }
.adm-disclaimer { margin-top: 24px; padding: 18px 22px; background: var(--adm-red-soft); border-radius: 10px; }
.adm-disclaimer h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--adm-red-text); }
.adm-disclaimer p { margin: 0; color: var(--adm-text-2); font-size: 15px; line-height: 1.7; }

/* ── Actions & buttons ── */
.adm-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--adm-line);
}
.adm-actions.is-end { justify-content: flex-end; }
.adm .adm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 26px; border-radius: var(--adm-radius);
    font-family: var(--adm-font); font-size: 16px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.adm .adm-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.adm .adm-btn-primary { background: var(--adm-blue); border: 1px solid var(--adm-blue); color: #fff; }
.adm .adm-btn-primary:hover { background: var(--adm-blue-deep); border-color: var(--adm-blue-deep); color: #fff; }
.adm .adm-btn-secondary { background: #fff; border: 1px solid var(--adm-field-line); color: var(--adm-text-2); }
.adm .adm-btn-secondary:hover { background: var(--adm-neutral); border-color: var(--adm-field-hover); color: var(--adm-text); }
.adm .adm-btn:focus-visible, .adm .adm-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(51, 78, 137, .2); }
.adm .adm-btn:active { transform: translateY(1px); }

/* ── Enquiry form (form.php) ── */
.adm-form-body > .row { margin-top: 0; }
.adm-section, .adm-sub { position: relative; }
.adm-section { margin-top: 12px; padding-top: 30px; }
.adm-sub { margin-top: 10px; padding-top: 28px; }
/* Dividers line up with the field edges (rows carry the Bootstrap gutter, plain blocks do not). */
.adm-section::before, .adm-sub::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--adm-line); }
.row.adm-section::before, .adm-sub::before { left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); }
.adm-sec-head { margin-bottom: 20px; }
.adm-sec-head h3 { margin: 0; font-size: 18.5px; line-height: 1.35; font-weight: 600; color: var(--adm-blue); }
.adm-sec-head p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--adm-muted); }

.adm .form-group { margin: 0 0 20px; }
.adm label { display: block; margin: 0 0 6px; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--adm-text-2); }
.adm .req { color: var(--adm-red); font-weight: 600; margin-left: 2px; }
.adm-help { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--adm-muted); }
.adm-label-help { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--adm-muted); }

.adm .form-control {
    min-height: 48px;
    padding: 10px 14px;
    font-family: var(--adm-font);
    font-size: 16px;               /* 16px keeps iOS from zooming into fields */
    line-height: 1.4;
    color: var(--adm-text);
    background-color: #fff;
    border: 1px solid var(--adm-field-line);
    border-radius: var(--adm-radius);
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.adm input[type="text"].form-control { text-transform: uppercase; }   /* as before: names are shown the way they are stored */
.adm .form-control::placeholder { color: #9CA3AF; text-transform: none; }
.adm .form-control:hover { border-color: var(--adm-field-hover); }
.adm .form-control:focus { border-color: var(--adm-blue); box-shadow: 0 0 0 3px rgba(51, 78, 137, .12); outline: none; }
.adm .form-control:disabled { background-color: var(--adm-neutral); color: var(--adm-muted); }
.adm input[type="date"].form-control { -webkit-appearance: none; appearance: none; display: block; }
.adm select.form-control {
    -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
}
.adm select.form-control option:disabled { color: #A0A8B8; }
.adm input[type="file"].form-control { padding: 9px 12px; line-height: 1.8; }
.adm input[type="file"].form-control::file-selector-button {
    margin: -9px 12px -9px -12px; padding: 0 16px; min-height: 46px;
    border: 0; border-right: 1px solid var(--adm-field-line); border-radius: 0;
    background: var(--adm-neutral); color: var(--adm-text-2); font-family: var(--adm-font); font-weight: 600;
}

/* +91 prefix */
.adm .input-group { flex-wrap: wrap; margin-bottom: 0 !important; }
.adm .input-group-prepend { display: flex; }
.adm .input-group-text {
    min-height: 48px; padding: 0 14px; border: 1px solid var(--adm-field-line); border-right: 0;
    border-radius: var(--adm-radius) 0 0 var(--adm-radius);
    background: var(--adm-neutral); color: var(--adm-text-2); font-size: 15px; font-weight: 500;
}
.adm .input-group > .form-control { flex: 1 1 0; min-width: 0; width: auto; border-radius: 0 var(--adm-radius) var(--adm-radius) 0 !important; margin-left: 0 !important; }

/* Age message (shown by the form script) */
.adm #age-message label {
    margin: 0; padding: 12px 16px 12px 44px; position: relative;
    background: var(--adm-red-soft); border-radius: var(--adm-radius);
    color: #8F1D1D; font-size: 14.5px; font-weight: 500; line-height: 1.55;
}
.adm #age-message label::before {
    content: "!"; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--adm-red); color: #fff; font-size: 13px; font-weight: 700; line-height: 20px; text-align: center;
}

/* Validation messages (jQuery Validation adds label.error after the field and .error on the field) */
.adm label.error {
    flex-basis: 100%;
    display: flex; align-items: flex-start; gap: 6px;
    margin: 6px 0 0; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--adm-red-text);
}
.adm label.error::before {
    content: "!"; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%;
    background: var(--adm-red-text); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
.adm .form-control.error { border-color: #E07A7A; background-color: #FFFBFB; }
.adm .form-control.error:focus { box-shadow: 0 0 0 3px rgba(234, 51, 51, .12); }
.adm .input-group label.error { width: 100%; }

/* Declaration + reCAPTCHA + buttons */
.adm-declare {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 18px; margin-bottom: 22px;
    background: var(--adm-red-soft); border-radius: 10px;
}
.adm-declare input[type="checkbox"] {
    flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer; accent-color: var(--adm-blue);
}
.adm-declare label { margin: 0; font-size: 14.5px; font-weight: 400; line-height: 1.6; color: var(--adm-text-2); cursor: pointer; }
.adm-declare label b { font-weight: 600; color: var(--adm-text); }
.adm-captcha { margin: 0 0 4px; min-height: 78px; }
.adm-form-actions .adm-btn { min-width: 150px; }

/* ── Confirmation (form-submit.php) and status pages ── */
.adm-done { text-align: center; }
.adm-done-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--adm-blue-light); color: var(--adm-blue);
}
.adm-done-icon.is-red { background: var(--adm-red-soft); color: var(--adm-red-text); }
.adm-done-icon svg { width: 28px; height: 28px; }
.adm-done h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--adm-blue); }
.adm-done > p { margin: 0 auto; max-width: 560px; color: var(--adm-muted); font-size: 15.5px; }

.adm-token { margin: 26px auto 0; max-width: 460px; padding: 22px 20px; background: var(--adm-blue-light); border-radius: 12px; }
.adm-token-label { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-blue); opacity: .8; }
.adm-token-no {
    margin: 0; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: .04em; color: var(--adm-blue);
    font-variant-numeric: tabular-nums; word-break: break-all; -webkit-user-select: all; user-select: all;
}

.adm-next { text-align: left; }
.adm-next .adm-notes li { font-size: 15px; }

.adm-resend { text-align: left; }
.adm-resend p { margin: 0 0 14px; color: var(--adm-text-2); font-size: 15px; }
.adm-resend-row { display: flex; gap: 12px; align-items: flex-start; }
.adm-resend-row .form-control { flex: 1 1 auto; min-width: 0; }
.adm-resend-row .adm-btn { flex: 0 0 auto; }

.adm-status { text-align: center; padding-top: 48px; padding-bottom: 32px; }
.adm-status p { margin: 0 0 4px; color: var(--adm-text-2); font-size: 16px; }
.adm-status p.adm-muted { color: var(--adm-muted); font-size: 15px; }

/* ── Opening-time popup (index.php) ── */
.adm-modal {
    position: fixed; inset: 0; z-index: 1050; padding: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(31, 41, 55, .5);
}
.adm-modal[hidden] { display: none; }
body.adm-modal-open { overflow: hidden; }
.adm-modal-box {
    width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #fff; border-radius: 6px; border-top: 4px solid var(--adm-red);
    box-shadow: 0 12px 40px rgba(31, 41, 55, .22); text-align: center;
}
.adm-modal-head { padding: 26px 28px 18px; border-bottom: 1px solid var(--adm-line); }
.adm-modal-head img { width: 72px; height: auto; display: block; margin: 0 auto 10px; }
.adm-modal-head .adm-school { margin: 0; font-size: 12.5px; }
.adm-modal-sub { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--adm-blue); }
.adm-modal-body { padding: 24px 32px 28px; }
.adm-modal-body h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; color: var(--adm-text); }
.adm-modal-text { margin: 0; font-size: 15px; color: var(--adm-muted); }
.adm-modal-date {
    display: inline-block; margin: 6px 0 0; padding: 8px 18px;
    background: var(--adm-blue-light); border-radius: 4px;
    font-size: 18px; font-weight: 700; color: var(--adm-blue);
}
.adm-countdown { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 22px 0 0; }
.adm-countdown div { width: 76px; }
.adm-countdown span {
    display: block; padding: 10px 0; border: 1px solid var(--adm-field-line); border-radius: 4px;
    font-size: 28px; line-height: 1.1; font-weight: 700; color: var(--adm-blue); font-variant-numeric: tabular-nums;
}
.adm-countdown small { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-muted); }
.adm-countdown b { padding-top: 10px; font-size: 24px; line-height: 1.1; font-weight: 600; color: var(--adm-field-hover); }
.adm-modal-actions {
    display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
    padding: 14px 20px; background: var(--adm-neutral); border-top: 1px solid var(--adm-line);
}
.adm .adm-modal-actions .adm-btn { min-height: 42px; padding: 0 20px; font-size: 15px; border-radius: 4px; }

/* ── Footer ── */
.adm-footer { margin-top: 56px; flex-shrink: 0; }
.adm-footer #footer { background: var(--adm-blue-light); }
.adm-footer #footer p { margin: 0; padding: 14px 16px; text-align: center; font-size: 13.5px; color: var(--adm-blue); }

/* ── Tablet ── */
@media (max-width: 767.98px) {
    .adm-title { font-size: 21px; }
    .adm-masthead img { width: 64px; }
}

/* ── Mobile ── */
@media (max-width: 575.98px) {
    body.adm { font-size: 15.5px; }
    .adm-wrap { padding: 0 16px; }
    .adm-sheet { padding-top: 24px; }
    .adm-masthead-inner { gap: 8px; padding-top: 18px; padding-bottom: 18px; }
    .adm-masthead img { width: 60px; }
    .adm-school { font-size: 11.5px; }
    .adm-title { font-size: 17.5px; }

    .adm-steps { margin: 22px 0 0; }
    .adm-steps li { flex-direction: column; gap: 6px; font-size: 12.5px; text-align: center; position: relative; }
    .adm-steps li:not(:last-child)::after { position: absolute; top: 14px; left: calc(50% + 22px); right: calc(-50% + 22px); margin: 0; min-width: 0; }

    .adm-page-head h2, .adm-done h2 { font-size: 19.5px; }
    .adm-page-head p, .adm-notes li { font-size: 15px; }
    .adm-notes li { padding-left: 34px; }
    .adm-disclaimer { padding: 16px; }
    .adm-section { padding-top: 24px; }
    .adm-sub { padding-top: 22px; }
    .adm-sec-head h3 { font-size: 17px; }
    .adm .form-group { margin-bottom: 18px; }

    .adm-actions { flex-direction: column-reverse; align-items: stretch; }
    .adm .adm-actions .adm-btn { width: 100%; }
    .adm-token-no { font-size: 32px; }
    .adm-resend-row { flex-direction: column; align-items: stretch; }

    .adm-modal-head { padding: 20px 16px 14px; }
    .adm-modal-head img { width: 60px; }
    .adm-modal-body { padding: 20px 16px 22px; }
    .adm-modal-body h3 { font-size: 18.5px; }
    .adm-modal-date { font-size: 16px; padding: 7px 14px; }
    .adm-countdown { gap: 4px; }
    .adm-countdown div { width: 60px; }
    .adm-countdown span { font-size: 22px; }
    .adm-countdown small { font-size: 9.5px; letter-spacing: .04em; }
    .adm-countdown b { font-size: 20px; }
    .adm-modal-actions { flex-direction: column-reverse; padding: 12px 16px; }
    .adm-modal-actions .adm-btn { width: 100%; }
}
@media (max-width: 359.98px) {
    .adm-captcha .g-recaptcha { transform: scale(.86); transform-origin: 0 0; }
    .adm-captcha { min-height: 68px; }
}

/* ── Print (the confirmation page) ── */
@media print {
    .adm-steps, .adm-footer, .adm-resend, .adm-no-print { display: none !important; }
}
