/* Public booking page — My Diet Aid brand: white, black ink, MDA red. Always light. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --ink: #151515; --ink-2: #47423f; --muted: #7a7471; --paper: #ffffff; --wash: #faf8f6; --line: #ece7e3;
  --brand: #d9230a; --brand-hover: #b81d08; --brand-soft: #fdeee9; --brand-line: #f6c9bf;
  --ok: #2f6b5a; --amber-soft: #fbf3e2; --amber: #7a5200;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--brand); z-index: 5; }
main { max-width: 600px; margin: 0 auto; padding: 28px 16px calc(40px + env(safe-area-inset-bottom)); }

/* header */
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.brand img { height: 74px; width: auto; display: block; }
.brand span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* type */
h1 { font-family: var(--serif); font-weight: 700; font-size: 31px; line-height: 1.18; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.muted { color: var(--muted); }
p { margin: 0 0 12px; }
a { color: var(--brand); }

/* call types */
.types { display: flex; flex-direction: column; gap: 12px; }
.type { position: relative; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 18px; padding: 18px 40px 18px 18px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; font: inherit; color: inherit; box-shadow: 0 1px 2px rgba(20,20,20,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.type::before { content: ''; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9230a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / 22px no-repeat; }
.type::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg); transition: border-color .15s, right .15s; }
.type:hover { border-color: var(--brand-line); box-shadow: 0 6px 20px rgba(217,35,10,.08); transform: translateY(-1px); }
.type:hover::after { border-color: var(--brand); right: 15px; }
.type .t { flex: 1; min-width: 0; }
.type b { font-size: 17px; font-weight: 650; }
.type .meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.type .desc { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.price { font-weight: 700; white-space: nowrap; font-size: 14px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); }
.type .price:only-child, .price.free { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }

/* days & times */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 18px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { flex: none; width: 66px; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 9px 4px; text-align: center; cursor: pointer; scroll-snap-align: start; font: inherit; color: inherit; transition: border-color .15s; }
.day:hover { border-color: var(--brand-line); }
.day small { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.day b { display: block; font-size: 21px; line-height: 1.25; }
.day.on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 10px rgba(217,35,10,.22); }
.day.on small { color: inherit; opacity: .85; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 11px 6px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.slot:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.slot.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* form */
label { display: block; margin-bottom: 16px; }
label > span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; color: inherit; border: 1px solid #ddd6d1; border-radius: 12px; padding: 12px 14px; background: var(--paper); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #aaa29d; }
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217,35,10,.14); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { margin: 0; flex: 1 1 140px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: var(--paper); transition: border-color .15s, background .15s; }
.radios label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radios input { width: auto; accent-color: var(--brand); margin: 0; }
.radios label span { line-height: 1.3; }
.radios small { font-size: 12.5px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; box-shadow: 0 6px 18px rgba(217,35,10,.22); transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-1px); }
.btn.wide { width: 100%; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn.danger { background: var(--paper); color: var(--brand); border-color: var(--brand-line); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.back { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 15px; padding: 4px 0; cursor: pointer; margin-bottom: 14px; }
.back:hover { color: var(--brand); }

/* blocks */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.summary { display: flex; gap: 12px; align-items: center; background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: 13px 16px; margin-bottom: 20px; }
.summary b { display: block; }
.summary span { color: var(--ink-2); font-size: 15px; }
.error { color: var(--brand-hover); background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.error[hidden] { display: none; }
.note { background: var(--amber-soft); color: var(--amber); border-radius: 14px; padding: 14px 16px; white-space: pre-wrap; margin: 14px 0; }
.meet-note { font-size: 14px; color: var(--ink-2); background: var(--wash); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 14px 0 0; }
.meet-note a { color: var(--brand); font-weight: 600; }
.done { text-align: center; padding: 18px 4px; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 36px; margin: 0 auto 18px; box-shadow: 0 10px 28px rgba(217,35,10,.28); }
.done .meet-note { text-align: left; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 420px) { h1 { font-size: 27px; } .brand img { height: 64px; } .type { padding: 16px 42px 16px 14px; gap: 12px; } .type::after { right: 15px; } }
