/* Design tokens copied from modusprotect.com so this booking flow matches the main site. */
:root {
  --ink: #0d1114;
  --charcoal: #151b1f;
  --slate: #20282e;
  --steel: #7d888d;
  --sand: #e2b373;
  --light: #f4f1ea;
  --muted: #c8c8c8;
  --white: #ffffff;
  --danger: #9b3a32;
  --success: #4a9b5e;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--light);
  background: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 20, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header.scrolled { background: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1.5rem;
}

.brand img { max-width: 260px; width: 100%; height: auto; }

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

nav a:hover { color: var(--white); }

.menu-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 7px 10px; transition: 0.25s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-inner { position: relative; }
  nav {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(21, 27, 31, 0.98);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s;
    padding: 0;
  }
  nav.open { max-height: 520px; padding: 1rem; }
  nav a { padding: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  body.menu-open { overflow: hidden; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s ease;
  background: none;
}

.button-primary { background: var(--sand); color: #15110a; }
.button-primary:hover { filter: brightness(1.08); }
.button-primary:disabled { background: var(--steel); color: #15110a; cursor: not-allowed; }

.button-outline { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.button-outline:hover { border-color: var(--sand); color: var(--sand); }

section { padding: 5rem 1.25rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.contact { background: #0a0d0f; }
.split-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split-grid { grid-template-columns: 1fr; } }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-header, .cta-inner { align-items: start; flex-direction: column; }

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.section-header p { max-width: 560px; margin: 0; color: var(--muted); }

.eyebrow {
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.8rem; color: var(--white); line-height: 1.12; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  min-height: 100%;
}

.class-card { display: flex; flex-direction: column; gap: 1rem; }
.class-card p.desc { color: var(--muted); margin: 0; }

.price-tag {
  color: var(--sand);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offering {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.meeting-list { list-style: none; margin: 0 0 1rem; padding: 0; color: var(--light); font-size: 0.92rem; }
.meeting-list li { padding: 0.35rem 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.meeting-list li:last-child { border-bottom: none; }

.seats-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  background: rgba(226, 179, 115, 0.12);
  color: var(--sand);
}
.seats-badge.full { background: rgba(155, 58, 50, 0.15); color: #d98077; }

form.register-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #101519;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sand); }

label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); display: block; margin-bottom: 0.3rem; }

.required-mark { color: var(--danger); }

.form-error {
  background: rgba(155, 58, 50, 0.15);
  border: 1px solid var(--danger);
  color: #f2c9c5;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-success {
  background: rgba(74, 155, 94, 0.12);
  border: 1px solid var(--success);
  color: #bfe8c9;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-simple { padding: 4rem 1.25rem 2rem; }
.hero-simple .section-inner { text-align: left; }

footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--steel);
  background: #080a0c;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.admin-table th { color: var(--muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }

.meeting-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
@media (max-width: 700px) { .meeting-row { grid-template-columns: 1fr 1fr; } }

.shipping-option-row { grid-template-columns: 2fr 1fr auto; }
@media (max-width: 700px) { .shipping-option-row { grid-template-columns: 1fr 1fr auto; } }

.small-button {
  background: var(--slate);
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  cursor: pointer;
}
.small-button:hover { border-color: var(--sand); color: var(--sand); }
.small-button.danger:hover { border-color: var(--danger); color: #d98077; }

.status-pill { font-size: 0.72rem; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 3px; }
.status-pill.scheduled { background: rgba(74,155,94,0.15); color: #bfe8c9; }
.status-pill.cancelled { background: rgba(155,58,50,0.15); color: #d98077; }

.report-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }

.calendar-grid .cal-weekdays, .calendar-grid .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.calendar-grid .cal-weekdays {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.calendar-grid .cal-day {
  padding: 0.6rem 0;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}
.calendar-grid .cal-day.empty { border: none; }
.calendar-grid .cal-day.disabled { color: var(--steel); opacity: 0.4; }
.calendar-grid .cal-day.has-slots {
  background: rgba(226,179,115,0.12);
  color: var(--sand);
  font-weight: bold;
  cursor: pointer;
}
.calendar-grid .cal-day.has-slots:hover { background: rgba(226,179,115,0.25); }

.sched-cal-grid .sched-cal-weekdays, .sched-cal-grid .sched-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.sched-cal-grid .sched-cal-weekdays {
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sched-cal-day {
  min-height: 96px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.3rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}
.sched-cal-day.empty { border: none; }
.sched-cal-day.clickable { cursor: pointer; }
.sched-cal-day.clickable:hover { background: rgba(226,179,115,0.06); }
.sched-cal-day-num { color: var(--muted); font-size: 0.75rem; }
.sched-cal-day-events { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sched-chip {
  display: block;
  font-size: 0.7rem;
  line-height: 1.3;
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-chip.fill-none { background: rgba(255,255,255,0.08); color: var(--light); }
.sched-chip.fill-partial { background: rgba(74,144,217,0.28); color: #bcdcff; }
.sched-chip.fill-full { background: rgba(74,155,94,0.28); color: #bfe8c9; }
.sched-chip:hover { filter: brightness(1.2); }

.sched-legend { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.sched-legend-item { display: flex; align-items: center; gap: 0.4rem; }
.sched-legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sched-legend-swatch.fill-none { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); }
.sched-legend-swatch.fill-partial { background: rgba(74,144,217,0.6); }
.sched-legend-swatch.fill-full { background: rgba(74,155,94,0.6); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-dialog {
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 420px;
  width: 90%;
}

@media print {
  header, footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card, section { background: #fff; border-color: #ccc; }
  .admin-table th, .admin-table td { color: #000; border-color: #ccc; }
  .status-pill { color: #000 !important; background: none !important; border: 1px solid #999; }
}

.rte-toolbar { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.rte-editor {
  min-height: 100px;
  padding: 0.85rem 1rem;
  background: #101519;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  overflow-y: auto;
}
.rte-editor:focus { outline: none; border-color: var(--sand); }
.rte-editor ul, .rte-editor ol { margin: 0.5em 0; padding-left: 1.5em; }
.rte-editor p { margin: 0 0 0.75em; }
.rte-editor p:last-child { margin-bottom: 0; }
