/* ============================================================
   ParentsVoice — Design System CSS 2026
   Font: Syne (headings) + DM Sans (body)
   Palette: Deep Teal + Warm Amber + Soft Pearl
   ============================================================ */

:root {
  /* ── Colors ── */
  --clr-primary: #0f4c5c;
  --clr-primary-light: #1a7a93;
  --clr-primary-pale: #e0f3f8;
  --clr-accent: #f4a21e;
  --clr-accent-light: #fde9b5;
  --clr-success: #22c55e;
  --clr-danger: #ef4444;
  --clr-warning: #f59e0b;
  --clr-info: #3b82f6;

  /* ── Neutral ── */
  --clr-bg: #f8f7f4;
  --clr-surface: #ffffff;
  --clr-surface-2: #f2f0ec;
  --clr-border: #e8e4dd;
  --clr-text: #1a1917;
  --clr-text-muted: #6b6461;
  --clr-text-light: #a09a96;

  /* ── Gradients ── */
  --grad-hero: linear-gradient(135deg, #0f4c5c 0%, #1a7a93 50%, #0d3d4a 100%);
  --grad-card: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  --grad-accent: linear-gradient(135deg, #f4a21e, #e8892b);
  --grad-success: linear-gradient(135deg, #22c55e, #16a34a);

  /* ── Shadows ── */
  --shadow-xs: 0 1px 3px rgba(15,76,92,.06);
  --shadow-sm: 0 2px 8px rgba(15,76,92,.08), 0 1px 3px rgba(15,76,92,.05);
  --shadow-md: 0 4px 20px rgba(15,76,92,.10), 0 2px 8px rgba(15,76,92,.06);
  --shadow-lg: 0 8px 40px rgba(15,76,92,.12), 0 4px 16px rgba(15,76,92,.08);
  --shadow-xl: 0 20px 60px rgba(15,76,92,.16);

  /* ── Typography ── */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* ── Radii ── */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Layout ── */
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--clr-text-muted); }

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248,247,244,.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow .3s var(--ease-smooth);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clr-primary);
  font-weight: 600;
  white-space: nowrap;
}
.nav-brand strong { color: var(--clr-accent); }
.brand-icon { font-size: 1.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: var(--clr-primary);
  background: var(--clr-primary-pale);
}

.nav-dropdown { position: relative; }
.nav-avatar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  font-weight: 500;
  font-size: .9rem;
  transition: background .2s;
}
.nav-avatar:hover { background: #c8e9f3; }
.avatar-initials {
  width: 30px; height: 30px;
  background: var(--grad-hero);
  color: white;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-2);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s var(--ease-smooth);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--clr-text-muted);
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: var(--clr-surface-2); color: var(--clr-primary); }
.dropdown-divider { border-top: 1px solid var(--clr-border); margin: var(--space-2) 0; }
.text-danger { color: var(--clr-danger) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: transform .3s;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s var(--ease-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::before { opacity: .1; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--grad-hero);
  color: white;
  box-shadow: 0 2px 12px rgba(15,76,92,.25);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(15,76,92,.35); transform: translateY(-1px); }

.btn-accent {
  background: var(--grad-accent);
  color: white;
  box-shadow: 0 2px 12px rgba(244,162,30,.3);
}
.btn-accent:hover { box-shadow: 0 4px 20px rgba(244,162,30,.4); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}
.btn-ghost:hover { background: var(--clr-primary-pale); }

.btn-danger { background: var(--clr-danger); color: white; }
.btn-success { background: var(--grad-success); color: white; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; pointer-events: none; }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--space-2);
}
.form-label span.required { color: var(--clr-danger); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--clr-text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(15,76,92,.12);
}
.form-input.error { border-color: var(--clr-danger); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--clr-text-muted); margin-top: 4px; }

.input-group { position: relative; }
.input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}
.input-group .form-input { padding-left: 2.5rem; }

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: var(--space-6); }
.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
}

