/* ==========================================================================
   Talk Academy Mongolia — English lessons for kids, Mongolian-themed site
   ========================================================================== */

:root {
  /* Academic palette v2 (2026-08-14, refined after research into real
     university branding — Yale Blue #00356B, Oxford Blue #002147, Harvard
     Crimson #A51C30 — and educational-website color-psychology guidance:
     navy for trust/focus, a crimson+gold accent pair used sparingly as trim
     (not large fills), clean near-white/white paging instead of any warm
     beige. Variable names kept as-is (--red, --gold, --cream...) — only the
     values changed, so no usage sites needed touching. */
  --navy: #133a63;
  --navy-deep: #0c2745;
  --blue: #2c5a8c;
  --blue-light: #eef1f6;
  --red: #8f1d3a;        /* academic crimson — was burgundy, before that a bright red */
  --gold: #b8912c;       /* antique gold — was muted brass, before that a bright gold */
  --gold-light: #f0e6cc; /* soft gold trim tint, used sparingly for badges/highlights only */
  --cream: #f9fafb;      /* near-white page background — was beige, then cool gray; user flagged beige explicitly */
  --cream-deep: #e7eaee; /* light cool gray — alternating section bands / borders */
  --green: #1f6b45;
  --ink: #1c2230;
  --ink-soft: #4d5568;
  --white: #ffffff;

  --font-head: "Rubik", sans-serif;
  --font-body: "Rubik", sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 2px 10px rgba(19, 58, 99, 0.08);
  --shadow-m: 0 10px 30px rgba(19, 58, 99, 0.14);
  --shadow-gold: 0 10px 26px rgba(184, 145, 44, 0.32);

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin: 0 0 .5em;
  line-height: 1.25;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--cream-deep); } /* light gray banding against the near-white body — body and --white are now close in value */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .04em;
  font-size: .85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- decorative ulzii pattern divider ---------- */
.ulzii-divider {
  height: 26px;
  width: 100%;
  background-image: repeating-linear-gradient(135deg, var(--gold) 0 10px, transparent 10px 20px),
                     repeating-linear-gradient(45deg, var(--red) 0 10px, transparent 10px 20px);
  background-size: 100% 13px;
  background-repeat: repeat-x;
  background-position: top, bottom;
  opacity: .85;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(143, 29, 58, .35);
}
.btn-primary:hover { background: #6b1729; }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: #96752a; }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--navy-deep); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; color: var(--ink-soft); }
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: .93rem;
  color: var(--navy);
  padding: 10px 15px;
  border-radius: var(--radius-s);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--cream-deep); color: var(--navy-deep); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy-deep);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: .4em;
}
.hero h1 .accent { color: var(--red); }
.hero-lede { font-size: 1.12rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-s);
}
.hero-art { position: relative; }

/* ---------- why-us cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 28px 22px;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--cream-deep);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light);
  margin-bottom: 16px;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 1.08rem; }
.feature-card p { font-size: .93rem; margin-bottom: 0; }

/* ---------- levels ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px 24px;
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow-s);
}
.level-card:nth-child(2) { border-top-color: var(--blue); }
.level-card:nth-child(3) { border-top-color: var(--red); }
.level-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.level-card h3 { font-size: 1.2rem; }

/* ---------- pricing ---------- */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pricing-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: 34px;
}
.pricing-group { margin-bottom: 56px; }
.pricing-group h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.pricing-group .group-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: 28px;
}
.price-card {
  background: var(--white);
  border: 2px solid var(--cream-deep);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold); }
.price-card.featured { border-color: var(--red); }
.price-badge {
  position: absolute;
  top: -14px; right: 22px;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-s);
}
.price-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.price-card .price-sub { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.price-amount {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--navy-deep);
  margin-bottom: 4px;
}
.price-amount span { font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.price-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 20px; }
.price-features { margin: 0 0 22px; }
.price-features li {
  font-size: .9rem;
  color: var(--ink);
  padding: 5px 0 5px 26px;
  position: relative;
}
.price-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 5px;
  color: var(--green);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* ---------- wizard ---------- */
