/* book.css - booking page. Same color "tokens" as the Night Shoot prototype,
   so a visitor's saved look carries over. No web fonts, no images. */

:root {
  --bg: #080e05;  --fg: #eef1f5;
  --acc: #f8ebdb; --acc-ink: #090c1a;   /* accent = buttons; acc-ink = text on buttons */
  --r: #ff6b6b;   --g: #4fd69c;  --b: #6b9bff;   /* Pre-Production / Production / Post-Production */
  --radius: 8px;
}
:root {
  --mut: color-mix(in srgb, var(--fg) 62%, var(--bg));
  --surface: color-mix(in srgb, var(--fg) 7%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 16%, var(--bg));
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.wrap { width: min(860px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { font-weight: 800; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; min-height: 48px;
  border-radius: var(--radius); font: 700 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none; border: 0; cursor: pointer;
  background: var(--acc); color: var(--acc-ink); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 9px 14px; min-height: 0; font-size: 14px; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 88px) 0 32px; }
.tc { color: var(--acc); font-size: 12px; letter-spacing: .12em; display: flex; align-items: center; gap: 8px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }
.hero h1 { font-size: clamp(38px, 8vw, 76px); line-height: .98; letter-spacing: -.035em; font-weight: 800; margin: 14px 0 16px; overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--acc); }
.lede { color: var(--mut); max-width: 50ch; font-size: clamp(17px, 2vw, 19px); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Form */
.book { display: grid; gap: 18px; padding-bottom: 32px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); min-width: 0; }
legend { font-weight: 800; font-size: 20px; padding: 0 6px; margin-left: -6px; }
.n { color: var(--acc); font-size: 13px; margin-right: 6px; letter-spacing: .08em; }
.hint { color: var(--mut); font-size: 14px; margin-top: 4px; }
.hint:empty { display: none; }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.chip, .seg label { position: relative; cursor: pointer; }
.chip input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: grid; gap: 2px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); height: 100%; transition: border-color .15s, background .15s; }
.chip small, .seg small { color: var(--mut); font-size: 13px; }
.chip input:checked + span { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, var(--bg)); }
.chip input:checked + span b::after { content: " ✓"; color: var(--acc); }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.seg span { display: grid; place-content: center; text-align: center; min-height: 56px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; line-height: 1.2; }
.seg small { font-weight: 400; display: block; margin-top: 2px; }
.seg input:checked + span { border-color: var(--acc); background: var(--acc); color: var(--acc-ink); }
.seg input:checked + span small { color: inherit; opacity: .8; }

.dates { display: none; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.dates.on { display: grid; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; align-items: end; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label small { color: var(--mut); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), textarea {
  font: inherit; font-size: 16px; /* 16px stops phones from zooming in */
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; width: 100%; min-height: 48px; }
input:focus, textarea:focus { border-color: var(--acc); outline: none; }
textarea { resize: vertical; }
.bad { border-color: #ff5d5d !important; }

.err { color: #ff6b6b; font-weight: 600; }
.err:empty { display: none; }
.send { display: flex; flex-wrap: wrap; gap: 10px; }
.done { border: 1px solid var(--acc); border-radius: 14px; padding: 20px; }
.done h2 { font-size: 28px; margin: 6px 0; }
.done p:last-child { color: var(--mut); }

.rush { margin-top: 14px; padding: 16px; border-radius: 10px; border: 1px dashed #ff5d5d; background: color-mix(in srgb, #ff5d5d 8%, var(--bg)); display: grid; gap: 10px; justify-items: start; }

.trip { margin: -2px 0 12px; padding: 12px 14px; border-radius: 10px; border-left: 3px solid var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--bg)); font-size: 15px; }
.trip.ok { border-left-color: #4cd88a; background: color-mix(in srgb, #4cd88a 10%, var(--bg)); }

/* Pop-up: "How do I reach you?" (opens on Send request) */
.pop { margin: auto; border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(520px, 100% - 32px); max-height: calc(100% - 32px);
  background: var(--bg); color: var(--fg); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.pop::backdrop { background: rgba(5,8,12,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pop[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .pop[open] { animation: none; } }
.pop-in { display: grid; gap: 14px; padding: 24px; position: relative; }
.pop h2 { font-size: 26px; letter-spacing: -.02em; line-height: 1.1; margin-top: -6px; }
.pop .grid { margin: 0; }
.pop .hint { margin-top: -8px; }
.pop .pref { border: 0; padding: 0; background: none; }
.pop .pref legend { font-size: 15px; font-weight: 600; padding: 0; margin: 0; }
.pop .seg { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.pop .seg span { min-height: 48px; }
.pop .send .btn { flex: 1 1 auto; }
.x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--fg); font-size: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Availability calendar (availability.html, loaded when tapped) */
.call { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.call h2 { font-size: 22px; margin-bottom: 4px; }
.call .btn { margin-top: 14px; }
.cal iframe { display: block; width: 100%; height: 900px; border: 0; margin-top: 16px; background: var(--bg); }
@media (min-width: 860px) { .cal iframe { height: 640px; } }

.foot { color: var(--mut); font-size: 14px; padding: 32px 0 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (max-width: 640px) {
  fieldset { padding: 16px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .grid, .dates { grid-template-columns: 1fr; }
  .quick .btn, .send .btn { flex: 1 1 100%; }
  .nav .btn { display: none; }
  .pop-in { padding: 20px 16px; }
  .pop .grid { grid-template-columns: 1fr; }
}
