/* The booking page (ALG-1409), design 1 "Algorhythma dark, three columns": who and what, the month, the day's times.
   Near-black and white like algorhythma.com. Columns stack under 760px. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0b0d; --ink: #e9ebee; --white: #fff; --mute: #8b929c; --line: #1d2026; --edge: #2c313a;
  --day: #1d2026; --bad: #ff8a80; --good: #7ee2a8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 "Inter", system-ui, "Segoe UI", sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--white); }
button { font: inherit; color: inherit; }

.bk { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 48px 16px 24px; }
.bk-foot { text-align: center; color: var(--mute); font-size: 12.5px; padding: 0 16px 28px; }
.bk-foot a { color: var(--mute); }

.card { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; min-height: 460px; }
.card.two { grid-template-columns: 1.1fr 2.4fr; }
.card.one { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.col { padding: 24px; min-width: 0; }
.col + .col { border-left: 1px solid var(--line); }

.avatar { width: 52px; height: 52px; border-radius: 50%; display: block; object-fit: cover; background: var(--white); }
.host { color: var(--mute); font-size: 13.5px; margin-top: 12px; }
.title { font-size: 22px; font-weight: 700; color: var(--white); margin: 2px 0 14px; letter-spacing: -0.01em; }
.meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink); font-size: 14px; }
.meta li { display: flex; align-items: center; gap: 10px; }
.meta svg { width: 16px; height: 16px; flex: none; stroke: var(--mute); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta select { background: transparent; color: var(--ink); border: 1px solid var(--edge); border-radius: 7px; padding: 4px 6px; max-width: 100%; font: inherit; font-size: 13.5px; }
.meta select option { background: var(--bg); }
.chosen { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 10px; color: var(--white); font-weight: 600; }

.mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mhead b { color: var(--white); font-size: 16px; }
.nav { display: flex; gap: 6px; }
.nav button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--edge); background: transparent; cursor: pointer; display: grid; place-items: center; }
.nav button:disabled { opacity: .3; cursor: default; }
.nav svg { width: 14px; height: 14px; stroke: var(--white); fill: none; stroke-width: 2; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.grid .h { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 2px 0 4px; }
.grid button, .grid span.d { aspect-ratio: 1; border-radius: 8px; border: 0; background: transparent; font-size: 14px; display: grid; place-items: center; min-height: 36px; }
.grid span.d { color: var(--ink); opacity: .25; }
.grid button { background: var(--day); color: var(--white); font-weight: 600; cursor: pointer; }
.grid button:hover { outline: 1px solid var(--edge); }
.grid button.sel { background: var(--white); color: var(--bg); font-weight: 700; }
.grid .today { position: relative; }
.grid .today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.dayhead { color: var(--white); font-weight: 700; margin: 0 0 12px; font-size: 15px; }
.slots { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.slot { display: block; width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--edge); background: transparent; color: var(--white); text-align: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.slot:hover { border-color: var(--white); }
.slot.on { background: var(--white); color: var(--bg); }
.empty { color: var(--mute); font-size: 14px; }

.types { display: grid; gap: 10px; }
.type { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 10px; text-decoration: none; color: var(--white); font-weight: 600; }
.type:hover { border-color: var(--white); }
.type small { color: var(--mute); font-weight: 500; }

form { display: grid; gap: 14px; max-width: 520px; }
label { display: grid; gap: 6px; font-size: 13.5px; color: var(--mute); }
input, textarea { background: transparent; color: var(--white); border: 1px solid var(--edge); border-radius: 9px; padding: 10px 12px; font: inherit; width: 100%; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
textarea { min-height: 96px; resize: vertical; }
.err { color: var(--bad); font-size: 12.5px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border-radius: 9px; padding: 10px 18px; font-weight: 700; cursor: pointer; border: 1px solid var(--white); background: var(--white); color: var(--bg); text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--edge); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }

.banner { border: 1px solid var(--edge); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.banner.bad { border-color: var(--bad); color: var(--bad); }
.banner .slots { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: none; }

.done { text-align: center; padding: 40px 24px; }
.done .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--white); display: inline-grid; place-items: center; margin-bottom: 14px; }
.done .tick svg { width: 26px; height: 26px; stroke: var(--bg); fill: none; stroke-width: 3; }
.done h1 { color: var(--white); font-size: 24px; margin: 0 0 6px; }
.done .when { font-size: 17px; color: var(--white); font-weight: 600; margin: 14px 0 4px; }
.done p { color: var(--mute); margin: 6px 0; }
.done .row { justify-content: center; margin-top: 20px; }
.bk-note { color: var(--mute); text-align: center; }

@media (max-width: 760px) {
  .bk { padding: 16px 12px 16px; }
  .card, .card.two { grid-template-columns: 1fr; min-height: 0; }
  .col { padding: 18px 16px; }
  .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .title { font-size: 20px; margin-bottom: 10px; }
  .slots { grid-template-columns: repeat(3, 1fr); max-height: none; }
  .slot { padding: 10px 4px; font-size: 13.5px; }
  .grid { gap: 4px; }
}
