/* ==========================================================================
   Jekins Brand & Company - booking styles
   Brand colours are CSS variables: change them here (and only here) to re-theme.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }

:root {
  --brand-900: #0f2a47;
  --brand-800: #14365d;
  --brand-700: #1a4a7c;
  --brand-100: #e6eef7;
  --brand-50: #f1f6fb;
  --accent: #b98a2e;
  --accent-soft: #f6ecd6;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #dde2e8;
  --border-strong: #c3cbd5;
  --text: #14202e;
  --muted: #5b6674;
  --disabled: #8a94a0;

  --success: #1b6b44;
  --success-bg: #e8f5ee;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --warn: #7a4d00;
  --warn-bg: #fff4dc;
  --info-bg: #eaf1f9;

  --focus: #2b6cb0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 42, 71, 0.06), 0 8px 24px rgba(15, 42, 71, 0.08);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--brand-900); color: #fff;
  padding: 10px 14px; border-radius: var(--radius-sm); z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-900); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px;
  box-shadow: inset 0 -3px 0 var(--accent);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--brand-900); letter-spacing: 0.01em; }

/* ---------- layout ---------- */
.shell { max-width: 1120px; margin: 0 auto; padding: 28px 20px 56px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; padding-top: 40px; }
}
.shell--single { max-width: 760px; grid-template-columns: 1fr; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }

/* ---------- intro (step one) ---------- */
.intro { padding: 28px 24px; align-self: start; }
@media (min-width: 900px) { .intro { position: sticky; top: 24px; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.intro h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); color: var(--brand-900); margin-bottom: 14px; }
.intro__lead { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts .k { color: var(--muted); }
.facts .v { font-weight: 600; text-align: right; }
.note {
  margin-top: 22px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft);
  border: 1px solid #ecd9a8; color: #5a4210; font-size: 14px;
}

/* ---------- booking panel ---------- */
.panel { padding: 0; overflow: hidden; }
.panel__top { padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--brand-50); }
.panel__body { padding: 24px; min-height: 380px; }
.panel__foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fbfcfd; }
.panel__foot .spacer { flex: 1; }
@media (max-width: 599px) {
  .panel__top, .panel__body, .panel__foot { padding-left: 16px; padding-right: 16px; }
  .panel__foot { flex-direction: column-reverse; align-items: stretch; }
  .panel__foot .btn { width: 100%; }
  .panel__foot .spacer { display: none; }
}
.step-title { font-size: 22px; font-weight: 700; color: var(--brand-900); margin-bottom: 4px; }
.step-title:focus { outline: none; }
.step-sub { color: var(--muted); margin-bottom: 20px; font-size: 15px; }

