/* Booking page. Builds on /styles.css (colours, type, buttons, form fields). */

/* ---------- header ---------- */
.book-nav { display: flex; align-items: center; gap: 1.7rem; margin-left: auto; }
.book-nav a:not(.btn) {
  color: var(--text); text-decoration: none; font: 500 0.84rem/1.2 var(--nav);
  padding: 0.3rem 0.05rem 0.28rem; border-bottom: 2px solid transparent;
}
.book-nav a:not(.btn):hover { color: var(--green-hi); }
.btn-outline {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7);
}
.btn-outline:hover { filter: none; color: var(--green-hi); box-shadow: inset 0 0 0 1.5px var(--green-hi); }

/* ---------- intro band ---------- */
.book-hero {
  padding: 3.1rem 0 2.6rem; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9,11,9,.97) 0%, rgba(9,11,9,.9) 42%, rgba(9,11,9,.6) 100%),
    url("/img/hero.jpg?v=3") 70% 40% / cover no-repeat;
}
.book-hero h1 { font-size: 3.3rem; }
.book-hero .lead { font-size: 1.05rem; line-height: 1.5; color: #d9ddd5; max-width: 56ch; margin-top: 1rem; }
.assurances { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.assurances li {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border: 1px solid rgba(169,238,77,.35); border-radius: 999px; background: rgba(126,211,33,.08);
  font-size: 0.85rem; font-weight: 500;
}
.assurances li::before {
  content: ""; flex: none; width: 0.38rem; height: 0.72rem; margin: -0.15rem 0.1rem 0 0.15rem;
  border: solid var(--green-hi); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- layout ---------- */
.book-main { padding: 2.2rem 0 3.6rem; background: var(--band); }
.book-layout { display: grid; gap: 1.4rem; }

/* ---------- form: one numbered panel per step ---------- */
.book-form { padding: 0; overflow: hidden; }
.step { margin: 0; padding: 1.5rem 1.6rem 1.6rem; border: 0; border-bottom: 1px solid #262626; min-width: 0; }
.step-title {
  float: left; width: 100%; display: flex; align-items: center; gap: 0.7rem; padding: 0; margin: 0 0 1.05rem;
  font: 700 1.28rem/1.05 var(--head); letter-spacing: 0.035em; text-transform: uppercase; color: var(--text);
}
.step-title .opt { font: 400 0.82rem/1 var(--body); letter-spacing: 0; text-transform: none; }
.step-title .step-n { width: 1.8rem; height: 1.8rem; margin: 0; font-size: 1rem; flex: none; }
.step-body { clear: both; display: grid; gap: 1rem; }
.label { font-size: 0.82rem; font-weight: 700; }
.hint { font-size: 0.82rem; color: var(--muted); }

/* ---------- date calendar: booked dates are crossed out ---------- */
.cal-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.5rem; }
.cal {
  flex: 0 1 23rem; width: 23rem; max-width: 100%; padding: 0.8rem 0.8rem 0.75rem;
  border: 1px solid #30342e; border-radius: 0.7rem; background: #141614;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.55rem; }
.cal-month { font: 700 1.08rem/1 var(--head); letter-spacing: 0.05em; text-transform: uppercase; }
.cal-nav {
  width: 2.3rem; height: 2.3rem; border: 1px solid #3a3e3a; border-radius: 50%; background: transparent;
  color: var(--text); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.cal-nav:hover:not(:disabled) { border-color: var(--green-hi); color: var(--green-hi); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.28rem; }
.cal-dow { padding: 0.15rem 0 0.3rem; text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cal-day {
  position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 0.5rem; cursor: pointer;
  background: #1f231e; color: var(--text); font: 500 0.92rem/1 var(--body); font-variant-numeric: tabular-nums;
}
.cal-day.open:hover { background: #2a3625; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px rgba(169,238,77,.65); }
.cal-day.sel { background: linear-gradient(180deg, #b4f05a, #5fb81d); color: #0c1404; font-weight: 700; box-shadow: none; }
.cal-day.past, .cal-day.soon { background: transparent; color: #50554e; cursor: default; }
.opens-note {
  margin: 0.1rem 0 0.2rem; padding: 0.7rem 0.95rem; border: 1px solid rgba(169,238,77,.35);
  border-radius: 0.45rem; background: rgba(126,211,33,.08); font-size: 0.92rem; color: #d9ddd5;
}
.cal-day.booked {
  background: repeating-linear-gradient(135deg, #3a1a15 0 0.3rem, #2a1411 0.3rem 0.6rem);
  color: #ff9b8c; cursor: not-allowed;
}
.cal-day.booked::after { /* the day is marked off with a slash */
  content: ""; position: absolute; left: 16%; right: 16%; top: 50%; height: 2px; margin-top: -1px;
  border-radius: 2px; background: #ff8a7a; transform: rotate(-45deg);
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.7rem; font-size: 0.78rem; color: var(--muted); }
.cal-legend .lg::before {
  content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.4rem;
  border-radius: 0.2rem; vertical-align: -0.12rem;
}
.lg-sel::before { background: #7ed321; }
.lg-open::before { background: #1f231e; box-shadow: inset 0 0 0 1px #3a3e3a; }
.lg-booked::before { background: repeating-linear-gradient(135deg, #a0473a 0 2px, #3a1a15 2px 4px); }
.cal-side { flex: 1 1 13rem; display: grid; gap: 0.7rem; align-content: start; }
.date-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.date-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.38rem 0.35rem 0.38rem 0.8rem;
  border: 1px solid rgba(169,238,77,.45); border-radius: 999px; background: rgba(126,211,33,.12);
  font-size: 0.88rem; font-weight: 500;
}
.date-chip button {
  width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 1.15rem; line-height: 1;
}
.date-chip button:hover { color: var(--danger); background: rgba(255,122,107,.12); }
.chips-empty { font-size: 0.9rem; color: var(--muted); }
.time-summary { min-height: 1.3em; margin-top: -0.25rem; font-size: 0.92rem; font-weight: 500; color: var(--green-hi); }
.time-summary:empty { display: none; }

.addon-list .addon:first-child { padding-top: 0.2rem; }
.addon-list .addon:last-child { border-bottom: 0; }
.addon.included { cursor: default; color: var(--muted); }
.addon.included input { opacity: 0.75; }

.form-foot { display: grid; gap: 0.75rem; padding: 1.4rem 1.6rem 1.7rem; }
.form-foot .btn { justify-self: start; }
.form-foot .fine { color: var(--muted); }
.form-foot .form-msg:empty { display: none; }

/* ---------- how booking works (above the send button) ---------- */
.next-steps {
  padding: 1.05rem 1.2rem 1.15rem; border: 1px solid rgba(169,238,77,.3); border-radius: 0.45rem;
  background: rgba(126,211,33,.06);
}
.next-steps h4 { font: 700 1rem/1.1 var(--head); letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-hi); margin: 0 0 0.65rem; }
.next-steps ol { display: grid; gap: 0.5rem; counter-reset: next; }
.next-steps li { position: relative; padding-left: 1.85rem; font-size: 0.9rem; line-height: 1.45; color: #d9ddd5; counter-increment: next; }
.next-steps strong { color: var(--text); }
.next-steps li::before {
  content: counter(next); position: absolute; left: 0; top: 0.05rem;
  display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: #23301a; color: var(--green-hi); font: 700 0.75rem/1 var(--body);
}

/* ---------- done ---------- */
.book-layout .success p.success-deposit { margin-top: -0.6rem; }
.recap { max-width: 34rem; margin: 0 auto 1.6rem; text-align: left; }
.recap > div { display: flex; justify-content: space-between; gap: 1.2rem; padding: 0.55rem 0; border-bottom: 1px solid #2e2e2e; font-size: 0.92rem; }
.recap dt { color: var(--muted); }
.recap dd { text-align: right; font-weight: 500; white-space: pre-line; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }

/* ---------- phones and small tablets ---------- */
@media (max-width: 960px) {
  .book-page .header-inner { padding: 0; }
  .book-nav { gap: 1rem; }
  .book-nav a:not(.btn) { display: none; }
  .book-nav .btn { font-size: 0.9rem; }
  .book-hero { padding: 2.2rem 0 2rem; background-position: 60% 40%; }
  .book-hero h1 { font-size: 2.8rem; }
}
@media (max-width: 620px) {
  .book-hero h1 { font-size: 2.45rem; }
  .book-hero h1 span, .book-hero h1 em { white-space: normal; }
  .assurances li { font-size: 0.82rem; }
  .step { padding: 1.25rem 1rem 1.35rem; }
  .form-foot { padding: 1.2rem 1rem 1.4rem; }
  .form-foot .btn { justify-self: stretch; }
  .cal { flex-basis: 100%; width: 100%; }
  .success-actions .btn { flex: 1 1 100%; }
}
