:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #edf1f5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.hero { min-height: 315px; padding: 42px 18px 35px; color: #fff; text-align: center; background: #0873c4; }
.brand { display: inline-flex; align-items: baseline; gap: 5px; margin-bottom: 22px; color: #fff; font-size: 24px; font-style: italic; font-weight: 900; text-decoration: none; }
.brand span { font-size: 9px; font-style: normal; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.hero-copy { max-width: 610px; margin: 12px auto 19px; color: #e7f4ff; line-height: 1.5; }
.hero-points { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 24px; margin: 0; font-size: 13px; font-weight: 650; }
.hero-points span::before { content: "✓ "; }
main { width: min(780px, calc(100% - 32px)); margin: -2px auto 0; padding-bottom: 24px; }
.panel { margin: 0 0 18px; padding: 24px; border: 1px solid #dbe3ea; border-radius: 10px; background: #fff; box-shadow: 0 9px 28px rgb(25 51 72 / 7%); scroll-margin-top: 16px; }
h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 17px; font-size: 19px; }
.step { display: inline-grid; width: 30px; height: 30px; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #fff; background: #0879c9; box-shadow: 0 3px 8px rgb(8 121 201 / 25%); font-size: 15px; }
label { display: grid; gap: 7px; margin: 0 0 15px; color: #314657; font-size: 13px; font-weight: 650; }
input, select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #c8d4dd; border-radius: 7px; background: #fff; color: #17212b; font: inherit; font-weight: 500; }
input:focus, select:focus { outline: 2px solid #77baf0; outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.size-field { max-width: 390px; }
button { min-height: 42px; border: 0; border-radius: 7px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.primary { color: #fff; background: #0879c9; box-shadow: 0 5px 13px rgb(10 106 166 / 19%); }
.primary:hover:not(:disabled) { background: #0666aa; }
.secondary, .icon-button { border: 1px solid #cbd7e0; color: #233949; background: #fff; }
.secondary:hover:not(:disabled), .icon-button:hover:not(:disabled) { border-color: #0879c9; background: #f3f9fe; }
.icon-button { width: 39px; min-height: 38px; padding: 0; font-size: 24px; line-height: 1; }
.danger { border: 1px solid #edc4c4; color: #a52e2e; background: #fff; }
.status { min-height: 20px; margin: 11px 0 0; color: #536a7b; font-size: 13px; line-height: 1.5; }
.status.error { padding: 9px 11px; border: 1px solid #f1bfc2; border-radius: 6px; color: #aa252d; background: #fff2f2; }
.legend { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #667b8b; font-size: 13px; }
.legend span { width: 12px; height: 12px; border: 1px solid #8de3b3; border-radius: 4px; background: #e4faed; }
.calendar-head { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0 auto 14px; }
.calendar-head h3 { min-width: 185px; margin: 0; font-size: 17px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 410px; margin: 0 auto; }
.weekday { display: grid; height: 27px; place-items: center; color: #76899a; font-size: 11px; font-weight: 750; }
.day-empty { aspect-ratio: 1; }
.day-button { aspect-ratio: 1; min-width: 0; min-height: 43px; padding: 0; border: 1px solid #dce4eb; color: #95a2ad; background: #f7f9fb; }
.day-button.available { border-color: #a9e5be; color: #146542; background: #eaf9ef; }
.day-button.available:hover { border-color: #1f9b5d; background: #d7f4e2; }
.day-button.selected { outline: 2px solid #0879c9; outline-offset: 1px; }
.time-choices { max-width: 480px; margin: 18px auto 0; }
.time-choices h3 { margin: 0 0 10px; font-size: 14px; }
.time-button { margin: 0 7px 7px 0; border: 1px solid #b9d0df; color: #174a6b; background: #fff; }
.time-button:hover, .time-button.selected { border-color: #0879c9; color: #075b99; background: #eff8ff; }
.chosen-slot { margin: -4px 0 17px; padding: 11px 13px; border: 1px solid #b8e8cb; border-radius: 7px; background: #f0fbf4; font-weight: 650; }
.consent { display: flex; grid-template-columns: 18px 1fr; align-items: flex-start; gap: 9px; line-height: 1.5; }
.consent input { width: 17px; min-height: 17px; height: 17px; margin: 1px 0 0; accent-color: #0879c9; }
.success-panel { margin-top: 15px; padding: 17px; border: 1px solid #8fe3b4; border-radius: 8px; background: #f4fcf7; }
.success-panel h3 { margin: 0 0 12px; font-size: 17px; }
.success-panel p { line-height: 1.5; }
.code-label { margin: 18px 0 7px; font-weight: 650; }
.booking-code { display: inline-block; padding: 10px 13px; border: 1px dashed #1684c9; border-radius: 7px; color: #064f8e; background: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; font-weight: 750; overflow-wrap: anywhere; }
.muted, .demo-note { color: #627688; font-size: 13px; }
.demo-note { margin: 15px 0; padding: 10px 12px; border-left: 3px solid #d59d31; background: #fffaf0; }
.success-panel .secondary + .secondary { margin-top: 13px; }
.manage-panel > p { margin: -7px 0 13px; color: #64798a; font-size: 13px; line-height: 1.5; }
.manage-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .85fr); gap: 12px; align-items: end; }
.manage-form input { min-width: 0; }
.managed-booking { margin-top: 14px; padding: 13px; border: 1px solid #d7e1e8; border-radius: 7px; background: #f8fafb; }
.managed-booking p { margin: 0 0 12px; color: #314657; line-height: 1.55; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.footnote { margin: 20px 0 0; color: #677c8d; font-size: 12px; line-height: 1.5; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
footer { padding: 22px 16px 27px; color: #738695; font-size: 12px; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .hero { min-height: 300px; padding-top: 34px; }
  h1 { font-size: 28px; }
  .hero-points { gap: 8px 14px; font-size: 12px; }
  main { width: min(100% - 24px, 780px); }
  .panel { padding: 18px 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .manage-form { grid-template-columns: 1fr; gap: 8px; }
  .manage-form button { width: 100%; }
  .calendar-grid { gap: 4px; }
  .day-button { min-height: 38px; }
}
