/* Booking system: shared tokens + public pages. Light theme is locked on purpose. */

@font-face {
  font-family: 'Heebo';
  src: url('/fonts/heebo-hebrew.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  src: url('/fonts/heebo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --night: #1C3C6B;
  --ink: #1C3C6B;
  --brand: #1C3C6B;
  --accent: #CC2222;
  --accent-on-dark: #E65A5A;
  --bg: #EDEAE4;
  --surface: #FFFFFF;
  --surface-2: #F6F4F0;
  --text: #111111;
  --muted: #5B5751;
  --line: #DCD6CC;
  --ok: #2F7D4F;
  --ok-soft: #E4F2E9;
  --danger: #B42318;
  --danger-soft: #FBE8E8;
  --tint: rgba(28, 60, 107, 0.08);
  --tint-2: rgba(28, 60, 107, 0.14);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 30px rgba(28, 60, 107, 0.07);
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- split shell ---------- */

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(380px, 40%) 1fr;
}

.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--night);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-inner {
  padding: 44px 48px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.panel-inner::-webkit-scrollbar { display: none; }

.brandmark {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  width: max-content;
}
.brandmark .dot { color: var(--accent-on-dark); }

.kicker { font-size: 15px; color: rgba(255, 255, 255, 0.72); font-weight: 400; }
.panel h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -0.01em; }
.panel .desc { color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 46ch; white-space: pre-line; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.chip svg { width: 16px; height: 16px; opacity: 0.9; }

.picked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.picked svg { width: 22px; height: 22px; flex: none; }
.picked strong { display: block; font-size: 16px; }
.picked span { font-size: 14px; color: rgba(255, 255, 255, 0.78); }

.type-cards { display: grid; gap: 10px; margin-top: 4px; }
.type-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s;
}
.type-card:hover { background: rgba(255, 255, 255, 0.18); }
.type-card .tc-text { flex: 1; min-width: 0; }
.type-card strong { display: block; font-size: 17px; }
.type-card span { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.type-card .arrow { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--night); display: grid; place-items: center; flex: none; }
.type-card .arrow svg { width: 18px; height: 18px; }

/* Shapes and a line at the bottom of the dark panel. An uploaded photo (optional) takes their place. */
.panel-art {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
}
.panel-art svg { width: 100%; max-width: 520px; height: auto; max-height: min(380px, 42vh); display: block; }
.panel-art .owner-photo { max-width: 100%; max-height: min(640px, 62vh); width: auto; object-fit: contain; object-position: bottom center; }

/* ---------- main column ---------- */

