@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --bg:           #f5f3ef;
  --white:        #ffffff;
  --text:         #2c2b28;
  --text-muted:   #6e6b65;
  --primary:      #003087;
  --primary-hover:#00245e;
  --border:       #ddd9d3;
  --radius:       5px;
  --max-w:        760px;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* ── Site header ───────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.site-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.01em;
}
.site-title:hover { color: var(--primary-hover); }
.site-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Page wrapper ──────────────────────────────────────── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 64px;
}

/* ── Card ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 20px;
}

/* ── Page heading ──────────────────────────────────────── */
h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.7rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.25;
}
.page-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  color: var(--primary);
  margin: 28px 0 12px;
  font-weight: 600;
}

/* ── Slot listing ──────────────────────────────────────── */
.slot-list { display: flex; flex-direction: column; gap: 10px; }
.slot-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.slot-item:hover { border-color: #b8b4ad; }
.slot-date {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 3px;
}
.slot-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.slot-meta span + span::before { content: ' · '; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  letter-spacing: .02em;
  transition: background .15s;
}
.btn:hover { background: var(--primary-hover); color: var(--white); }
.btn-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--primary); }

/* ── Forms ─────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: .01em;
}
.field input[type="radio"],
.field input[type="checkbox"] { width: auto; }

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #8aabcf;
  box-shadow: 0 0 0 3px rgba(0,48,135,.07);
}
.radio-group {
  display: flex;
  gap: 24px;
  padding: 4px 0;
}
.radio-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ── Form helpers ──────────────────────────────────────── */
.field-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 7px;
}
.form-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 20px 0 4px;
}

/* ── PLS box ───────────────────────────────────────────── */
.pls-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 180px;
  overflow-y: scroll;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: #faf9f7;
  margin-bottom: 10px;
  line-height: 1.65;
}
.pls-box p + p { margin-top: .75em; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
}
.consent-row input { width: auto; margin-top: 3px; }

/* ── Slot summary banner ───────────────────────────────── */
.slot-banner {
  background: #eef1f8;
  border: 1px solid #cdd5e8;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  color: var(--text);
}
.slot-banner strong { color: var(--primary); }

/* ── Review table ──────────────────────────────────────── */
.review-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.review-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eeebe5;
  font-size: 0.9rem;
  vertical-align: top;
}
.review-table td:first-child {
  font-weight: 700;
  width: 38%;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: 9px;
}

/* ── Alerts ────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-error { background: #fdf2f2; border: 1px solid #e8b4b4; color: #8b1a1a; }
.alert-success { background: #f0faf2; border: 1px solid #a8d5b0; color: #1a5c2a; }
.alert-error ul { margin: 4px 0 0 16px; }

/* ── Confirmation summary ──────────────────────────────── */
.summary-box {
  background: #eef1f8;
  border: 1px solid #cdd5e8;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
}
.summary-box .summary-table { width: 100%; border-collapse: collapse; }
.summary-box .summary-table td {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #dde3f0;
}
.summary-box .summary-table td:first-child {
  font-weight: 700;
  width: 40%;
  color: var(--text-muted);
}

/* ── Thank-you / contact ───────────────────────────────── */
.thankyou-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}
.empty-state { color: var(--text-muted); font-style: italic; padding: 12px 0; }

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

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .card { padding: 22px 18px; }
  .slot-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  h1 { font-size: 1.4rem; }
}
