/* Booking tool – loaded after styles.css */
.booking-section { scroll-margin-top: 40px; }
/* The booking tool keeps its own, narrower centred width (both panels + gap) even when the page is wider. */
.booking-section > .wrap { max-width: calc(1384px + 2 * var(--gutter)); }

.booking-intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; margin-bottom: clamp(28px, 4vw, 44px); scroll-margin-top: 100px;
}

/* Progress */
.progress { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.progress li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 7px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
}
.progress li span {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); font-size: 0.78rem;
}
.progress li.is-active { background: var(--tint); color: var(--ink); }
.progress li.is-active span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.progress li.is-done { color: var(--ink); }
.progress li.is-done span { background: var(--tint); border-color: var(--tint); font-size: 0; }
.progress li.is-done span::before { content: "✓"; font-size: 0.78rem; }
@media (max-width: 560px) {
  .progress { width: 100%; }
  .progress li { flex: 1; justify-content: center; padding: 8px 6px; font-size: 0.8rem; }
}

.booking-error { margin-bottom: 20px; padding: 13px 18px; border-radius: 10px; font-size: 0.92rem; background: #fde8e6; color: #8a1f14; }
.booking-error[hidden], .step[hidden] { display: none; }

.booking h3 { font-size: 1.1rem; }
.booking h3 .muted { font-weight: 500; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: inherit; font-size: 1.3rem; line-height: 1; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.back-link {
  padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
}
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Step 1 ---------- */
/* Calendar and times keep a natural width and sit together in the middle. */
.pick { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 720px); justify-content: center; gap: clamp(16px, 2vw, 24px); }
.pick__panel { padding: clamp(20px, 3vw, 32px); background: var(--tint); border-radius: 22px; scroll-margin-top: 70px; }
@media (max-width: 860px) { .pick { grid-template-columns: minmax(0, 1fr); } }

/* Calendar */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal__title { font-size: 1.3rem !important; font-weight: 600; letter-spacing: -0.02em; }
.cal__nav { display: flex; gap: 6px; }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__weekdays span { text-align: center; font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); padding-bottom: 6px; }
.cal__grid { min-height: 250px; align-content: start; transition: opacity .2s; }
.cal__grid.is-loading { opacity: .35; pointer-events: none; }
.cal__day {
  position: relative; height: clamp(40px, 9vw, 50px);
  border: 0; border-radius: 10px; background: var(--paper);
  font: inherit; font-weight: 500; font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.cal__day:hover:not(:disabled) { background: #e8e8ed; }
.cal__day:disabled { cursor: default; color: #b8b8bd; background: transparent; }
.cal__day.is-full { text-decoration: line-through; }
.cal__day.is-today::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px;
  margin-left: -2px; border-radius: 50%; background: currentColor;
}
.cal__day.is-selected { background: var(--ink); color: var(--paper); }
.cal__legend { margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); }
.cal__legend-full { color: #b8b8bd; font-weight: 600; text-decoration: line-through; margin-right: 4px; }

/* Duration */
.duration { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.duration__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.duration__rate { font-size: 0.9rem; color: var(--ink-soft); }
.duration__rate strong { color: var(--ink); font-size: 1rem; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 5px; border-radius: 12px; background: var(--tint); }
.stepper .icon-btn { border: 0; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.stepper output { font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.duration__tip { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); min-height: 1.3em; }

/* Slots */
.slots h3 { margin-bottom: 14px; }
.slots__group + .slots__group { margin-top: 14px; }
.slots__label { margin-bottom: 6px; font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.slot {
  padding: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: inherit; font-weight: 500; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:disabled { cursor: default; color: #b8b8bd; border-color: transparent; background: transparent; }
.slot.is-busy { text-decoration: line-through; }
.slot.is-selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.slot.is-range { background: #e8e8ed; border-color: #e8e8ed; color: var(--ink); text-decoration: none; }
.slots__empty { margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: var(--tint); font-size: 0.9rem; color: var(--ink-soft); }
.slots__empty[hidden] { display: none; }

/* Sticky action bar */
.pickbar {
  grid-column: 1 / -1;
  position: sticky; bottom: 16px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 14px 14px 24px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.pickbar__info { display: flex; flex-direction: column; min-width: 0; }
.pickbar__info strong { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickbar__info span { font-size: 0.82rem; opacity: .6; }
.pickbar__action { display: flex; align-items: center; gap: 18px; flex: none; }
.pickbar__total { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.pickbar .btn { background: var(--paper); color: var(--ink); font-family: inherit; cursor: pointer; }
.pickbar .btn:disabled { opacity: .3; cursor: default; transform: none; }
@media (max-width: 560px) {
  .pickbar { padding: 12px 12px 12px 16px; bottom: 10px; }
  .pickbar__info strong { font-size: 0.88rem; }
  .pickbar__info span { font-size: 0.76rem; }
  .pickbar__total { font-size: 1.15rem; }
  .pickbar__action { gap: 12px; }
  .pickbar .btn { padding: 0.8em 1.1em; }
}

/* ---------- Step 2 ---------- */
.details { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .details { grid-template-columns: minmax(0, 1fr); } }
.details .back-link { margin-bottom: 24px; }

.summary { position: sticky; top: 96px; padding: 26px; border-radius: 18px; background: var(--tint); }
@media (max-width: 960px) { .summary { position: static; } }
.summary h3 { margin-bottom: 8px; }
.summary__list { margin: 0; }
.summary__list[hidden] { display: none; }
.summary__list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.summary__list dt { color: var(--ink-soft); }
.summary__list dd { margin: 0; text-align: right; font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.summary__total strong { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.025em; }
.summary__note { font-size: 0.82rem; color: var(--ink-soft); }
.summary__cta { width: 100%; margin-top: 20px; font-family: inherit; cursor: pointer; }
.summary__cta:disabled { opacity: .5; cursor: progress; transform: none; }

/* Form */
.form fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 14px; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; }
.form legend .muted, .form label .muted { font-weight: 400; font-size: 0.9em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form__row[hidden] { display: none; }
.form__row--full { grid-template-columns: 1fr; }
.form__row--zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.billing-type { margin-bottom: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__row label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea, .form select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.form input.is-touched:invalid, .form select.is-touched:invalid { border-color: #c4392b; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checks .check { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, background .15s; }
.checks .check:hover { border-color: var(--ink); }
.checks .check:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check span { flex: 1; font-size: 0.95rem; }
.check b { font-weight: 600; }
.check em { font-style: normal; font-weight: 600; white-space: nowrap; }
.check--terms span { color: var(--ink-soft); font-size: 0.9rem; }
.check--terms a { color: var(--ink); }
.check--terms + .check--terms { margin-top: 12px; }
.cancel-terms { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--tint); font-size: 0.9rem; }
.cancel-terms strong { display: block; margin-bottom: 8px; font-size: 0.95rem; }
.cancel-terms ul { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; }
.cancel-terms li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.cancel-terms li b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cancel-terms small { color: var(--ink-soft); font-size: 0.8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Step 3 ---------- */
.done { max-width: 640px; }
.done__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); margin-bottom: 22px; }
.done__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important; font-weight: 600; letter-spacing: -0.03em; outline: none; }
.done__lead { margin: 10px 0 26px; font-size: 1.1rem; color: var(--ink-soft); }
.done__details { margin: 0 0 22px; border-top: 1px solid var(--line); }
.done__details div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.done__details dt { color: var(--ink-soft); }
.done__details dd { margin: 0; font-weight: 600; text-align: right; }
.done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.done__actions .btn--ghost { background: none; font-family: inherit; cursor: pointer; color: var(--ink); }

/* Hint for members: they book in the member portal */
.member-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  margin-bottom: 20px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-soft);
}
.member-note a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.member-note a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Phones: full-screen booking app (booking.js adds .is-wizard up to 860 px) ---------- */
/* In the page only a launcher shows; the tool itself opens as a fixed, screen-sized app (.is-app)
   with one question per screen. No page scroll, no zoom: pinch and double-tap are switched off
   with touch-action, and a step only scrolls inside itself if a very small phone needs it. */
.booking-launch, .wizhead, .wbar { display: none; }
.is-wizard .booking-launch {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 22px; border-radius: 18px; background: var(--tint);
}
.is-wizard .booking-launch p { color: var(--ink-soft); }
.is-wizard .booking-launch .btn { width: 100%; font-family: inherit; cursor: pointer; }
.is-wizard .progress, .is-wizard .member-note, .is-wizard #booking:not(.is-app) { display: none; }

html.booking-open, html.booking-open body { overflow: hidden; overscroll-behavior: none; }
#booking.is-app {
  position: fixed; inset: 0; z-index: 1000;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  background: var(--paper);
  touch-action: pan-y; overscroll-behavior: contain;
  -webkit-text-size-adjust: 100%;
}
#booking.is-app button, #booking.is-app label, #booking.is-app input { touch-action: manipulation; }
#booking.is-app input, #booking.is-app select, #booking.is-app textarea { font-size: 16px; } /* < 16px makes iOS zoom on focus */
.is-app .wizhead { display: block; flex: none; padding-bottom: 14px; }
.is-app .booking-error { flex: none; margin: 0 0 12px; }
.is-app > .step:not([hidden]) {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.is-app > .step::-webkit-scrollbar { display: none; }
.is-app .wbar:not([hidden]) { display: flex; flex: none; position: static; margin-top: 12px; }

/* only the blocks tagged for the current screen stay visible */
.is-app[data-wstep="dur"] [data-w]:not([data-w~="dur"]),
.is-app[data-wstep="day"] [data-w]:not([data-w~="day"]),
.is-app[data-wstep="time"] [data-w]:not([data-w~="time"]),
.is-app[data-wstep="contact"] [data-w]:not([data-w~="contact"]),
.is-app[data-wstep="billing"] [data-w]:not([data-w~="billing"]),
.is-app[data-wstep="shoot"] [data-w]:not([data-w~="shoot"]),
.is-app[data-wstep="review"] [data-w]:not([data-w~="review"]) { display: none; }
.is-app .pickbar:not(.wbar), .is-app .details .back-link, .is-app .summary__cta,
.is-app .duration__head h3, .is-app .slots > h3, .is-app .form legend { display: none; }

.wizhead__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizhead__count { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.wizhead__close {
  width: 40px; height: 40px; margin: -6px -6px -6px 0; border: 0; border-radius: 50%; background: var(--tint);
  font: inherit; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.wizhead__title { margin-top: 6px; font-size: clamp(1.35rem, 6vw, 1.7rem) !important; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.wizhead__bar { height: 4px; margin-top: 14px; border-radius: 2px; background: var(--tint); overflow: hidden; }
.wizhead__bar span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--ink); transition: width .3s ease; }

/* screen 1: duration, centred in the free space */
.is-app .pick:not([hidden]) { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
.is-app .pick__panel { padding: 0; background: none; border-radius: 0; }
.is-app[data-wstep="dur"] .pick { justify-content: center; }
.is-app .duration { padding: 0; margin: 0; border: 0; }
.is-app .duration__head { justify-content: center; margin-bottom: 18px; }
.is-app .duration__rate { font-size: 1.05rem; }
.is-app .stepper { padding: 8px; }
.is-app .stepper .icon-btn { width: 56px; height: 56px; font-size: 1.6rem; }
.is-app .stepper output { font-size: 1.8rem; }
.is-app .duration__tip { text-align: center; }
.dur-quick { display: none; }
.is-app .dur-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
.dur-quick button {
  padding: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.3;
}
.dur-quick button small { display: block; font-weight: 500; color: var(--ink-soft); }
.dur-quick button.is-selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dur-quick button.is-selected small { color: inherit; opacity: .75; }

/* screen 2: calendar sized to the screen */
.is-app .cal__head { margin-bottom: 10px; }
.is-app .cal__grid { min-height: 0; }
.is-app .cal__day { height: clamp(38px, 6.2dvh, 52px); }
.is-app .cal__legend { margin-top: 10px; }

/* screen 3: times */
.is-app .slots__grid { grid-template-columns: repeat(4, 1fr); }
.is-app .slot { padding: clamp(9px, 1.5dvh, 13px) 0; }
.is-app .slots__group + .slots__group { margin-top: 10px; }

/* screens 4-7: form */
.is-app .details:not([hidden]) { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.is-app .summary { order: -1; }
.is-app .form fieldset { margin-bottom: 18px; }
.is-app .form__row { margin-bottom: 10px; gap: 10px; }
.is-app .form input:not([type="checkbox"]):not([type="radio"]), .is-app .form select { padding: 12px 14px; }
.is-app .summary { position: static; margin-bottom: 14px; padding: 16px 18px; }
.is-app .summary__list div { padding: 8px 0; }
.is-app .summary__total { padding-top: 12px; }
.is-app .summary__total strong { font-size: 1.6rem; }
.is-app .summary h3, .is-app .summary__note { display: none; }
.is-app .summary__list div:first-child { padding-top: 0; }
.is-app .cancel-terms { margin-bottom: 14px; padding: 14px 16px; font-size: 0.85rem; }
.is-app .check--terms + .check--terms { margin-top: 10px; }

/* screen 8: done */
.is-app .done { padding-top: 8px; }

.wbar { padding: 10px 10px 10px 8px; bottom: auto; }
.wbar__back {
  flex: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14);
  color: var(--paper); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.wbar__back:disabled { display: none; }
.wbar:has(.wbar__back:disabled) { padding-left: 18px; }
.wbar .pickbar__info { flex: 1; }
.wbar .pickbar__info span { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
