/* Public booking pages. Light, calm, one bold element: the time buttons. */
:root {
  --canvas: #f3f6f5;
  --paper: #ffffff;
  --ink: #17201c;
  --muted: #4f5d57;
  --line: #d9e1dd;
  --soft: #eef3f1;
  --accent: #0f6e5c;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --ok: #15803d;
  --info-soft: #f1f5f9;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.is-embed { background: transparent; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.shell { min-height: 100vh; display: grid; place-items: start center; padding: 48px 16px; }
.is-embed .shell { min-height: 0; padding: 0; }
.card {
  width: 100%; max-width: 1040px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: minmax(240px, 300px) 1fr; overflow: hidden;
}
.is-embed .card { border: 0; border-radius: 0; }
.card-narrow { max-width: 520px; display: block; }

/* Left column: what you are booking */
.info { padding: 32px 28px; border-right: 1px solid var(--line); }
.info-host { margin: 0 0 6px; color: var(--muted); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.info-title { overflow-wrap: anywhere; margin: 0 0 20px; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.meta { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-weight: 500; }
.meta li { display: flex; align-items: center; gap: 10px; }
.info-desc { margin: 0; color: var(--muted); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.chosen {
  margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: var(--soft); display: flex; gap: 10px;
  align-items: flex-start; font-weight: 600; color: var(--accent);
}
.chosen span { color: var(--ink); }
.when-big { margin: 14px 0 16px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.status-ok { background: #e7f6ec; color: #0e6b30; }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }
.status-past { background: var(--info-soft); color: #334155; }

/* Right column */
.stage { padding: 28px; min-width: 0; }
.step-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.picker { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { margin: 0; font-size: 18px; font-weight: 700; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--soft); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.day { aspect-ratio: 1; min-height: 44px; display: grid; place-items: center; border-radius: 10px; font-variant-numeric: tabular-nums; font-weight: 600; }
.day-off { color: #9aa8a2; font-weight: 400; }
.day-on {
  border: 0; cursor: pointer; background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); position: relative;
}
.day-on:hover { background: color-mix(in srgb, var(--accent) 22%, white); }
.day-on.is-selected { background: var(--accent); color: #fff; }
.day-skel { background: var(--soft); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.tz-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.tz-select { border: 0; background: transparent; padding: 6px 0; color: var(--muted); font-size: 14px; max-width: 100%; }
.tz-select:not(:disabled) { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tz-select:disabled { appearance: none; opacity: 1; }

.times-day { margin: 8px 0 14px; font-size: 15px; font-weight: 600; min-height: 1.5em; }
.times-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.time {
  min-height: 48px; border: 1.5px solid color-mix(in srgb, var(--accent) 70%, white); color: var(--accent); background: var(--paper);
  border-radius: 10px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; cursor: pointer;
}
.time:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.notice { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; background: var(--info-soft); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.notice-error { background: var(--danger-soft); color: #7a1a12; }
.notice-info { background: var(--info-soft); color: #1e293b; }

/* Forms */
.form { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #6b7a74; border-radius: 10px; background: var(--paper);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
[aria-invalid=true] { border-color: var(--danger) !important; }
.field-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 14px; color: var(--danger); font-weight: 500; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 500; margin: 0; }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, black); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: #6b7a74; }
.btn-secondary:hover { background: var(--soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { background: var(--paper); color: var(--danger); border-color: #c0473d; }
.btn-danger-outline:hover { background: var(--danger-soft); }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; min-height: 44px;
  color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.answers { margin: 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.answers dt { font-size: 14px; color: var(--muted); }
.answers dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }

.move { display: grid; gap: 12px; margin: 0 0 20px; }
.move dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.move dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.move .move-old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 16px; }
.answers-title { margin: 0 0 4px; font-size: 15px; }
.req-note { margin: -8px 0 16px; }
.break { overflow-wrap: anywhere; }
.day.is-today { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.done-icon-wrap { color: var(--ok); display: inline-flex; }
.done-icon-wrap.is-cancel { color: var(--muted); }

.done, .state { text-align: center; padding: 32px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.done:focus { outline: none; }
.done-icon { color: var(--ok); }
.done-title, .state-title { margin: 12px 0 4px; font-size: 22px; font-weight: 700; }
.done-when { margin: 0 0 12px; font-size: 19px; font-weight: 700; }
.done-text, .state-text { margin: 0 0 12px; color: var(--muted); max-width: 46ch; overflow-wrap: anywhere; }
.done .btn { margin-top: 8px; }
.state-icon { color: var(--accent); }
.info.is-done .chosen { display: none; }

@media (max-width: 860px) {
  .picker { grid-template-columns: 1fr; gap: 20px; }
  .times-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: none; }
}
@media (max-width: 720px) {
  .shell { padding: 8px; }
  .is-embed .shell { padding: 0; }
  .card { grid-template-columns: 1fr; }
  .info { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 18px; }
  .info-title { font-size: 22px; margin-bottom: 14px; }
  .meta { grid-auto-flow: column; justify-content: start; gap: 16px; margin-bottom: 12px; }
  .stage { padding: 20px 12px 24px; }
  .day { min-height: 44px; aspect-ratio: auto; }
  .cal-grid { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .day-skel { animation: none; } }
