/* Munja AI – Free School Gap Test pages: booking, school dashboard, student test, principal report. */

.sch-hero { padding: clamp(28px, 6vw, 64px) 0 clamp(20px, 4vw, 40px); }
.sch-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.sch-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin: 12px 0 14px; color: var(--night); }
.sch-hero h1 em { font-style: normal; color: var(--violet); }
.sch-hero .lede { max-width: 34em; }
.sch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.sch-chips li { background: var(--surface); border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 12px; font-weight: 600; font-size: .92rem; }
.sch-chips li b { color: var(--teal-deep); }

/* the sample report card in the hero */
.sch-sample { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 18px 14px; position: relative; }
.sch-sample-tag { position: absolute; top: -12px; right: 16px; background: var(--saffron); color: var(--night); font-weight: 700; font-size: .78rem; padding: 3px 10px; border-radius: 99px; letter-spacing: .5px; }
.sch-sample h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 2px; }
.sch-sample p.muted { font-size: .85rem; margin: 0 0 12px; }
.sk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sk-bars li { display: grid; gap: 4px; }
.sk-bars .sk-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; line-height: 1.25; }
.sk-bars .sk-top b { font-weight: 600; }
.sk-bars .sk-top span { color: var(--ink-soft); white-space: nowrap; font-size: .82rem; }
.stk { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--paper-deep); }
.stk i { display: block; height: 100%; }
.stk .c { background: #2E8B57; } .stk .m { background: #F2B230; } .stk .n { background: #C0392B; }
.sk-root { font-size: .8rem; color: #8E2318; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.sch-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.sch-steps li { background: var(--surface); border-radius: var(--radius); padding: 18px; counter-increment: s; position: relative; box-shadow: 0 4px 14px rgba(62, 43, 166, .06); }
.sch-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 10px; }
.sch-steps h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 4px; }
.sch-steps p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.sch-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sch-price > div { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 2px solid var(--line); }
.sch-price > div.hl { border-color: var(--teal); }
.sch-price h3 { font-family: var(--font-display); margin: 0; font-size: 1.15rem; }
.sch-price .amt { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--night); margin: 6px 0 2px; }
.sch-price .amt small { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.sch-price ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); }