.wizard-shell {
  background: var(--navy-deep);
  border-radius: var(--radius-l);
  padding: 46px 40px 40px;
  color: var(--white);
  box-shadow: var(--shadow-m);
  background-image: radial-gradient(circle at 100% 0%, rgba(184,145,44,.25), transparent 55%),
                     radial-gradient(circle at 0% 100%, rgba(44,90,140,.35), transparent 55%);
}
.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.progress-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  font-weight: 700;
  font-size: .85rem;
  border: 2px solid rgba(255,255,255,.25);
  position: relative;
}
.progress-dot.active { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.progress-dot.done { background: var(--green); color: var(--white); border-color: var(--green); }
.wizard-breadcrumb {
  text-align: center;
  font-size: .88rem;
  color: var(--gold-light);
  margin-bottom: 26px;
  min-height: 1.2em;
}
.wizard-step { display: none; animation: fadein .25s ease; }
.wizard-step.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to {opacity: 1; transform: translateY(0);} }
.wizard-step h3 {
  color: var(--white);
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 26px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.choice-card {
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.16);
  border-radius: var(--radius-m);
  padding: 22px 18px;
  text-align: center;
  color: var(--white);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.choice-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.choice-card.selected { border-color: var(--gold); background: rgba(184,145,44,.18); }
.choice-card .choice-icon { font-size: 2rem; margin-bottom: 10px; }
.choice-card .choice-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.choice-card .choice-sub { font-size: .82rem; color: var(--gold-light); }
.wizard-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.wizard-actions .btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.wizard-actions .btn-ghost:hover { border-color: var(--white); }

/* result step */
.result-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-m);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-m);
}
.result-card .result-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .8rem;
  margin-bottom: 14px;
}
.result-rows { text-align: left; margin: 22px 0; border-top: 1px dashed var(--cream-deep); }
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--cream-deep);
  font-size: .95rem;
}
.result-row span:first-child { color: var(--ink-soft); }
.result-row span:last-child { font-weight: 700; color: var(--navy-deep); }
.result-price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--red);
  margin: 14px 0 2px;
}
.result-price span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* ---------- teachers ---------- */
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  text-align: center;
  padding-bottom: 24px;
  border: 1px solid var(--cream-deep);
}
.teacher-avatar {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.teacher-avatar svg { width: 84px; height: 84px; }
.teacher-card h3 { margin: 18px 0 2px; font-size: 1.05rem; }
.teacher-role { color: var(--gold); background: var(--navy-deep); display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; margin-bottom: 10px; }
.teacher-card p { font-size: .88rem; padding: 0 20px; margin-bottom: 0; }
.teachers-note {
  text-align: center;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: 30px;
}

/* ---------- how it works ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.step-item { text-align: center; padding: 0 8px; }
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  box-shadow: var(--shadow-m);
}
.step-item h3 { font-size: 1rem; }
.step-item p { font-size: .87rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-s);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .plus { font-size: 1.4rem; color: var(--gold); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
}
.faq-a p { font-size: .92rem; margin: 0 0 18px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 32px;
  box-shadow: var(--shadow-s);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--navy-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--cream-deep);
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-msg {
  display: none;
  background: #e3ede7;
  color: #1f6b45;
  border: 1px solid #b9d2c4;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-size: .9rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.form-msg.show { display: block; }
.contact-info-card {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 32px;
  height: 100%;
}
.contact-info-card h3 { color: var(--white); }
.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: .95rem;
}
.contact-line strong { display: block; color: var(--gold-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px;}
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.social-row a:hover { background: var(--gold); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand span { font-family: var(--font-head); font-size: 1.15rem; color: var(--white); font-weight: 700; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 9px; font-size: .9rem; }
.site-footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
}

/* ---------- utility / reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Registration / booking flow (register.html) — reuses .wizard-shell,
   .choice-card, .progress-dot, .field, .btn from above.
   ========================================================================== */
.flow-page { padding: 46px 0 90px; min-height: 70vh; }
.flow-shell-outer { max-width: 720px; margin: 0 auto; }
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 6px;
}
.otp-inputs input {
  width: 46px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: var(--radius-s);
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.otp-inputs input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.15); }
.dev-otp-banner {
  max-width: 460px;
  margin: 0 auto 22px;
  background: rgba(184,145,44,.16);
  border: 1.5px dashed var(--gold);
  color: var(--gold-light);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-size: .85rem;
  text-align: center;
}
.dev-otp-banner strong { color: var(--white); font-size: 1.1rem; letter-spacing: .08em; }
.flow-field-wrap { max-width: 380px; margin: 0 auto; }
.flow-field-wrap .field label { color: var(--gold-light); }
.wizard-shell .field input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  color: var(--white);
}
.wizard-shell .field input::placeholder { color: rgba(255,255,255,.4); }
.wizard-shell .field input:focus { border-color: var(--gold); background: rgba(255,255,255,.15); }
.wizard-shell .field label { color: var(--gold-light); font-size: .82rem; }
.form-error {
  max-width: 420px;
  margin: 0 auto 16px;
  background: rgba(143,29,58,.22);
  border: 1px solid var(--red);
  color: #ffd9d9;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-size: .86rem;
  text-align: center;
  display: none;
}
.form-error.show { display: block; }
.product-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.product-pick-card {
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.16);
  border-radius: var(--radius-m);
  padding: 18px;
  text-align: left;
  color: var(--white);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.product-pick-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.product-pick-card.selected { border-color: var(--gold); background: rgba(184,145,44,.18); }