.main {
  padding: 40px clamp(20px, 5vw, 72px) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.main-inner { width: 100%; max-width: 640px; }

.stepper {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 28px;
  padding: 12px 0;
  background: var(--bg);
  font-size: 14px;
  color: var(--muted);
}
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ''; width: 22px; height: 1px; background: var(--line); margin-inline-end: 4px; }
.stepper .num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 13px;
}
.stepper .current { color: var(--text); font-weight: 600; }
.stepper .current .num { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper .done .num { background: var(--tint-2); border-color: transparent; color: var(--ink); }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.section-sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

/* ---------- calendar ---------- */

.cal-wrap { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 1100px) {
  .cal-wrap.has-day { grid-template-columns: minmax(0, 1fr) 190px; }
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { font-size: 18px; font-weight: 700; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: background 0.15s;
}
.icon-btn:hover:not(:disabled) { background: var(--tint); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 13px; color: var(--muted); padding: 4px 0 8px; font-weight: 500; }
.day {
  position: relative;
  aspect-ratio: 1;
  max-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9A958D;
  font-size: 15px;
  cursor: default;
  display: grid;
  place-items: center;
}
.day.available { background: var(--tint); color: var(--ink); font-weight: 700; cursor: pointer; }
.day.available:hover { background: var(--tint-2); }
.day.selected { background: var(--ink); color: #fff; }
.day.today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.day.selected.today::after { background: #fff; }

.tz-line { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tz-line svg { width: 16px; height: 16px; }

.slots-col h4 { margin: 2px 0 12px; font-size: 15px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
@media (min-width: 1100px) {
  .cal-wrap.has-day .slots { grid-template-columns: 1fr; max-height: 380px; overflow-y: auto; padding-inline-end: 4px; }
}
.slot {
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--tint-2);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.slot:hover { border-color: var(--ink); background: var(--tint); }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 25%, #ECE8E1 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
}
.notice.error { background: var(--danger-soft); color: #7A1A12; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice .link-btn { margin-top: 6px; }

/* ---------- form ---------- */

.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--tint);
  margin-bottom: 22px;
}
.summary-bar .sb-text { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.summary-bar svg { width: 20px; height: 20px; flex: none; }
.summary-bar strong { display: block; font-weight: 700; }
.summary-bar small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s;
}
textarea.input { min-height: 104px; resize: vertical; line-height: 1.55; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.input[dir='ltr'] { text-align: right; }
.input.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; }

.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chips label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 500;
}
.choice-chips input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chips label:has(input:checked) { border-color: var(--ink); background: var(--tint); color: var(--ink); font-weight: 600; }
.choice-chips label:has(input:focus-visible) { outline: 3px solid var(--tint-2); }
.choice-chips svg { width: 18px; height: 18px; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
  margin: 6px 0 22px;
}
.switch-row .sr-text strong { display: block; font-size: 15px; }
.switch-row .sr-text span { font-size: 14px; color: var(--muted); }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #CFC9BF; transition: background 0.2s; }
.switch .thumb {
  position: absolute; top: 3px; inset-inline-start: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s;
}
.switch input:checked ~ .track { background: var(--ink); }
.switch input:checked ~ .thumb { transform: translateX(-20px); }
[dir='ltr'] .switch input:checked ~ .thumb { transform: translateX(20px); }
.switch input:focus-visible ~ .track { outline: 3px solid var(--tint-2); outline-offset: 2px; }

/* ---------- buttons ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding-block: 7px;
  padding-inline: 26px 7px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.cta:hover { transform: translateY(-1px); }
.cta .cta-icon { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.cta .cta-icon svg { width: 20px; height: 20px; }
.cta[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.cta.wide { width: 100%; }
.cta.danger { background: var(--danger); }
.cta.danger .cta-icon { color: var(--danger); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary svg { width: 18px; height: 18px; }

.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.back-link svg { width: 16px; height: 16px; }

.form-error { margin: 0 0 16px; }

/* ---------- thanks / manage ---------- */

.done-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center;
}
.check svg { width: 34px; height: 34px; }
.check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s 0.15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.check.cancelled { background: var(--danger-soft); color: var(--danger); }
.done-head h2 { font-size: 30px; font-weight: 800; }
.done-head p { margin: 0; color: var(--muted); white-space: pre-line; }

.details { display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 20px; }
.details .row { display: flex; gap: 12px; align-items: flex-start; }
.details .row svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ink); }
.details .row strong { display: block; }
.details .row span { color: var(--muted); font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }

.extra { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.extra h3 { font-size: 18px; margin-bottom: 10px; }
.extra p { margin: 0; white-space: pre-line; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.link-cards { display: grid; gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--line); text-decoration: none; color: var(--text);
}
.link-card:hover { border-color: var(--ink); }
.link-card svg { width: 20px; height: 20px; color: var(--ink); flex: none; }
.link-card strong { display: block; }
.link-card span { font-size: 14px; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-weight: 500; font-size: 14px; }
.socials svg { width: 18px; height: 18px; }

.manage-link { font-size: 14px; color: var(--muted); }

/* ---------- simple pages (404, errors) ---------- */

.simple-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.simple-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; max-width: 460px; width: 100%; }
.simple-card h1 { font-size: 26px; margin-bottom: 8px; }
.pill-link { display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }

/* Content appears at once: a fade made the page feel slower than it is. */
.fade-in { animation: none; }

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .panel {
    position: relative;
    height: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .panel-inner { padding: 24px 16px 24px; gap: 12px; overflow: visible; position: relative; z-index: 1; }
  .panel h1 { font-size: 26px; }
  .panel .desc { font-size: 15px; }
  /* On a phone the header is text only: the shapes would sit under the words. */
  .panel-art { display: none; }
  .main { padding: 8px 16px 48px; }
  .stepper { margin-bottom: 16px; font-size: 13px; }
  .stepper li + li::before { width: 12px; }
  .card { padding: 20px 16px; border-radius: 20px; }
  .section-title { font-size: 20px; }
  .day { max-height: 46px; font-size: 15px; }
  .cta { width: 100%; }
  .done-head h2 { font-size: 26px; }
  .actions .btn-secondary { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .check path { stroke-dashoffset: 0; }
}
