/* Booking page styled to match nicolegoott.com (Phase 5).
   Colours and fonts taken from the website. Buttons use a slightly deeper clay than the site
   so white-ish text stays easy to read (meets the WCAG AA contrast guideline). */
:root {
  --brown: #3b3430;      /* site's dark band and text */
  --cream: #f3ede4;      /* site's light background */
  --paper: #faf7f2;      /* cards, a touch lighter than cream */
  --sand: #dccbb5;       /* site's light accent */
  --sand-soft: #ebe1d3;
  --clay: #b07a5e;       /* site's button colour */
  --clay-deep: #8f5f47;  /* buttons and links (readable on cream) */
  --sage: #8a9580;       /* site's sage accent */
  --sage-soft: #e3e6dc;
  --ink: #3b3430;
  --muted: #6f625a;
  --line: #e2d6c6;
  --danger: #9b3b2c;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: "Pontano Sans", "Lato", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.65 var(--sans); }
a { color: var(--clay-deep); text-underline-offset: 3px; }
a:hover { color: var(--brown); }

/* ---------- top band (like the website header) ---------- */
.site-header { background: var(--brown); color: var(--cream); position: relative; }
.site-header-inner { max-width: 720px; margin: 0 auto; padding: 22px 16px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-title { font: 500 1.4rem/1 var(--serif); letter-spacing: 0.04em; color: var(--cream); text-decoration: none; text-transform: uppercase; }
.site-title:hover { color: var(--sand); }
.site-header .back-to-site { font: 0.95rem var(--ui); color: var(--sand); text-decoration: none; }
.site-header .back-to-site:hover { color: var(--cream); }
.wave { display: block; width: 100%; height: 42px; margin-top: -1px; }
.wave path { fill: var(--brown); }

#test-banner { background: #e9c46a; color: var(--brown); text-align: center; padding: 6px 16px; font: 14px/1.4 var(--ui); }

main { max-width: 680px; margin: 0 auto; padding: 8px 16px 56px; }
main.doc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin: 8px auto 48px; padding: 28px 24px; max-width: 760px; width: calc(100% - 32px); }
main.doc h1, main.doc h2 { font-family: var(--serif); }

h1 { font: 500 2.4rem/1.15 var(--serif); letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font: 500 1.7rem/1.2 var(--serif); letter-spacing: -0.015em; margin: 0 0 8px; }
h3 { font: 700 1.05rem/1.3 var(--sans); margin: 22px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* ---------- cards and choices ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 16px 0; }
.choice { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice:hover, .choice:focus-visible { border-color: var(--clay); box-shadow: 0 6px 18px rgba(59, 52, 48, 0.08); transform: translateY(-1px); outline: none; }
.choice strong { display: block; font: 500 1.6rem/1.2 var(--serif); margin-bottom: 2px; }
.choice .muted { display: block; font-family: var(--ui); margin-bottom: 6px; }

/* ---------- buttons and links (rounded like the website's) ---------- */
.btn {
  display: inline-block; border: 0; border-radius: 15px; padding: 15px 28px; cursor: pointer;
  background: var(--clay-deep); color: #fffaf3; font: 1rem/1.2 var(--ui); letter-spacing: 0.02em; text-decoration: none;
  transition: background .15s;
}
.btn:hover:not([disabled]) { background: var(--brown); color: #fffaf3; }
.btn:focus-visible, .link:focus-visible, .day:focus-visible, .time:focus-visible, .week-arrow:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--clay-deep); border: 1.5px solid var(--clay-deep); padding: 13.5px 26px; }
.btn.secondary:hover { background: var(--clay-deep); color: #fffaf3; }
.btn.small { padding: 9px 16px; font-size: 0.92rem; border-radius: 12px; }
.link { background: none; border: 0; padding: 0; color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.back { margin: 10px 0 14px; display: inline-block; font-family: var(--ui); }

/* ---------- forms ---------- */
label { display: block; margin: 16px 0 6px; font: 700 0.95rem/1.4 var(--sans); }
input[type=text], input[type=email], input[type=date], input[inputmode=numeric], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--sand); border-radius: 12px;
  background: #fffdf9; color: var(--ink); font: 1rem/1.4 var(--sans);
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--sage-soft); border-color: var(--sage); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font: 400 0.98rem/1.5 var(--sans); margin: 14px 0; }
.check input { margin-top: 4px; width: 19px; height: 19px; flex: none; accent-color: var(--clay-deep); }
.error { background: #f6e3de; color: var(--danger); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font: 0.97rem/1.5 var(--sans); }
.notice { background: var(--sage-soft); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font: 0.97rem/1.55 var(--sans); }

/* ---------- choosing a time ---------- */
.tzline { font: 0.95rem/1.5 var(--ui); color: var(--muted); margin: 8px 0 18px; }
.days-row { display: flex; align-items: center; gap: 8px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; flex: 1; min-width: 0; }
.day {
  flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 14px;
  padding: 8px 12px; cursor: pointer; text-align: center; font: 0.88rem/1.3 var(--ui); min-width: 74px;
}
.day b { display: block; font: 500 1.45rem/1.15 var(--serif); }
.day:hover { border-color: var(--sage); }
.day[aria-pressed="true"] { border-color: var(--sage); background: var(--sage); color: #fffdf9; }
.week-arrow {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  color: var(--clay-deep); font: 24px/1 var(--serif); cursor: pointer; margin-bottom: 10px;
}
.week-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.week-arrow:hover:not(:disabled) { border-color: var(--clay); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 14px; }
.time {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 12px 6px;
  cursor: pointer; font: 0.98rem/1.2 var(--ui);
}
.time:hover:not(:disabled) { border-color: var(--clay); }
.time[aria-pressed="true"] { background: var(--clay-deep); color: #fffaf3; border-color: var(--clay-deep); }
.time:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.chosen { list-style: none; padding: 0; margin: 8px 0 0; }
.chosen li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 0.98rem/1.45 var(--sans); }
.chosen li:last-child { border-bottom: 0; }

/* ---------- agreement and appointments ---------- */
.agreement { max-height: 55vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px; background: #fffdf9; font-size: 0.97rem; }
.agreement h2 { font-size: 1.45rem; margin-top: 18px; }
.appt { padding: 14px 0; border-bottom: 1px solid var(--line); }
.appt:last-child { border-bottom: 0; }
.draft-note { font: 0.8rem/1.4 var(--ui); color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; margin-top: 24px; }

.turnstile-box { max-width: 680px; margin: -36px auto 40px; padding: 0 16px; }
.turnstile-box:empty { display: none; }

/* ---------- footer (like the website's dark band) ---------- */
.site-footer { background: var(--brown); color: var(--sand); text-align: center; font: 0.92rem/1.6 var(--ui); padding: 30px 16px 36px; }
.site-footer a { color: var(--cream); }
.site-footer .footer-name { font: 500 1.25rem/1.3 var(--serif); color: var(--cream); letter-spacing: 0.03em; display: block; margin-bottom: 4px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  .site-title { font-size: 1.2rem; }
  .card { padding: 18px; }
  .choice strong { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
