/* Booking pages: RA'AYA brand, RTL-first, locked light theme. */
@font-face { font-family: 'Lia Element'; src: url('/fonts/LiaElement-Light.woff2') format('woff2'); font-weight: 300 400; font-display: swap; }
@font-face { font-family: 'Lia Element'; src: url('/fonts/LiaElement-Bold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #2B0E6A;
  --night: #2B0E6A;
  --night-2: #3a1a84;
  --brand: #EE7474;
  --brand-ink: #c94f4f;
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4f0f9;
  --text: #2a2540;
  --muted: #6b6680;
  --line: #e7e1ef;
  --ok: #2f8f63;
  --danger: #c84040;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(43, 14, 106, .06), 0 8px 24px rgba(43, 14, 106, .07);
  --font: 'Lia Element', 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --grid: linear-gradient(rgba(43, 14, 106, .045) 1px, transparent 1px) 0 0 / 54px 54px,
          linear-gradient(90deg, rgba(43, 14, 106, .045) 1px, transparent 1px) 0 0 / 54px 54px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, white); outline-offset: 2px; }

/* ---------- split shell ---------- */
.shell { display: grid; grid-template-columns: minmax(360px, 38%) 1fr; min-height: 100vh; min-height: 100dvh; }
.panel {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: radial-gradient(120% 70% at 85% 100%, var(--night-2) 0%, var(--night) 60%);
  color: #fff; display: flex; flex-direction: column;
}
.panel-top { padding: 34px 40px 0; position: relative; z-index: 2; }
.panel .logo { height: 30px; width: auto; display: block; margin-bottom: 34px; opacity: .95; }
.panel .eyebrow { font-size: 15px; color: rgba(255,255,255,.72); margin: 0 0 4px; font-weight: 300; }
.panel h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.12; margin: 0 0 14px; font-weight: 700; }
.panel .welcome { color: rgba(255,255,255,.82); margin: 0 0 18px; font-weight: 300; max-width: 42ch; }
.panel .type-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.panel .desc { color: rgba(255,255,255,.8); font-weight: 300; margin: 12px 0 0; max-width: 44ch; white-space: pre-line; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 14px;
}
.chip svg { width: 15px; height: 15px; flex: none; }
.picked {
  margin-top: 18px; padding: 12px 16px; border-radius: var(--r); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); display: flex; gap: 10px; align-items: center; font-weight: 600;
}
.picked svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.panel-photo { flex: 1 1 auto; min-height: 200px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.panel-photo img {
  display: block; max-height: min(640px, 68vh, calc(100% - 16px)); max-width: 92%; width: auto; height: auto;
  object-fit: contain; object-position: bottom; position: absolute; bottom: 0; inset-inline-start: 50%; transform: translateX(50%);
  filter: drop-shadow(0 -6px 30px rgba(0,0,0,.18));
}
.panel-photo::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; bottom: -18%; inset-inline-start: 15%;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent) 0%, transparent 65%);
}

.main { background: var(--grid), var(--bg); min-width: 0; display: flex; flex-direction: column; }
.main-inner { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 40px 60px; flex: 1; }

