/* Booking, cancel and hub pages. Builds on styles.css (colours, type, buttons). */

.app-page { min-height: 100svh; }

/* Anything marked hidden stays hidden, even if a class gives it a layout. */
.app-page [hidden] { display: none !important; }

.app-head { border-bottom: 1px solid var(--slate-line); }
.app-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--head);
}

.app {
  max-width: 760px;
  padding-block: 40px 96px;
}
.app-intro { margin-bottom: 32px; }
.app-title {
  margin-top: 10px;
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  line-height: .92;
  letter-spacing: -.01em;
}
.app-sub { margin-top: 14px; color: var(--soft); }
.app-status { color: var(--soft); }
.app-error { min-height: 1.5em; margin-top: 4px; color: #FFB4A8; font-weight: 600; }
.app-error:empty { min-height: 0; }

/* ---------- Steps ---------- */
.bstep {
  min-width: 0;
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  scroll-margin-top: 16px;
}
.bstep__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.bstep__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--mint);
  font-size: .9375rem;
}
.bstep__note { margin: -6px 0 14px; color: var(--soft); }

/* Calendar: 7 columns, Monday first. */
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  max-width: 460px;
}
.cal__head {
  padding-bottom: 4px;
  color: var(--soft);
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
}
.day, .time {
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  background: var(--charcoal);
  color: var(--led);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.day {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  aspect-ratio: 1;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
}
.day__num { font-size: 1.0625rem; font-weight: 800; line-height: 1; }
.day__month { margin-top: 2px; color: var(--soft); font-size: .6875rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.day:disabled { border-color: transparent; background: transparent; color: #4D565B; cursor: default; }
.day:disabled .day__month { color: #4D565B; }

.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.time { min-height: 52px; font-size: 1.0625rem; font-weight: 700; }

@media (hover: hover) {
  .day:not(:disabled):hover, .time:hover { border-color: var(--soft); }
}
.day[aria-pressed="true"], .time[aria-pressed="true"] {
  border-color: var(--led);
  background: var(--led);
  color: var(--ink);
}
.day[aria-pressed="true"] .day__month { color: var(--paper-soft); }

/* ---------- Details form ---------- */
.pick {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--mint);
  border-radius: 4px;
  background: var(--charcoal);
  font-weight: 700;
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; }
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--led);
  font: inherit;
  font-size: 1.0625rem; /* 17px+ stops iPhones zooming in on tap */
}
.field input:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px rgba(191, 227, 210, .25); }
.field input::placeholder { color: #6E777C; }
.field__hint { color: var(--soft); font-size: .9375rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:not(:empty) { margin-bottom: 16px; }

.book__submit { width: 100%; margin-top: 8px; }
.book__submit:disabled { opacity: .6; cursor: progress; }
.privacy { margin-top: 14px; color: var(--soft); font-size: .875rem; }

/* ---------- Done / message panels ---------- */
.done { display: grid; justify-items: start; gap: 12px; padding-top: 24px; outline: none; }
.done__tick {
  width: 56px;
  height: 56px;
  padding: 12px;
  border-radius: 50%;
  background: var(--bottle);
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.done__when { font-size: 1.375rem; font-weight: 700; }
.done__note { color: var(--soft); }
.done .btn { margin-top: 16px; }

@media (min-width: 600px) {
  .book__submit { width: auto; }
}
