:root {
  --navy: #1e3a5f;
  --navy-hover: #16294a;
  --gold: #b8860b;
  --gold-light: #e8b84b;
  --cream: #fefcf8;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --amber-bg: #fffbeb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--cream);
  color: var(--gray-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Layout ────────────────────────────────────── */
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 16px 80px; }

/* ── Header ────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 48px 20px 40px;
}
.site-header .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.site-header h1 {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.site-header .subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}
.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gold);
  color: white;
  box-shadow: 0 2px 8px rgba(184,134,11,0.35);
}
.btn-primary:hover { background: #9a7009; box-shadow: 0 4px 12px rgba(184,134,11,0.4); }
.btn-navy {
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-navy:hover { background: var(--navy-hover); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }
.btn-full { width: 100%; }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #b91c1c; }

/* ── Cards ─────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .icon {
  width: 28px;
  height: 28px;
  background: var(--amber-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Divider ───────────────────────────────────── */
.divider { height: 1px; background: var(--gray-200); margin: 20px 0; }

/* ── Section headers ───────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* ── Lists ─────────────────────────────────────── */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Progress stepper ──────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0 24px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-500);
  flex-shrink: 0;
}
.step.active .step-num { background: var(--navy); color: white; }
.step.done .step-num { background: var(--green); color: white; }
.step-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.step.active .step-label { color: var(--navy); font-weight: 600; }
.step.done .step-label { color: var(--green); }
.step-connector {
  width: 32px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 4px;
}
.step-connector.done { background: var(--green); }

/* ── Form ──────────────────────────────────────── */
.form-section { margin-bottom: 24px; }
.form-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field label .required { color: var(--red); margin-left: 2px; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=number],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}
.field input.error,
.field select.error,
.field textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field .hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 5px;
  line-height: 1.4;
}
.field .error-msg {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.field .error-msg.visible { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Radio/checkbox groups */
.radio-group, .check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-option, .check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio-option:has(input:checked),
.check-option:has(input:checked) {
  background: #f0f5fc;
  border-color: var(--navy);
}
.radio-option input, .check-option input {
  width: auto !important;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
}
.radio-option .opt-label, .check-option .opt-label {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

/* Disclaimer */
.disclaimer-box {
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 20px;
}
.disclaimer-box strong { color: var(--gray-900); }

.consent-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
}
.consent-check:has(input:checked) { border-color: var(--navy); background: #f0f5fc; }
.consent-check input { width: auto !important; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); }
.consent-check span { font-size: 13px; color: var(--gray-700); line-height: 1.5; }

/* ── Alert / Toast ─────────────────────────────── */
.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.alert-error { background: var(--red-bg); border: 1px solid #fca5a5; color: #991b1b; }
.alert-success { background: var(--green-bg); border: 1px solid #86efac; color: #166534; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Slot grid ─────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 500px) { .slots-grid { grid-template-columns: 1fr 1fr 1fr; } }

.slot-btn {
  padding: 14px 8px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.slot-btn:hover { border-color: var(--navy); background: #f0f5fc; }
.slot-btn.selected { border-color: var(--navy); background: var(--navy); color: white; }
.slot-btn .slot-date { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.slot-btn .slot-time { font-size: 14px; font-weight: 700; }
.slot-btn .slot-dur { font-size: 11px; margin-top: 2px; opacity: 0.7; }

/* ── Sticky footer CTA (mobile) ────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: white;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  z-index: 100;
}
@media (min-width: 640px) { .sticky-cta { display: none; } }

/* ── Compensation banner ───────────────────────── */
.comp-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2d5491 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comp-item { display: flex; align-items: center; gap: 12px; }
.comp-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.comp-item .label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
.comp-item .value { font-size: 16px; font-weight: 700; }

/* ── Admin: Table ──────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}
thead th {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--gray-100); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }
tbody td { padding: 12px 14px; color: var(--gray-700); vertical-align: top; }
tbody td strong { color: var(--gray-900); font-weight: 600; }

/* ── Admin: Stats ──────────────────────────────── */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .stat-num { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ── Admin: Tabs ───────────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--gray-100); border-radius: var(--radius); padding: 4px; margin-bottom: 20px; }
.tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn.active { background: white; color: var(--navy); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Admin: Nav ────────────────────────────────── */
.admin-nav {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.admin-nav .logo { font-size: 15px; font-weight: 700; color: white; }
.admin-nav .logo span { color: var(--gold-light); }

/* ── Confirmation ──────────────────────────────── */
.success-hero {
  text-align: center;
  padding: 40px 20px 32px;
}
.success-icon {
  width: 72px; height: 72px;
  background: var(--green-bg);
  border: 3px solid #86efac;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}
.success-hero h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.success-hero p { font-size: 15px; color: var(--gray-500); }

/* ── Tag / Pill ────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-blue { background: #eff6ff; color: #1d4ed8; }
.tag-gray { background: var(--gray-100); color: var(--gray-700); }

/* ── Util ──────────────────────────────────────── */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--gray-500); }
.hidden { display: none !important; }
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 400px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