.product-pick-card .ppc-title { font-weight: 700; margin-bottom: 6px; }
.product-pick-card .ppc-price { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.product-pick-card .ppc-meta { font-size: .8rem; color: var(--gold-light); margin-top: 4px; }
.slot-hint {
  text-align: center;
  color: var(--gold-light);
  font-size: .9rem;
  margin-bottom: 20px;
}
.slot-hint b { color: var(--white); }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}
.slot-card {
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.16);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  color: var(--white);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.slot-card:hover { border-color: var(--gold); }
.slot-card.selected { border-color: var(--gold); background: rgba(184,145,44,.2); }
.slot-card.full { opacity: .4; cursor: not-allowed; }
.slot-card .slot-day { font-weight: 700; font-size: .95rem; }
.slot-card .slot-time { font-size: .85rem; color: var(--gold-light); margin: 2px 0; }
.slot-card .slot-meta { font-size: .78rem; color: rgba(255,255,255,.65); }
.flow-summary { text-align: center; }
.flow-links { text-align: center; margin-top: 18px; font-size: .88rem; }
.flow-links a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Admin dashboard (admin.html)
   ========================================================================== */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  padding: 20px;
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-m);
}
.admin-login-card h1 { font-size: 1.3rem; text-align: center; margin-bottom: 6px; }
.admin-login-card .eyebrow { display: block; text-align: center; }
.admin-shell { display: none; min-height: 100vh; }
.admin-shell.show { display: flex; }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy-deep);
  color: var(--white);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.admin-sidebar .brand-name { color: var(--white); font-size: 1.05rem; }
.admin-sidebar .brand-name small { color: rgba(255,255,255,.55); }
.admin-nav { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav button {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: .92rem;
}
.admin-nav button:hover { background: rgba(255,255,255,.08); }
.admin-nav button.active { background: var(--gold); color: var(--navy-deep); }
.admin-logout { color: rgba(255,255,255,.6); font-size: .85rem; background: none; border: none; text-align: left; padding: 10px 14px; }
.admin-main { flex: 1; padding: 34px 40px; max-width: 1180px; }
.admin-main h2 { font-size: 1.5rem; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.admin-stat {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--cream-deep);
}
.admin-stat .stat-num { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy-deep); font-weight: 800; }
.admin-stat .stat-label { font-size: .82rem; color: var(--ink-soft); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar input[type="search"] {
  padding: 10px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--cream-deep);
  min-width: 220px;
}
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  border: 1px solid var(--cream-deep);
  overflow-x: auto;
}
table.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.admin-table th, table.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--cream-deep);
  white-space: nowrap;
}
table.admin-table th { background: var(--cream); color: var(--navy-deep); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table tr:hover td { background: var(--blue-light); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-green { background: #e3ede7; color: #1f6b45; }
.badge-red { background: #f1e2e5; color: #8f1d3a; }
.badge-gold { background: var(--gold-light); color: #7a5c1e; }
.row-actions { display: flex; gap: 8px; }
.row-actions button { background: none; border: none; color: var(--blue); font-weight: 700; font-size: .85rem; padding: 2px 4px; }
.row-actions button.danger { color: var(--red); }
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(19,58,99,.55);
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-m);
}
.modal-card h3 { margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--navy-deep);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-m);
  font-size: .9rem;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }

/* ---------- readable prose (privacy/terms-style pages) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.7em; margin-bottom: .5em; }
.prose p { font-size: .96rem; line-height: 1.7; }
.prose a { color: var(--red); text-decoration: underline; }

/* ---------- QPay payment widget ---------- */
.qpay-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px 0; }
.qpay-qr { display: flex; justify-content: center; margin: 14px 0; }
.qpay-qr img { width: 220px; height: 220px; border-radius: var(--radius-s); border: 1px solid var(--cream-deep); background: var(--white); padding: 10px; }
.qpay-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ---------- enrollment cards (admin Захиалгууд panel) ---------- */
.enrollment-card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.enrollment-card.cancelled { opacity: .6; }
.enrollment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-deep);
}
.enrollment-head h4 { margin: 0 0 4px; font-size: 1.05rem; }
.enrollment-head .meta { font-size: .82rem; color: var(--ink-soft); }
.enrollment-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.enrollment-slots span {
  background: var(--blue-light);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}
.payment-mini-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.payment-mini-table th { text-align: left; color: var(--ink-soft); font-weight: 600; font-size: .74rem; text-transform: uppercase; padding: 4px 8px 6px; }
.payment-mini-table td { padding: 6px 8px; border-top: 1px solid var(--cream-deep); }
.enrollment-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px 22px;
    border-bottom: 3px solid var(--gold);
    display: none;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--cream-deep); }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: block; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .wizard-shell { padding: 32px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .admin-shell.show { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; align-items: center; padding: 14px 18px; }
  .admin-nav { flex-direction: row; margin-top: 0; overflow-x: auto; }
  .admin-logout { margin-left: auto; }
  .admin-main { padding: 22px 18px; }
  .admin-stat-row { grid-template-columns: repeat(2, 1fr); }
  .field-row-2 { grid-template-columns: 1fr; }
  .otp-inputs input { width: 38px; height: 48px; font-size: 1.15rem; }
}
