/* ============================================================
   HAYMAKER — the booking sheet
   A near-fullscreen modal on black, starfield behind, the
   conversational field flow in front, ending on a slot picker.
   ============================================================ */

.sheet {
  position: fixed; z-index: 300; inset: 0;
  display: grid; place-items: center;
  padding: clamp(8px, 1.4vw, 20px);
  background: rgba(5,7,10,.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .42s var(--ease);
}
.sheet[hidden] { display: none }
.sheet.is-open { opacity: 1 }

.sheet__panel {
  position: relative;
  width: min(1280px, 100%); height: min(920px, 100%);
  border-radius: clamp(14px, 1.6vw, 26px);
  background: #05070a; color: #fff;
  overflow: clip;
  display: grid; grid-template-rows: auto 1fr;
  scale: .985; translate: 0 10px;
  transition: scale .5s var(--ease-out), translate .5s var(--ease-out);
}
.sheet.is-open .sheet__panel { scale: 1; translate: 0 0 }

.sheet__sky { position: absolute; inset: 0; width: 100%; height: 100% }
.sheet__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

.sheet__bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(16px,1.8vw,26px) clamp(18px,2.4vw,38px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.sheet__bar .wordmark svg { fill: #fff }
.sheet__bar .wordmark b { color: #fff }
.sheet__steps { display: flex; align-items: center; gap: 7px }
.sheet__steps i { display: block; width: 22px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.2); transition: background .4s var(--ease) }
.sheet__steps i.on { background: var(--lime) }
.sheet__x {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  transition: background .25s var(--ease), rotate .35s var(--ease);
}
.sheet__x:hover { background: rgba(255,255,255,.09); rotate: 90deg }
.sheet__x svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 1.6; fill: none }

.sheet__body {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  padding: clamp(20px,3vw,48px);
  overflow-y: auto;
}
.flow { width: min(880px, 100%); text-align: center }

/* the step shell blurs out on the way to the next question */
.step {
  transition: opacity var(--exit) var(--ease), filter var(--exit) var(--ease), translate var(--exit) var(--ease);
}
.step[data-phase="out"] { opacity: 0; filter: blur(8px); translate: 0 -8px; pointer-events: none }

.flow__idx { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.4) }
.flow__q {
  margin-top: clamp(14px,1.8vw,22px);
  font-size: clamp(26px, 4.2vw, 54px); font-weight: 500;
  letter-spacing: -.035em; line-height: 1.1;
}
.flow__q em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime) }

.flow__field { margin-top: clamp(26px,4vw,56px) }
.flow__field input {
  width: 100%; padding: 6px 0; border: 0; background: transparent;
  text-align: center; font-family: var(--sans); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.2; color: #fff;
  caret-color: var(--lime); outline: none;
  transition: font-size var(--reveal) var(--ease);
}
.flow__field input::placeholder { color: rgba(255,255,255,.24) }
.flow__underline { height: 1px; width: min(620px,100%); margin: 0 auto; background: rgba(255,255,255,.18) }

/* the pick list, used for the requirement step */
.picks { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: clamp(22px,3vw,40px) }
.pick {
  padding: 11px 20px; border-radius: var(--r-pill); cursor: pointer;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  transition: color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.pick:hover { color: #fff; background: rgba(255,255,255,.08) }
.pick[aria-pressed="true"] { background: var(--lime); color: var(--ink); box-shadow: none }

/* ── the slot picker ──────────────────────────────────────── */

.slot { display: grid; grid-template-columns: 1fr 260px; gap: clamp(18px,2.6vw,40px); margin-top: clamp(22px,3vw,40px); text-align: left }
.cal { border-radius: var(--r-lg); padding: clamp(16px,1.8vw,24px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); background: rgba(255,255,255,.03) }
.cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px }
.cal__mo { font-size: 16px; font-weight: 500; letter-spacing: -.02em }
.cal__nav { display: flex; gap: 6px }
.cal__nav button {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  transition: background .25s var(--ease), opacity .25s var(--ease);
}
.cal__nav button:hover:not(:disabled) { background: rgba(255,255,255,.09) }
.cal__nav button:disabled { opacity: .3; cursor: not-allowed }
.cal__nav svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 1.7; fill: none }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px }
.cal__dow span { text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: rgba(255,255,255,.35); padding-bottom: 8px }
.cal__d {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.82);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cal__d:hover:not(:disabled) { background: rgba(255,255,255,.1) }
.cal__d:disabled { color: rgba(255,255,255,.16); cursor: not-allowed }
.cal__d[aria-pressed="true"] { background: var(--lime); color: var(--ink) }
.cal__d.is-today { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28) }