.sch-form { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(18px, 4vw, 30px); max-width: 640px; margin: 0 auto; }
.sch-form h2 { font-family: var(--font-display); margin: 0 0 4px; }
.sch-form .field { margin-top: 12px; }
.sch-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sch-form .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }
.sch-form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.sch-err { color: #A12A1E; font-weight: 600; min-height: 1.4em; margin: 10px 0 0; }
.sch-ok { color: #14532D; font-weight: 600; }

.sch-login-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: var(--paper); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.sch-login-box small { display: block; color: var(--ink-soft); font-size: .8rem; }
.sch-login-box b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .5px; color: var(--night); word-break: break-all; }

/* ---------- school dashboard ---------- */
.sp { padding-top: 24px; padding-bottom: 48px; }
.sp-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.sp-head h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; line-height: 1.15; }
.sp-head p { margin: 2px 0 0; color: var(--ink-soft); }
.sp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.sp-card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: 0 4px 14px rgba(62, 43, 166, .06); min-width: 0; }
.sp-card h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 4px; }
.sp-card > p.muted { margin: 0 0 12px; font-size: .92rem; }
.sp-6 { grid-column: span 6; } .sp-12 { grid-column: span 12; } .sp-4 { grid-column: span 4; } .sp-8 { grid-column: span 8; }
.sp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-tile { background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(62, 43, 166, .06); }
.sp-tile b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--night); }
.sp-tile span { color: var(--ink-soft); font-size: .88rem; }
.sp-tile.ok b { color: #1D6B42; } .sp-tile.warn b { color: #A15C00; }
.sp-code { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--night); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.sp-code .k { font-size: .82rem; color: var(--on-dark-soft); display: block; }
.sp-code b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .5px; }
.sp-code > div { margin-right: auto; min-width: 0; }
.sp-code .url { white-space: nowrap; }
.cls-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cls-pick label { position: relative; }
.cls-pick input { position: absolute; opacity: 0; }
.cls-pick span { display: inline-block; min-width: 48px; text-align: center; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; background: var(--surface); }
.cls-pick input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.cls-pick input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.seg { align-self: flex-start; display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--teal); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: -3px; }
.sp-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sp-row .field { flex: 1 1 150px; }
.sp-hint { font-size: .85rem; color: var(--ink-soft); margin: 6px 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); padding: 8px 8px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.pill-ok { background: #DDF5E8; color: #14532D; } .pill-mid { background: #FFF1DC; color: #7A4A00; } .pill-low { background: #FDE4E1; color: #8E2318; } .pill-off { background: var(--paper-deep); color: var(--ink-soft); }
.sp-pay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.sp-amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--night); }
.sp-msg { margin-top: 10px; }
.sp-drawer { position: fixed; inset: 0; background: rgba(29, 24, 66, .45); display: flex; justify-content: flex-end; z-index: 60; }
.sp-drawer[hidden] { display: none; }
.sp-drawer > div { width: min(560px, 100%); background: var(--paper); height: 100%; overflow-y: auto; padding: 18px; }
.sp-drawer h2 { font-family: var(--font-display); margin: 0 0 10px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet-deep); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* teacher instruction sheet (printed from the dashboard) */
.sheet { display: none; }
@media print {
  body.print-sheet > *:not(.sheet) { display: none !important; }
  body.print-sheet .sheet { display: block; font-family: Arial, Helvetica, sans-serif; color: #1E1A3A; }
  .sheet h1 { font-size: 24px; margin: 0 0 6px; }
  .sheet .big { font-size: 30px; font-weight: 800; letter-spacing: 1px; border: 3px solid #5B43D6; border-radius: 12px; padding: 10px 16px; display: inline-block; margin: 8px 0; }
  .sheet ol { font-size: 16px; line-height: 1.6; }
  .sheet .tip { background: #FFF4E2; border-radius: 10px; padding: 10px 14px; font-size: 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet ol { list-style: decimal; padding-left: 24px; margin: 12px 0; }
  .sheet ol li { margin-bottom: 8px; }
  .sheet .logos { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #5B43D6; padding-bottom: 10px; margin-bottom: 14px; }
  .sheet .logos img { height: 44px; width: auto; }
  @page { margin: 16mm; }
}

/* ---------- student test ---------- */
.st-wrap { max-width: 720px; margin: 0 auto; padding: 22px 0 48px; }
.st-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(18px, 4vw, 30px); }
.st-card h1, .st-card h2 { font-family: var(--font-display); margin: 0 0 6px; line-height: 1.15; }
.st-card .field { margin-top: 12px; }
.st-big input, .st-big select { font-size: 1.15rem; padding: 12px 14px; }
.st-subjects { display: grid; gap: 12px; margin-top: 14px; }
.st-sub { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; }
.st-sub:hover:not([disabled]) { border-color: var(--violet); }
.st-sub[disabled] { opacity: .6; cursor: not-allowed; }
.st-sub i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper-deep); font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--violet-deep); flex: none; }
.st-sub b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.st-sub small { color: var(--ink-soft); }
.st-sub .pill { margin-left: auto; flex: none; }
.st-who { background: var(--paper); border-radius: 12px; padding: 10px 14px; margin: 10px 0 0; font-size: .95rem; }
.st-done { text-align: center; }
.st-done .tick { width: 74px; height: 74px; border-radius: 50%; background: #DDF5E8; color: #1D6B42; display: grid; place-items: center; margin: 0 auto 12px; }
.st-done .tick svg { width: 40px; height: 40px; }
.st-score { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.st-score span { background: var(--paper); border-radius: 12px; padding: 8px 14px; font-weight: 700; }
.st-saving { color: var(--ink-soft); font-weight: 600; }
.st-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; }
.st-top .brand span { font-size: 1.15rem; }
.st-top small { color: var(--ink-soft); text-align: right; }

/* ---------- principal report ---------- */
.rp-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; max-width: 900px; margin: 18px auto 0; padding: 0 var(--gutter); }
.rp-bar .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rp { max-width: 900px; margin: 12px auto 40px; padding: 0 var(--gutter); }
.rp-page { background: #fff; border-radius: 14px; padding: 28px 30px; margin-bottom: 18px; box-shadow: 0 4px 14px rgba(62, 43, 166, .06); color: #1E1A3A; font-family: var(--font-body); }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 3px solid var(--violet); padding-bottom: 14px; margin-bottom: 16px; }
.rp-head .l { display: flex; align-items: center; gap: 12px; }
.rp-head .l img { width: 46px; height: 50px; }
.rp-head .l b { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.rp-head .l small { color: var(--ink-soft); font-size: .85rem; }
.rp-head .r img { height: 34px; width: auto; }
.rp h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 4px; line-height: 1.2; }
.rp h3 { font-family: var(--font-display); font-size: 1.08rem; margin: 18px 0 8px; }
.rp p { margin: 0 0 8px; }
.rp-school { margin-bottom: 14px; }
.rp-school b { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1.15; }
.rp-school span { color: var(--ink-soft); font-size: .92rem; }
.rp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.rp-tiles div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.rp-tiles b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.rp-tiles span { font-size: .8rem; color: var(--ink-soft); }
.rp-heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .88rem; }
.rp-heat th { font-size: .74rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); text-align: left; padding: 4px 6px; font-weight: 700; }
.rp-heat td { padding: 7px 8px; border-radius: 6px; background: var(--paper); }
.rp-heat td.v { text-align: center; font-weight: 700; color: #fff; }
.rp-heat td.v small { display: block; font-weight: 600; font-size: .7rem; opacity: .9; }
.h-ok { background: #2E8B57 !important; } .h-mid { background: #E0A21F !important; } .h-low { background: #C0392B !important; } .h-none { background: #ECE4FB !important; color: var(--ink-soft) !important; }
.rp-cls { break-before: page; page-break-before: always; }
.rp-cls:first-of-type { break-before: auto; page-break-before: auto; }
.rp-sub-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 4px 0 10px; }
.rp-sub-head span { color: var(--ink-soft); font-size: .9rem; }
.rp-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.rp-box { background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.rp-box.warn { background: #FFF4E2; }
.rp-box ol, .rp-box ul { margin: 0; padding-left: 18px; }
.rp-box li { margin: 0 0 6px; line-height: 1.4; }
.rp-list { width: 100%; border-collapse: collapse; font-size: .82rem; }
.rp-list th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); padding: 4px 5px; border-bottom: 1.5px solid var(--line); }
.rp-list td { padding: 4px 5px; border-bottom: 1px solid #EEE8FB; }
.rp-list td.m { text-align: center; font-weight: 800; }
.mk-c { color: #2E8B57; } .mk-m { color: #C98A00; } .mk-n { color: #C0392B; }
.rp-cta { background: var(--night); color: #fff; border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.rp-cta h3 { color: #fff; margin: 0 0 6px; }
.rp-cta p { color: var(--on-dark-soft); margin: 0; font-size: .92rem; }
.rp-cta .logos { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px 12px; }
.rp-cta .logos img { height: 30px; width: auto; }
.rp-foot { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.rp-empty { background: #fff; border-radius: 14px; padding: 28px; text-align: center; }
.rp-pdf-holder { position: fixed; left: -10000px; top: 0; width: 733px; background: #fff; }
.rp-page.rp-pdf-page { box-shadow: none; border-radius: 0; margin: 0; padding: 0 2px 4px; display: flow-root; }
.rp-pdf-page .rp-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.rp-pdf-page .rp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-pdf-page .rp-head { padding-bottom: 10px; margin-bottom: 12px; }
.rp-pdf-page .rp-head .r img { height: 34px; }

@media (max-width: 860px) {
  .sch-hero-grid, .rp-two { grid-template-columns: minmax(0, 1fr); }
  .sp-6, .sp-4, .sp-8 { grid-column: span 12; }
  .sp-tiles, .rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sch-steps, .sch-price { grid-template-columns: minmax(0, 1fr); }
  .sch-login-box { grid-template-columns: minmax(0, 1fr); }
  .rp-page { padding: 18px 14px; }
  .rp-head .r img { height: 26px; }
  .rp-cta { grid-template-columns: minmax(0, 1fr); }
  .sp-pay { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .site-footer, .rp-bar, .wa-float { display: none !important; }
  body { background: #fff; }
  .rp { max-width: none; margin: 0; padding: 0; }
  .rp-page { box-shadow: none; border-radius: 0; padding: 0; margin: 0 0 12px; }
  .h-ok, .h-mid, .h-low, .stk i, .rp-cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.sch-hero .ai-badge { background: var(--teal-wash); border-color: #BFE3DE; color: var(--teal-deep); }
.sch-hero .ai-badge i { background: var(--teal); }
#book, #book-done { scroll-margin-top: 90px; }
@media (max-width: 420px) { .sp-code b { font-size: 1.02rem; } .sp-code { padding: 14px; } }
@media (max-width: 520px) { #st-school { display: none; } .st-top .brand span { font-size: 1rem; } }
@media (max-width: 640px) { .rp-pdf-page .rp-cta { grid-template-columns: minmax(0, 1fr) auto; } .rp-page.rp-pdf-page { padding: 0 2px 4px; } }
.sp-top-right { display: flex; gap: 10px; align-items: center; }
.tbl td b { white-space: nowrap; }