/* ---------- stepper ---------- */
.stepper {
  position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.stepper ol { list-style: none; margin: 0 auto; padding: 14px 40px; display: flex; gap: 8px; max-width: 760px; align-items: center; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.stepper li + li::before { content: ''; width: 26px; height: 1px; background: var(--line); margin-inline-end: 4px; }
.stepper .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px;
  border: 1px solid var(--line); background: var(--surface);
}
.stepper li.on { color: var(--ink); font-weight: 700; }
.stepper li.on .n { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper li.done .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper button { background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; color: inherit; }

h2.step-title { font-size: 28px; line-height: 1.2; color: var(--ink); margin: 18px 0 6px; font-weight: 700; }
.step-sub { color: var(--muted); margin: 0 0 22px; }

/* ---------- type cards ---------- */
.type-list { display: grid; gap: 14px; }
.type-card {
  display: flex; gap: 16px; align-items: center; text-align: start; width: 100%; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.type-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.type-card .dot { width: 12px; height: 46px; border-radius: 99px; background: var(--brand); flex: none; }
.type-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.type-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.type-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.type-card .meta span { display: inline-flex; gap: 6px; align-items: center; }
.type-card .meta svg { width: 15px; height: 15px; }
.type-card .go { margin-inline-start: auto; }

/* ---------- calendar ---------- */
.picker { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { margin: 0; font-size: 19px; color: var(--ink); }
.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);
}
.icon-btn:disabled { opacity: .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-grid .wd { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 6px 0; }
.day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font-size: 16px; color: #b7b1c4; cursor: default;
  display: grid; place-items: center; position: relative; min-height: 40px; padding: 0;
}
.day.avail { color: var(--ink); background: var(--surface-2); font-weight: 700; cursor: pointer; }
.day.avail:hover { background: color-mix(in srgb, var(--brand) 22%, white); }
.day.today::after { content: ''; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.day.sel { background: var(--ink) !important; color: #fff; }
.tz-line { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
.tz-line svg { width: 15px; height: 15px; }

.slots h3 { margin: 4px 0 12px; font-size: 18px; color: var(--ink); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot {
  border: 1.5px solid color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 10px 6px; font-weight: 700; cursor: pointer; font-family: var(--mono); font-size: 15px; min-height: 44px;
  transition: background .12s, color .12s;
}
.slot:hover { border-color: var(--ink); }
.slot.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--surface); }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; }
.field label, .field .label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.input {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px;
  font-size: 16px; min-height: 48px; transition: border-color .12s;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
textarea.input { min-height: 100px; resize: vertical; }
.field.err .input { border-color: var(--danger); }
.field .msg { color: var(--danger); font-size: 14px; margin-top: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-opt span {
  display: inline-flex; gap: 6px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 600; min-height: 42px;
}
.pill-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pill-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 70%, white); }

.remind {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line);
}
.remind .txt { flex: 1; }
.remind strong { display: block; color: var(--ink); }
.remind small { color: var(--muted); font-size: 14px; }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #d9d3e3; transition: background .15s; }
.switch span::after {
  content: ''; 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,.2); transition: transform .15s;
}
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(-20px); }
[dir="ltr"] .switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 70%, white); outline-offset: 2px; }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 7px 7px 7px;
  padding-inline-start: 24px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font-weight: 700; font-size: 17px; text-decoration: none; min-height: 54px; transition: background .15s;
}
.cta:hover { background: #3a1a84; }
.cta .arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.cta .arrow svg { width: 18px; height: 18px; }
.cta[disabled] { opacity: .6; cursor: progress; }
.cta.coral { background: var(--brand); }
.cta.coral .arrow { background: rgba(255,255,255,.25); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700;
  text-decoration: none; min-height: 44px; font-size: 15px;
}
.btn:hover { border-color: var(--ink); }
.btn svg { width: 17px; height: 17px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 0; font-size: 15px; }
.back svg { width: 16px; height: 16px; }

.alert { padding: 12px 16px; border-radius: var(--r); background: #fdecec; color: #8a2424; border: 1px solid #f5c9c9; }
.alert.info { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* ---------- thanks / manage ---------- */
.check { width: 74px; height: 74px; margin: 10px 0 8px; }
.check circle { stroke: var(--ok); stroke-width: 3; fill: none; stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw .6s ease-out forwards; }
.check path { stroke: var(--ok); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .35s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .check circle, .check path { animation: none; stroke-dashoffset: 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.summary { display: grid; gap: 12px; margin: 18px 0; }
.summary .row { display: flex; gap: 12px; align-items: flex-start; }
.summary .row svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.summary .k { color: var(--muted); font-size: 14px; display: block; }
.summary .v { font-weight: 700; color: var(--ink); }
.section { margin-top: 30px; }
.section h3 { color: var(--ink); font-size: 20px; margin: 0 0 10px; }
.prose { white-space: pre-line; }
.prose a { color: var(--ink); font-weight: 600; word-break: break-all; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r); 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; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.link-card:hover { border-color: var(--ink); }
.link-card strong { color: var(--ink); display: block; }
.link-card small { color: var(--muted); }
.link-card svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-inline-start: auto; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.socials a:hover { background: var(--ink); color: #fff; }
.socials svg { width: 19px; height: 19px; }
.preview-bar { background: var(--brand); color: #fff; text-align: center; padding: 8px 16px; font-weight: 700; font-size: 15px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 18px; font-family: var(--mono); }

.loading { display: grid; place-items: center; min-height: 160px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .panel {
    position: relative; height: auto; min-height: 220px; border-radius: 0 0 28px 28px; flex-direction: row; align-items: stretch;
  }
  .panel-top { padding: 20px 16px 20px; flex: 1 1 60%; min-width: 0; }
  .panel .logo { height: 22px; margin-bottom: 16px; }
  .panel h1 { font-size: 27px; margin-bottom: 8px; }
  .panel .welcome { font-size: 15px; margin-bottom: 10px; }
  .panel .type-title { font-size: 19px; }
  .panel .desc { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .panel-photo { flex: 0 0 38%; min-height: 0; }
  .panel-photo img { max-height: 100%; max-width: 100%; inset-inline-start: auto; inset-inline-end: 0; transform: none; }
  .panel-photo::before { width: 120%; bottom: -40%; inset-inline-start: -10%; }
  .picked { margin-top: 12px; padding: 8px 10px; font-size: 14.5px; gap: 8px; line-height: 1.35; }
  .picked svg { width: 17px; height: 17px; }
  .chips { gap: 6px; }
  .chip { font-size: 13px; padding: 3px 9px; gap: 4px; }
  .chip svg { width: 13px; height: 13px; }
  .panel .eyebrow { font-size: 14px; }
  .panel-top { flex-basis: 64%; }
  .panel-photo { flex-basis: 36%; }
  .stepper ol { padding: 10px 16px; gap: 6px; }
  .stepper li { font-size: 14px; }
  .stepper li + li::before { width: 12px; }
  .stepper li:not(.on) .lbl { display: none; }
  .main-inner { padding: 14px 16px 48px; }
  h2.step-title { font-size: 24px; margin-top: 10px; }
  .picker { grid-template-columns: 1fr; gap: 18px; }
  .cal { padding: 12px; }
  .slot-list { grid-template-columns: repeat(3, 1fr); }
  .type-card { padding: 16px; }
}
@media (max-width: 380px) {
  .slot-list { grid-template-columns: repeat(2, 1fr); }
}