.times { display: grid; gap: 10px; align-content: start; min-height: 0 }
.times__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px }
.times__list { display: grid; gap: 7px; max-height: 262px; overflow-y: auto; padding-right: 4px }
.times__list::-webkit-scrollbar { width: 4px }
.times__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px }
.time {
  padding: 11px 14px; border-radius: 10px; cursor: pointer; text-align: center;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.time:hover { background: rgba(255,255,255,.08); color: #fff }
.time[aria-pressed="true"] { background: var(--lime); color: var(--ink); box-shadow: none }
.times__empty { font-size: 13.5px; color: rgba(255,255,255,.4); padding-top: 6px }
.tz { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38) }

/* ── flow footer ──────────────────────────────────────────── */

.flow__foot { margin-top: clamp(22px,3vw,38px); display: grid; justify-items: center; gap: 16px }
.flow__hint { min-height: 1.3em; font-size: 13.5px; color: rgba(255,255,255,.5) }
.flow__hint.is-err { color: var(--coral) }
.flow__acts { display: flex; align-items: center; gap: 10px }
.flow__back { padding: 12px 18px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.55); cursor: pointer; transition: color .25s var(--ease) }
.flow__back:hover { color: #fff }

/* ── done ─────────────────────────────────────────────────── */

.done { display: grid; justify-items: center; gap: 8px }
.done__tick { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lime) }
.done__tick svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2.4; fill: none }
.done dl { margin-top: clamp(22px,3vw,36px); width: min(430px,100%); border-block: 1px solid rgba(255,255,255,.14) }
.done dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0 }
.done dl > div + div { border-top: 1px solid rgba(255,255,255,.09) }
.done dt { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.38) }
.done dd { margin: 0; font-size: 14.5px; font-weight: 500; text-align: right }

@media (max-width: 780px) {
  .slot { grid-template-columns: 1fr }
  .times__list { max-height: 168px; grid-template-columns: repeat(3,1fr) }
  .sheet__panel { height: 100% }
}

/* ── the date field ────────────────────────────────────────
   Three boxes, not a text input pretending to be one.        */

.date { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1vw, 14px) }
.date.is-off { opacity: .3; pointer-events: none }
.date__cell { display: block }
.date__cell input {
  width: 2.1em; padding: 8px 0;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.22);
  background: transparent; text-align: center;
  font-family: var(--sans); font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 6.4vw, 4.4rem); line-height: 1.1;
  color: #fff; caret-color: var(--lime); outline: none;
  transition: border-color .25s var(--ease);
}
.date__cell input::placeholder { color: rgba(255,255,255,.2) }
.date__cell input:focus { border-bottom-color: var(--lime) }
.date__sep { font-size: clamp(1.6rem, 4.4vw, 3rem); color: rgba(255,255,255,.22); translate: 0 -.06em }

.pick--wide { margin-top: clamp(20px, 3vh, 34px) }

/* ── error, without a wall of red ──────────────────────────
   The field itself flinches once and warms to amber; the line
   underneath carries a mark rather than shouting in colour.   */

@keyframes hm-wrong {
  0%, 100% { translate: 0 0 }
  18% { translate: -7px 0 }
  38% { translate: 6px 0 }
  58% { translate: -4px 0 }
  78% { translate: 2px 0 }
}
.is-wrong { animation: hm-wrong .42s var(--ease) }
.is-wrong input,
.is-wrong .date__cell input { border-bottom-color: var(--peach) }
.is-wrong .pick { box-shadow: inset 0 0 0 1px rgba(245,201,155,.5) }
.flow__underline { transition: background .3s var(--ease) }
.is-wrong .flow__underline { background: var(--peach) }

.flow__hint.is-err {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--peach);
}
.flow__bang {
  display: grid; place-items: center; flex: none;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--peach); color: var(--pitch);
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
}
