/* ============================================================
   EduPolicy — Shared Stylesheet
   Single source of truth for all client pages.
   Brand colors are injected via inline CSS custom properties.
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

/* --- Header --- */
header {
  background: var(--brand);
  color: white;
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--accent);
  opacity: 0.12;
  border-radius: 50%;
}
header::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 150px; height: 150px;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 50%;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.meta {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* --- Navigation --- */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: var(--accent);
}

/* --- Container --- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* --- Intro Box --- */
.intro-box {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --- Sections --- */
.section {
  margin-bottom: 40px;
}
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--brand);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2 .num {
  background: var(--accent);
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section p { color: #374151; margin-bottom: 12px; }
.section ul { padding-left: 20px; color: #374151; }
.section ul li { margin-bottom: 8px; }

/* --- Contact Box --- */
.contact-box {
  background: var(--brand);
  color: white;
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 48px;
}
.contact-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent);
}
.contact-box a { color: #93c5fd; }

/* --- Footer --- */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   About Page — Mission & Stats
   ============================================================ */
.mission {
  background: var(--brand);
  color: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
}
.mission h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.mission p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat {
  background: white;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat .number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--brand);
  font-weight: 700;
}
.stat .label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   Data Deletion Page — Form & UI
   ============================================================ */
.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.warning-box strong {
  color: #c2410c;
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.warning-box p { color: #7c2d12; font-size: 0.9rem; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.info-card .icon { font-size: 1.4rem; margin-bottom: 8px; }
.info-card h4 { font-size: 0.875rem; color: var(--brand); font-weight: 600; margin-bottom: 4px; }
.info-card p { font-size: 0.8rem; color: var(--muted); }

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 32px;
}
.form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--brand);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,60,94,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }

.deletion-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.type-option { position: relative; }
.type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}
.type-option label {
  display: block;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.type-option label .type-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.type-option label .type-desc {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}
.type-option input[type="radio"]:checked + label {
  border-color: var(--brand);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(26,60,94,0.08);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--danger);
  cursor: pointer;
}
.checkbox-group label {
  font-size: 0.875rem;
  color: #7f1d1d;
  cursor: pointer;
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 24px;
  letter-spacing: 0.02em;
}
.submit-btn:hover { background: #b91c1c; }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.success-card {
  display: none;
  background: white;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  margin-bottom: 32px;
}
.success-card .check { font-size: 3rem; margin-bottom: 16px; }
.success-card h2 {
  font-family: 'Playfair Display', serif;
  color: var(--success);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.success-card p { color: var(--muted); margin-bottom: 8px; }
.success-card .ref {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
  background: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
}

.process-steps { margin-bottom: 36px; }
.process-steps h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brand);
  margin-bottom: 16px;
}
.step {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.step .step-num {
  background: var(--brand);
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.step .step-text strong { display: block; font-size: 0.9rem; color: var(--text); }
.step .step-text span { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 520px) {
  .info-grid { grid-template-columns: 1fr; }
  .deletion-type { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
@media (max-width: 500px) {
  .stats { grid-template-columns: 1fr; }
}