/* ─── Flash Messages ────────────────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 1rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 380px;
}
.flash {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid;
  box-shadow: var(--shadow-md);
  animation: slideIn .3s var(--ease-spring);
  background: var(--clr-surface);
}
.flash-success { border-color: var(--clr-success); }
.flash-success i { color: var(--clr-success); }
.flash-error { border-color: var(--clr-danger); }
.flash-error i { color: var(--clr-danger); }
.flash span { flex: 1; font-size: .9rem; }
.flash button { color: var(--clr-text-muted); font-size: 1.1rem; padding: 2px; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Hero Section ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 70% 50%, rgba(26,122,147,.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(244,162,30,.15) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 300px; height: 300px;
  background: rgba(244,162,30,.2);
  top: 10%; right: 20%;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  background: rgba(26,122,147,.3);
  bottom: 20%; left: 10%;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.hero-content { color: white; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  padding: .4rem 1rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255,255,255,.2);
  animation: fadeUp .6s var(--ease-smooth);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: fadeUp .7s var(--ease-smooth) .1s both;
}
.hero-title .accent { color: var(--clr-accent); }
.hero-text {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 500px;
  margin-bottom: var(--space-8);
  animation: fadeUp .7s var(--ease-smooth) .2s both;
  color: rgba(255,255,255,.9);
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  animation: fadeUp .7s var(--ease-smooth) .3s both;
}
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
  animation: fadeUp .7s var(--ease-smooth) .4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-accent);
  display: block;
}
.hero-stat-label { font-size: .8rem; opacity: .75; color: white; }

/* Hero Search Box */
.hero-search {
  animation: fadeUp .7s var(--ease-smooth) .5s both;
}
.search-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.search-card h3 { color: white; margin-bottom: var(--space-4); font-size: 1.3rem; }
.search-input-group {
  display: flex;
  gap: var(--space-2);
  background: white;
  border-radius: var(--radius-full);
  padding: .35rem .35rem .35rem 1.2rem;
  box-shadow: var(--shadow-lg);
}
.search-input-group input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: var(--font-body);
  background: transparent;
}
.quick-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.quick-filter {
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.15);
  color: white;
  font-size: .8rem;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .2s;
}
.quick-filter:hover { background: rgba(255,255,255,.25); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Sections ───────────────────────────────────────────────────────────────── */
.section { padding: var(--space-24) var(--space-6); }
.section-container { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-primary-light);
  background: var(--clr-primary-pale);
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.section-title { margin-bottom: var(--space-3); }
.section-subtitle { color: var(--clr-text-muted); max-width: 540px; margin: 0 auto; }

/* ─── School Card ────────────────────────────────────────────────────────────── */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}
.school-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease-smooth), box-shadow .25s;
}
.school-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.school-card-cover {
  height: 140px;
  background: var(--grad-hero);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}
