/* AdmitDesk parent pages. Phone first; --school is set per school. */
:root { --school: #8A0F50; --bg: #FFFBF7; --ink: #3B1029; --ink-2: #5C3A4B; --muted: #7A5566; --line: #F3E6DA; --field: #FEFBF8;
  --mint: #D8F4E6; --mint-ink: #157347; --peach: #FFE3CF; --peach-ink: #A1470C; --butter: #FFF4D6; --butter-ink: #6B4E00; --red: #FFDCDC; --red-ink: #A61B14; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Manrope', 'Noto Sans Tamil', 'Noto Sans Devanagari', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45; }
body.embed { background: transparent; }
a { color: var(--school); }
:focus-visible { outline: 3px solid var(--school); outline-offset: 2px; }
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.embed .page { min-height: 0; }
.top { padding: 20px 22px 14px; display: flex; flex-direction: column; gap: 16px; }
.school { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
.school-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--school); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }
.banner { position: relative; overflow: hidden; background: var(--school); color: #fff; padding: 22px 22px 64px; border-radius: 0 0 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.embed .banner { border-radius: 24px 24px 28px 28px; }
.banner .school { color: #fff; }
.banner .school-mark { background: #fff; color: var(--school); width: 40px; height: 40px; font-size: 13px; }
.banner-deco { position: absolute; right: -40px; top: -30px; }
.tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.sub { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.step { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--peach-ink); }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--school); }
.card { background: #fff; border-radius: 24px; box-shadow: 0 6px 24px rgba(59,16,41,.08); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lift { margin: -44px 16px 0; position: relative; }
.body { flex: 1; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.foot { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
label.f .opt { font-weight: 500; color: var(--muted); }
.f input, .f select, .f textarea { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); font: 16px 'Manrope', 'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif; color: var(--ink); width: 100%; }
.f textarea { padding: 12px 14px; }
.f input[aria-invalid="true"], .f select[aria-invalid="true"] { border-color: var(--red-ink); }
.two { display: flex; gap: 10px; }
.two > * { flex: 1; min-width: 0; }
.err { margin: 0; color: var(--red-ink); font-size: 13px; font-weight: 600; }
.note { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.note.ok { background: var(--mint); color: var(--mint-ink); }
.note.warn { background: var(--butter); color: var(--butter-ink); }
.note.bad { background: var(--red); color: var(--red-ink); }
.btn { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--school); color: #fff; text-decoration: none; font: 800 16px 'Manrope', 'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif; cursor: pointer; width: 100%; }
.btn:hover { filter: brightness(.92); color: #fff; }
.btn.ghost { background: #fff; color: var(--school); border: 1px solid var(--line); }
.small { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.choice { display: flex; gap: 10px; }
.choice label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; cursor: pointer; }
.choice label:has(input:checked) { border: 2px solid var(--school); background: var(--field); font-weight: 700; }
.choice input, .check input { accent-color: var(--school); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.fee { position: relative; overflow: hidden; background: var(--school); color: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.fee .amt { margin: 0; font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
.fee p { margin: 0; opacity: .88; }
.next { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.next b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 14px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.timeline .line { width: 2px; flex: 1; min-height: 22px; background: var(--line); }
.timeline li:last-child .line { background: transparent; }
.timeline .done .dot { background: var(--school); border-color: var(--school); }
.timeline .done .line { background: var(--school); }
.timeline .now .dot { border-color: var(--school); }
.timeline .txt { padding-bottom: 16px; }
.timeline .txt p { margin: 2px 0 0; }
.timeline .next-s .label { color: var(--muted); }
.timeline .now .label { font-weight: 800; }
.label { font-size: 15px; font-weight: 600; }
.detail { font-size: 13px; color: var(--muted); }
.demo { padding: 12px 14px; border-radius: 14px; background: var(--butter); color: var(--butter-ink); font-size: 13px; font-weight: 600; }
.receipt { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; text-align: right; font-weight: 700; }
.lang { display: flex; gap: 8px; justify-content: center; font-size: 13px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Parent dashboard (status page) */
.page.wide { max-width: 1040px; }
.pnav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; margin-top: 4px; background: var(--bg); scrollbar-width: none; }
.dbar ~ .page .pnav { top: 48px; }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.pnav a:hover { border-color: var(--school); }
.pn { font-size: 12px; color: var(--muted); }
.dash { padding: 4px 16px 0; display: grid; gap: 16px; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 880px) {
  .page.wide .banner { border-radius: 0 0 32px 32px; padding-left: 32px; padding-right: 32px; }
  .dash { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; padding: 4px 24px 0; }
  .pnav { padding-left: 24px; padding-right: 24px; }
}
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--school); }
.next-card { gap: 10px; }
.visit-when { margin: 0; display: flex; gap: 14px; align-items: center; }
.cal { width: 58px; flex: none; border-radius: 14px; background: var(--field); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal b { font-size: 22px; color: var(--school); line-height: 1.1; }
.who-card { flex-direction: row; align-items: center; gap: 14px; }
.who-av { width: 52px; height: 52px; border-radius: 50%; background: var(--peach); color: var(--peach-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.rcpt { padding: 12px; border-radius: 14px; background: var(--field); display: flex; flex-direction: column; gap: 8px; }
.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msgs li { padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--field); display: flex; flex-direction: column; gap: 6px; }
.msgs p { margin: 0; font-size: 14px; color: var(--ink-2); }
.msgs time { font-size: 12px; color: var(--muted); }
.via { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }

/* Parent settings */
.back { font-weight: 700; font-size: 14px; text-decoration: none; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 600; cursor: pointer; }
fieldset .pref:last-child, .card > .pref:last-child { border-bottom: 0; }
.sw { position: relative; flex: none; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw span { display: block; width: 50px; height: 30px; border-radius: 999px; background: #E9D9CC; position: relative; transition: background .2s; }
.sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(59,16,41,.25); transition: transform .2s; }
.sw input:checked + span { background: var(--school); }
.sw input:checked + span::after { transform: translateX(20px); }
.sw input:focus-visible + span { outline: 3px solid var(--school); outline-offset: 2px; }
div.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.ro { margin: 0; min-height: 50px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; background: var(--field); border: 1px dashed var(--line); font-weight: 600; color: var(--ink-2); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.lang-on { background: var(--school); color: #fff; }
.lang-soon { background: var(--field); color: var(--muted); border: 1px solid var(--line); font-weight: 600; }

/* Website look: gradient on the school colour, wavy lines inside the coloured panels */
.banner, .fee { background: var(--school); background-image: linear-gradient(130deg, var(--school) 0%, color-mix(in srgb, var(--school) 70%, #E0628F) 55%, color-mix(in srgb, var(--school) 55%, #FFB98A) 100%); }
.btn:not(.ghost) { background-image: linear-gradient(135deg, color-mix(in srgb, var(--school) 88%, #000) 0%, color-mix(in srgb, var(--school) 85%, #E0628F) 55%, color-mix(in srgb, var(--school) 65%, #E0628F) 100%); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--school) 70%, transparent); }
.timeline .done .dot, .progress span.on, .sw input:checked + span, .lang-on { background-image: linear-gradient(135deg, var(--school), color-mix(in srgb, var(--school) 70%, #E0628F)); }
.waves-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
[data-waves] { position: relative; overflow: hidden; isolation: isolate; }
[data-waves] > :not(.waves-svg):not(.banner-deco) { position: relative; z-index: 1; }
.msgs li.mine { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; }
.msgs p { overflow-wrap: anywhere; }

/* Landing pages */
.lp-draft { margin: 0; padding: 8px 16px; background: var(--butter); color: var(--butter-ink); font-size: 13px; font-weight: 700; text-align: center; }
.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 22px 22px 70px; border-radius: 0 0 28px 28px; display: flex; flex-direction: column; gap: 18px;
  background: var(--school); background-image: linear-gradient(130deg, var(--school) 0%, color-mix(in srgb, var(--school) 70%, #E0628F) 55%, color-mix(in srgb, var(--school) 55%, #FFB98A) 100%); }
.lp-photo .lp-hero { background-image: linear-gradient(180deg, rgba(20,6,14,.15) 0%, rgba(20,6,14,.72) 100%), var(--photo); background-size: cover; background-position: center; min-height: 380px; justify-content: space-between; }
.lp-hero .school { color: #fff; }
.lp-hero .school-mark { background: #fff; color: var(--school); }
.lp-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.lp-hero h1 { font-size: 30px; }
.lp-intro { margin: 0; font-size: 16px; opacity: .95; }
.lp-body { display: grid; gap: 16px; padding: 0 16px; margin-top: -48px; position: relative; }
.lp-side { display: flex; flex-direction: column; gap: 14px; order: 2; }
.lp-form { order: 1; }
.lp-card { box-shadow: 0 18px 40px -18px rgba(59,16,41,.35); }
.lp-photo-img, .lp-photo { width: 100%; border-radius: 22px; object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.lp-points { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 22px; }
.lp-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.lp-points li span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); font-weight: 800; font-size: 14px; }
.lp-contact { margin: 0; color: var(--muted); font-size: 14px; }
@media (min-width: 880px) {
  .lp-hero { padding: 28px 40px 90px; border-radius: 0 0 36px 36px; }
  .lp-hero h1 { font-size: 42px; }
  .lp-photo .lp-hero { min-height: 460px; }
  .lp-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; padding: 0 40px; margin-top: -64px; gap: 28px; }
  .lp-side { order: 1; padding-top: 84px; }
  .lp-split .lp-side { padding-top: 0; }
  .lp-form { order: 2; }
}

/* Languages. Manrope has no Tamil or Devanagari letters, so Noto fills those in. */
body { font-family: 'Manrope', 'Noto Sans Tamil', 'Noto Sans Devanagari', system-ui, sans-serif; }
:lang(ta) h1, :lang(hi) h1 { line-height: 1.3; }
.langbar { display: flex; justify-content: flex-end; gap: 4px; padding: 8px 12px 0; }
.embed .langbar { display: none; }
.langbar a { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.langbar a:hover { color: var(--ink); background: var(--field); }
.langbar a[aria-current] { color: var(--school); background: color-mix(in srgb, var(--school) 10%, transparent); }
.lang-pick { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--field); border: 1px solid var(--line); cursor: pointer; }
.lang-pick input { accent-color: var(--school); margin: 0; min-height: 0; width: auto; height: auto; padding: 0; }
.lang-pick:has(input:checked) { border-color: var(--school); color: var(--school); }

/* Calmer status page (Nov 2026): quiet message labels, short links, one tap to upload */
.msgs .via { padding: 0; border-radius: 0; background: none; color: var(--muted); font-weight: 700; font-size: 12px; }
.msgs .via time { font-weight: 500; }
.msgs p a { color: var(--school); font-weight: 700; }
.msgs-more summary { cursor: pointer; font-weight: 700; color: var(--school); font-size: 14px; padding: 4px 0; }
.msgs-more[open] summary { margin-bottom: 10px; }
.up-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.up-file { flex: 1 1 180px; min-width: 0; font-size: 14px; }
.up-btn { display: none; }
.up-send { width: auto; min-height: 44px; font-size: 14px; }
.up-form.js .up-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.up-form.js .up-send { display: none; }
.up-form.js .up-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--school) 45%, transparent); color: var(--school); font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; }
.up-form.js .up-file:focus-visible + .up-btn { outline: 3px solid color-mix(in srgb, var(--school) 35%, transparent); outline-offset: 2px; }
.young { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.young-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
@media (max-width: 420px) { .young-row { grid-template-columns: 1fr; padding-bottom: 6px; border-bottom: 1px dashed var(--line); } }
.linkish { align-self: flex-start; border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--school); cursor: pointer; }
