/* Calzone booking pages.
 *
 * Built from the prototype Ken approved on 2026-09-17: one light palette with a
 * single rust accent, no emoji, a month calendar, the timezone above the times,
 * and step 2 fitting a 1440x900 window without scrolling. Every text colour
 * below was measured at WCAG AA or better against the surface it sits on.
 */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --border: #e4dfd4;
  --border-strong: #cfc8b8;
  --ink: #1b1917;
  --ink-2: #55504a;
  --ink-muted: #6b655c;      /* 5.44:1 on the warm panel; #8b847a failed at 3.49 */
  --ink-faint: #b0a99e;      /* days that cannot be booked; decorative, not read */
  --accent: #b23c0b;         /* 5.93:1 on white */
  --accent-hover: #9a3409;
  --accent-soft: #fdf1e9;
  --ok: #2f6f4f;
  --font: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: var(--font); }

.page { max-width: 1180px; margin: 0 auto; padding: 0 5%; }

/* ---------- header ---------- */
.siteheader { background: var(--surface); border-bottom: 1px solid var(--border); }
.siteheader .page { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { display: block; }
.brand .name { font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.byline { font-size: 13px; color: var(--ink-muted); }

/* ---------- shell ---------- */
.shell { padding: 22px 0 40px; }
.steplabel { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.steplabel b { color: var(--accent); font-weight: 600; }

.card {
  display: grid;
  grid-template-columns: 332px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(27, 25, 23, .04);
}

/* ---------- left panel ---------- */
.side { padding: 32px 30px; border-right: 1px solid var(--border); background: var(--surface-2); }
.host { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.host .hname { font-size: 14px; font-weight: 600; }
.host .role { font-size: 12px; color: var(--ink-muted); }
.side h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
.facts { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 18px; }
/* gap matters: once the When value carried a Change button it grew wide
   enough to meet its label with no space between them. */
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 14px; }
.fact dt { color: var(--ink-muted); }
.fact dd { font-weight: 500; text-align: right; }
.fact dd button {
  background: none; border: none; padding: 0; margin-left: 6px;
  font-size: 12px; color: var(--accent); text-decoration: underline; cursor: pointer;
}
.blurb { font-size: 14px; color: var(--ink-2); }

/* ---------- step 1: calendar and times ---------- */
.pick { padding: 32px 30px; display: grid; grid-template-columns: 1fr 292px; gap: 34px; }
/* Both column headings sit in a fixed row so they share one baseline. */
.colhead { height: 30px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.colhead .t { font-size: 15px; font-weight: 600; }
.arrows { display: flex; gap: 6px; }
.arrows button {
  width: 30px; height: 30px; background: var(--surface); cursor: pointer;
  border: 1px solid var(--border-strong); color: var(--ink-2); font-size: 15px; line-height: 1;
}
.arrows button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.arrows button:disabled { opacity: .35; cursor: not-allowed; }

.dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 7px; }
.dow span { text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
/* Fixed 44px rows so day cells stay square; letting rows share the column's
   leftover height stretched them into tall rectangles in the prototype. */
.grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 44px; gap: 6px; }
.day {
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: transparent; border: 1px solid transparent; color: var(--ink-faint); padding: 0;
}
button.day { cursor: pointer; color: var(--ink); border-color: var(--border-strong); background: var(--surface); font-weight: 500; }
button.day:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
button.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.on-date { font-size: 12px; color: var(--ink-muted); margin-top: -9px; margin-bottom: 15px; }
.tzfield { margin-bottom: 18px; }
.tzfield label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-bottom: 6px; }
.tzfield select {
  width: 100%; padding: 10px 12px; font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
}
.tzfield select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tzhint { font-size: 11px; color: var(--ink-muted); margin-top: 6px; }

.tgroup { margin-bottom: 16px; }
.tgroup h4 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot {
  padding: 9px 0; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); cursor: pointer;
}
.slot:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.empty { font-size: 13px; color: var(--ink-muted); padding: 10px 0; }

/* ---------- step 2: details and the three questions ---------- */
.form { padding: 20px 30px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.field .opt { color: var(--ink-muted); font-weight: 400; }
.field input {
  width: 100%; padding: 10px 12px; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .sub { font-size: 11px; color: var(--ink-muted); margin-top: 5px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.survey { border-top: 1px solid var(--border); margin: 16px 0 14px; padding-top: 16px; }
.survey-lead { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.q { border: 0; margin-bottom: 14px; }
.q legend { font-size: 13px; font-weight: 600; margin-bottom: 7px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  position: relative; display: inline-flex; align-items: center;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2);
}
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pill:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }

.submitbar { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.submit {
  width: 100%; padding: 13px; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); font-size: 14px; font-weight: 600; cursor: pointer;
}
.submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.submit:disabled { opacity: .45; cursor: not-allowed; }
.formnote { font-size: 11px; color: var(--ink-muted); margin-top: 8px; text-align: center; }
.error { font-size: 13px; color: var(--accent); margin-top: 10px; text-align: center; }

/* ---------- confirmation ---------- */
.done { padding: 34px 30px; }
.donetick {
  width: 34px; height: 34px; border: 1px solid var(--ok);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.donetick.off { border-color: var(--ink-muted); }
.done h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); margin-bottom: 10px; }
.badge.cancelled { color: var(--ink-muted); }
.lede { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.rows { border-top: 1px solid var(--border); margin-bottom: 24px; }
.row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.row dt { color: var(--ink-muted); }
.row a { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; padding: 11px 17px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); font-weight: 500; }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.cancelwrap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.linkbtn { background: none; border: none; font-size: 13px; color: var(--ink-muted); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--accent); }
.cancelconfirm { margin-top: 12px; padding: 13px 15px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 13px; }
.cancelconfirm p { margin-bottom: 10px; color: var(--ink-2); }
.pair { display: flex; gap: 8px; }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--border); }
  .pick { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
}