.school-logo {
  width: 56px; height: 56px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 3px solid rgba(255,255,255,.5);
  position: absolute;
  bottom: -20px;
  left: var(--space-4);
  box-shadow: var(--shadow-md);
}
.school-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.3);
}
.school-card-body {
  padding: calc(var(--space-6) + 12px) var(--space-6) var(--space-6);
}
.school-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
}
.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--clr-accent);
  font-size: 1rem;
}
.rating-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-text);
  margin-left: var(--space-2);
}
.rating-count { font-size: .8rem; color: var(--clr-text-muted); }
.school-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.school-tag {
  padding: .2rem .6rem;
  background: var(--clr-surface-2);
  border-radius: var(--radius-full);
  font-size: .75rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ─── Star Rating Widget ────────────────────────────────────────────────────── */
.star-rating { display: flex; gap: 4px; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.6rem;
  color: #ddd;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--clr-accent); }
.star-rating label:hover { transform: scale(1.2); }

/* ─── Progress Bars ──────────────────────────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--clr-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-hero);
  border-radius: var(--radius-full);
  transition: width .8s var(--ease-smooth);
}
.progress-fill.accent { background: var(--grad-accent); }

/* ─── Badges & Chips ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}
.badge-primary { background: var(--clr-primary-pale); color: var(--clr-primary); }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-muted   { background: var(--clr-surface-2); color: var(--clr-text-muted); }

/* ─── Stats Row ──────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon-blue  { background: #dbeafe; color: #2563eb; }
.stat-icon-teal  { background: var(--clr-primary-pale); color: var(--clr-primary); }
.stat-icon-amber { background: var(--clr-accent-light); color: #b45309; }
.stat-icon-green { background: #dcfce7; color: #16a34a; }
.stat-icon-red   { background: #fee2e2; color: #dc2626; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1;
}
.stat-label { font-size: .82rem; color: var(--clr-text-muted); margin-top: 2px; }

/* ─── Tables ─────────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--clr-surface-2);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-text-muted);
  border-bottom: 1px solid var(--clr-border);
}
tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--clr-surface-2); }

/* ─── Multi-Step Form ────────────────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-12);
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 140px;
}
.step-bubble {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--clr-border);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  transition: background .3s, color .3s;
  z-index: 1;
}
.step-bubble.active { background: var(--clr-primary); color: white; }
.step-bubble.done { background: var(--clr-success); color: white; }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--clr-border);
  transition: background .3s;
}
.step-connector.done { background: var(--clr-success); }
.step-label {
  position: absolute;
  top: 44px;
  font-size: .72rem;
  color: var(--clr-text-muted);
  text-align: center;
  white-space: nowrap;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}
.auth-visual {
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
}
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) var(--space-16);
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.auth-form-side h2 { margin-bottom: var(--space-2); }
.auth-form-side .subtitle { margin-bottom: var(--space-8); }

/* ─── Dashboard Layout ───────────────────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}
.sidebar {
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  padding: var(--space-6) 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-section { margin-bottom: var(--space-6); }
.sidebar-heading {
  padding: 0 var(--space-6) var(--space-2);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-text-light);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: .65rem var(--space-6);
  color: var(--clr-text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.sidebar-link i { font-size: 1.1rem; }
.sidebar-link:hover { background: var(--clr-surface-2); color: var(--clr-primary); }
.sidebar-link.active {
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  border-left: 3px solid var(--clr-primary);
}

.dashboard-content {
  padding: var(--space-8);
  overflow-y: auto;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}
.page-header h2 { font-size: 1.8rem; }

/* ─── Admin Panel ────────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}
.admin-sidebar {
  background: var(--clr-primary);
  padding: var(--space-6) 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: .7rem var(--space-6);
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background: rgba(255,255,255,.1);
  color: white;
}
.admin-sidebar-link.active { border-left: 3px solid var(--clr-accent); }
.admin-sidebar-heading {
  padding: var(--space-3) var(--space-6);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}
.admin-content { padding: var(--space-8); background: var(--clr-bg); }

/* ─── Charts ─────────────────────────────────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 260px;
}

/* ─── Rating Breakdown ───────────────────────────────────────────────────────── */
.rating-breakdown { display: flex; flex-direction: column; gap: var(--space-3); }
.rating-row-item {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: var(--space-3);
}
.rating-label { font-size: .85rem; color: var(--clr-text-muted); }
.rating-value { font-weight: 700; font-size: .9rem; text-align: right; color: var(--clr-primary); }

/* ─── OTP Input ──────────────────────────────────────────────────────────────── */
.otp-inputs {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}
.otp-input {
  width: 52px; height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.otp-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(15,76,92,.12);
}

/* ─── Features Section ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}
.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform .25s var(--ease-smooth), box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--clr-primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  color: var(--clr-primary);
}
.feature-card h4 { margin-bottom: var(--space-2); }
.feature-card p { font-size: .9rem; }

/* ─── Survey Card ────────────────────────────────────────────────────────────── */
.survey-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  transition: transform .2s, box-shadow .2s;
}
.survey-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.survey-icon {
  width: 60px; height: 60px;
  background: var(--grad-hero);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.survey-info { flex: 1; }
.survey-info h4 { margin-bottom: 4px; }
.survey-meta { font-size: .82rem; color: var(--clr-text-muted); }

/* ─── Back to Top ────────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--clr-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease-smooth);
  z-index: 99;
  font-size: 1.1rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--clr-primary-light); transform: translateY(-3px); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: #0a1f28;
  color: rgba(255,255,255,.8);
  padding: var(--space-16) 0 var(--space-6);
}
.footer-container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-brand .nav-brand { color: white; margin-bottom: var(--space-4); }
.footer-brand p { font-size: .88rem; opacity: .7; margin-bottom: var(--space-4); }
.social-links { display: flex; gap: var(--space-3); }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--clr-primary); color: white; }
.footer-links h4 { color: white; margin-bottom: var(--space-4); font-size: .9rem; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { font-size: .86rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: var(--clr-accent); }
.footer-newsletter h4 { color: white; margin-bottom: var(--space-2); font-size: .9rem; }
.footer-newsletter p { font-size: .85rem; opacity: .7; margin-bottom: var(--space-3); }
.newsletter-form { display: flex; flex-direction: column; gap: var(--space-2); }
.newsletter-form .form-input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: white; }
.newsletter-form .form-input::placeholder { color: rgba(255,255,255,.4); }
.footer-note { font-size: .77rem; opacity: .5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  opacity: .6;
}

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-6); }
.main-content { padding-top: var(--nav-h); }
.page-wrapper { padding: var(--space-12) var(--space-6); max-width: var(--max-w); margin: 0 auto; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.hidden { display: none !important; }
.muted { color: var(--clr-text-muted); }
.small { font-size: .85rem; }
.divider { border: none; border-top: 1px solid var(--clr-border); margin: var(--space-6) 0; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: var(--space-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout,
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar,
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links { 
    display: none; 
    flex-direction: column; 
    position: fixed; 
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff; 
    padding: 1.5rem; 
    z-index: 9999; 
    gap: .5rem; 
    overflow-y: auto; 
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    border-top: 2px solid var(--clr-primary);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { 
    padding: .85rem 1rem; 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--clr-text);
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }
  .nav-links .btn { width: 100%; text-align: center; margin-top: .5rem; }
  .hamburger { display: flex; z-index: 10000; position: relative; }
  .hero-container { grid-template-columns: 1fr; }
  .hero-search { display: none; }
  .hero-stats { gap: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .schools-grid { grid-template-columns: 1fr; }
  .page-wrapper { padding: var(--space-6); }
  .dashboard-content,
  .admin-content { padding: var(--space-4); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .otp-inputs { gap: var(--space-2); }
  .otp-input { width: 44px; height: 52px; font-size: 1.3rem; }
}


/* ── MSG91 OTP Widget — force above all page elements ─────────────────────── */
body > div:last-of-type,
.msg91-widget,
[class*="otp-widget"],
[class*="msg91"],
[id*="msg91"],
[class*="widget-overlay"],
[class*="otp-overlay"],
.overlay,
.modal-overlay {
  z-index: 999999 !important;
}
/* Prevent body overflow hidden from blocking fixed popups */
body.otp-open {
  overflow: visible !important;
}


/**** Logo CSS ******/
img.pv-logo {
    max-width: 225px;
}
@media (max-width: 768px) {
    .nav-links { min-height: 360px; height: 100%; padding: 1rem; gap: 0;}
}
    
    
    