/* ---------- progress ---------- */
.progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; counter-reset: step; }
.progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; font-size: 12px; color: var(--muted); font-weight: 500; }
.progress li::before {
  counter-increment: step; content: counter(step);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted); font-weight: 700; font-size: 13px;
}
.progress li::after { content: ''; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--border-strong); }
.progress li:last-child::after { display: none; }
.progress li[data-state='done']::before { content: '\2713'; background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.progress li[data-state='done']::after { background: var(--brand-800); }
.progress li[data-state='current'] { color: var(--brand-900); font-weight: 700; }
.progress li[data-state='current']::before { border-color: var(--brand-800); color: var(--brand-800); box-shadow: 0 0 0 4px var(--brand-100); }
@media (max-width: 479px) { .progress li { font-size: 11px; } .progress li span.label-long { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s; font-size: 15px;
}
.btn-primary { background: var(--brand-800); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--brand-900); }
.btn-secondary { background: var(--surface); color: var(--brand-900); border-color: var(--border-strong); }
.btn-secondary:hover:not([disabled]) { background: var(--brand-50); border-color: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--brand-700); padding: 0 12px; min-height: 40px; }
.btn-ghost:hover:not([disabled]) { background: var(--brand-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.btn[aria-busy='true'] { cursor: progress; opacity: 0.85; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.5s; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- alerts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14.5px; margin-bottom: 16px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert-error { background: var(--danger-bg); border-color: #f2b8b2; color: #7a150d; }
.alert-info { background: var(--info-bg); border-color: #bcd3ea; color: var(--brand-900); }
.alert-warn { background: var(--warn-bg); border-color: #f1d28a; color: var(--warn); }
.alert-success { background: var(--success-bg); border-color: #a9d8bf; color: #0f4a2d; }
.alert .btn { margin-top: 8px; }

/* ---------- calendar ---------- */
.cal { max-width: 420px; margin: 0 auto; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__title { font-size: 18px; font-weight: 700; color: var(--brand-900); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--brand-900); font-size: 18px; line-height: 1;
}
.icon-btn:hover:not([disabled]) { background: var(--brand-50); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.cal table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 0; }
.cal td { padding: 0; text-align: center; }
.day {
  width: 100%; aspect-ratio: 1 / 1; min-height: 38px; border-radius: 10px; border: 2px solid transparent;
  background: transparent; color: var(--disabled); font-weight: 500; cursor: not-allowed;
  display: grid; place-items: center; position: relative;
}
.day:not([disabled]) { background: var(--brand-100); color: var(--brand-900); font-weight: 700; cursor: pointer; }
.day:not([disabled]):hover { background: #d3e2f2; }
.day.is-today { border-color: var(--accent); }
.day[aria-pressed='true'] { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.day[aria-pressed='true']:hover { background: var(--brand-900); }
.cal.is-loading .day { opacity: 0.45; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 2px solid transparent; }
.legend .l-avail { background: var(--brand-100); }
.legend .l-sel { background: var(--brand-800); }
.legend .l-na { background: #fff; border-color: var(--border-strong); }
.legend .l-today { border-color: var(--accent); }
.selected-readout { margin-top: 18px; text-align: center; font-weight: 600; color: var(--brand-900); min-height: 28px; }
.selected-readout.is-empty { font-weight: 400; color: var(--muted); }
.tz-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- time slots ---------- */
.slots__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.slots__date { font-weight: 700; color: var(--brand-900); font-size: 17px; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.slot {
  min-height: 48px; border-radius: 10px; border: 2px solid var(--brand-700); background: var(--surface); color: var(--brand-800);
  font-weight: 700; cursor: pointer; padding: 0 10px;
}
.slot:hover:not([disabled]) { background: var(--brand-50); }
.slot[aria-pressed='true'] { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.slot[disabled] { border-color: var(--border); color: var(--disabled); background: #f3f5f7; text-decoration: line-through; cursor: not-allowed; font-weight: 500; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .btn { margin-top: 12px; }
.skeleton { background: linear-gradient(90deg, #eef1f4 25%, #f7f9fa 50%, #eef1f4 75%); background-size: 200% 100%; border-radius: 10px; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; max-width: 520px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
.input, .select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); font-size: 16px; /* 16px prevents iOS zoom */
}
.input:hover, .select:hover { border-color: var(--brand-700); }
.input[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--danger); background: #fffafa; }
.field-error { color: var(--danger); font-size: 14px; margin-top: 6px; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }

/* ---------- summary ---------- */
.summary { margin: 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.summary div { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.summary div:last-child { border-bottom: 0; }
.summary div:nth-child(even) { background: #fafbfc; }
.summary dt { color: var(--muted); font-size: 14.5px; }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary .fee dd { font-size: 20px; color: var(--brand-900); }
@media (max-width: 479px) { .summary div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- confirmation ---------- */
.result { padding: 36px 28px; text-align: center; }
.result__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.result__icon--ok { background: var(--success-bg); color: var(--success); }
.result__icon--wait { background: var(--warn-bg); color: var(--warn); }
.result__icon--bad { background: var(--danger-bg); color: var(--danger); }
.result h1 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 32px); color: var(--brand-900); margin-bottom: 10px; }
.result__lead { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }
.ref-box { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-50); border: 1px dashed var(--brand-700); border-radius: 10px; padding: 8px 8px 8px 16px; margin-bottom: 22px; }
.ref-box code { font-size: 20px; font-weight: 700; letter-spacing: 0.06em; color: var(--brand-900); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
.result .summary { text-align: left; max-width: 520px; margin: 0 auto 22px; }
.result .thanks { max-width: 560px; margin: 0 auto 22px; color: var(--text); }
.result__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lookup { max-width: 420px; margin: 18px auto 0; text-align: left; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-wait { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: #eceff3; color: #3b4755; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 0 20px 32px; }
.banner { grid-column: 1 / -1; }

.slots__head .tz-note { text-align: left; margin: 2px 0 0; }
.skeleton--title { height: 24px; width: 60%; }
.banner:empty { display: none; }
