/* ============================================================
   Booking flow — mobile first.
   Base rules target phones; wider screens are progressive additions.
   ============================================================ */

.booking-page{ background:var(--off-white); color:#1b2030; }

.booking-page .site-header .header-inner{ min-height:64px; }
.back-link{
  color:#fff; text-decoration:none; font-size:14px; font-weight:500;
  padding:10px 0;
}
.back-link:hover{ color:var(--lime); }

.booking-wrap{
  width:100%;
  max-width:660px;
  margin-inline:auto;
  padding-inline:18px;
}

.booking{ padding:28px 0 64px; }

.booking-title{
  font-family:var(--font-heading);
  font-size:30px; font-weight:800; line-height:1.15;
  margin:0 0 10px; color:var(--navy);
  letter-spacing:-.02em;
}
.booking-sub{
  margin:0 0 26px; font-size:15px; line-height:1.6; color:#525a70;
}

/* ---------- step indicator ---------- */
.steps{
  display:flex; gap:6px;
  list-style:none; margin:0 0 26px; padding:0;
  counter-reset:step;
}
.steps li{
  flex:1 1 0;
  font-size:11px; font-weight:600; color:#8b93a8;
  text-align:center;
  padding-top:26px;
  position:relative;
  min-width:0;
}
.steps li::before{
  content:attr(data-step-label);
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:22px; height:22px; border-radius:50%;
  display:grid; place-items:center;
  background:#dfe2ea; color:#6b7386;
  font-size:11px; font-weight:700;
}
.steps li::after{
  content:''; position:absolute; top:11px; left:calc(50% + 15px); right:calc(-50% + 15px);
  height:2px; background:#dfe2ea;
}
.steps li:last-child::after{ display:none; }
.steps li span{
  display:block;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.steps li.is-current{ color:var(--navy); }
.steps li.is-current::before{ background:var(--navy); color:#fff; }
.steps li.is-done::before{ content:'✓'; background:var(--lime); color:var(--navy); }
.steps li.is-done::after{ background:var(--lime); }

/* ---------- step panels ---------- */
.step{
  background:#fff;
  border:1px solid #e3e6ee;
  border-radius:14px;
  padding:22px 18px 20px;
}
.step[hidden]{ display:none; }
.step h2{
  font-family:var(--font-heading);
  margin:0 0 6px; font-size:21px; font-weight:800; color:var(--navy);
  letter-spacing:-.01em;
}
.step-note{ margin:0 0 18px; font-size:13.5px; line-height:1.6; color:#68708a; }
.step-note.warn{ color:#b4531b; font-weight:600; }

/* ---------- quantity ---------- */
.qty{
  display:flex; align-items:stretch; gap:0;
  border:2px solid var(--navy); border-radius:12px;
  overflow:hidden; width:100%; max-width:220px; margin:0 0 14px;
}
.qty-btn{
  flex:0 0 56px;
  border:0; background:#f2f4f9; color:var(--navy);
  font-size:26px; line-height:1; font-weight:600;
  cursor:pointer; touch-action:manipulation;
}
.qty-btn:hover{ background:var(--lime); }
.qty-btn:disabled{ opacity:.35; cursor:not-allowed; }
.qty input{
  flex:1 1 auto; width:100%; min-width:0;
  border:0; text-align:center;
  font:700 22px/1 var(--font-heading); color:var(--navy);
  padding:14px 0; background:#fff;
  -moz-appearance:textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.qty input:focus{ outline:2px solid var(--lime); outline-offset:-2px; }

/* ---------- totals ---------- */
.totals{
  margin:20px 0 4px; padding:16px;
  background:#f5f7fb; border-radius:11px;
  font-size:14px;
}
.totals dl{ margin:0; display:grid; grid-template-columns:1fr auto; gap:9px 12px; }
.totals dt{ color:#68708a; }
.totals dd{ margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.totals .grand dt, .totals .grand dd{
  font-weight:800; color:var(--navy); font-size:17px;
  padding-top:10px; border-top:1px solid #dde1ea;
}

/* ---------- fields ---------- */
.field{ margin-bottom:16px; }
.field label{
  display:block; font-size:13px; font-weight:600; color:#39415a; margin-bottom:6px;
}
.req{ color:#c0392b; }
.optional{ color:#8a8a8a; font-weight:400; font-size:12px; }
.field input,
.field textarea{
  width:100%;
  padding:14px 14px;
  border:1px solid #ccd2e0; border-radius:10px;
  background:#fff; color:#1b2030;
  font:inherit; font-size:16px;   /* 16px stops iOS zooming on focus */
  -webkit-appearance:none;
}
.field textarea{ resize:vertical; min-height:84px; line-height:1.5; }
.field input:focus,
.field textarea:focus{
  outline:0; border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(1,9,56,.14);
}
.field input.is-invalid,
.field textarea.is-invalid{ border-color:#c0392b; background:#fff7f6; }
.field .err{ display:block; margin-top:5px; font-size:12.5px; color:#c0392b; font-weight:600; }

.field-row{ display:grid; grid-template-columns:1fr; gap:0; }

/* ---------- guest cards ---------- */
.guest{
  border:1px solid #e3e6ee; border-radius:12px;
  padding:16px 14px 4px; margin-bottom:14px;
  background:#fbfcfe;
}
.guest-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom:14px;
}
.guest-head h3{
  font-family:var(--font-heading);
  margin:0; font-size:15px; font-weight:800; color:var(--navy);
}
.copy-btn{
  border:1px solid #ccd2e0; border-radius:8px; background:#fff;
  font:600 12px/1 inherit; color:var(--navy);
  padding:9px 11px; cursor:pointer; white-space:nowrap;
}
.copy-btn:hover{ border-color:var(--navy); background:#f2f4f9; }

/* ---------- review ---------- */
.review{ margin-bottom:20px; }
.review-block{
  border:1px solid #e3e6ee; border-radius:11px;
  padding:14px 15px; margin-bottom:12px; background:#fbfcfe;
}
.review-block h3{
  font-family:var(--font-heading);
  margin:0 0 8px; font-size:13px; font-weight:800; color:var(--navy);
  text-transform:uppercase; letter-spacing:.06em;
}
.review-block p{ margin:0 0 3px; font-size:14px; line-height:1.55; color:#39415a; }
.review-block .muted{ color:#7d8499; font-size:13px; }
.review-edit{
  background:none; border:0; padding:4px 0; cursor:pointer;
  font:600 12.5px/1 inherit; color:var(--navy); text-decoration:underline;
}

.terms{ font-size:12.5px; line-height:1.6; color:#7d8499; margin:0 0 20px; }

/* ---------- pay ---------- */
.pay{ margin-bottom:18px; min-height:52px; }
.pay-note{ margin:12px 0 0; font-size:12.5px; color:#7d8499; text-align:center; }

/* ---------- buttons ---------- */
.booking .btn{
  border-radius:11px;
  font-size:15px;
  padding:16px 24px;
  border:2px solid transparent;
}
.btn-block{ display:block; width:100%; text-align:center; }
.btn-outline{
  background:transparent; color:var(--navy); border-color:#ccd2e0;
}
.btn-outline:hover{ border-color:var(--navy); background:#f2f4f9; }

.step-actions{
  display:flex; gap:10px; margin-top:22px;
}
.step-actions .btn{ flex:1 1 auto; }
.step-actions .btn-outline{ flex:0 0 auto; }

.form-error{
  margin:16px 0 0; padding:14px 15px;
  background:#fdecea; border:1px solid #f0b4ac; border-radius:10px;
  color:#96281b; font-size:14px; font-weight:600; line-height:1.55;
}

/* ---------- processing overlay ---------- */
.processing{
  position:fixed; inset:0; z-index:200;
  display:grid; place-content:center; justify-items:center; gap:18px;
  background:rgba(1,9,56,.94); color:#fff;
  padding:24px; text-align:center;
}
.processing p{ margin:0; font-size:15px; font-weight:600; max-width:300px; line-height:1.55; }
.spinner{
  width:38px; height:38px; border-radius:50%;
  border:3px solid rgba(255,255,255,.25); border-top-color:var(--lime);
  animation:bu-spin .8s linear infinite;
}
@keyframes bu-spin{ to{ transform:rotate(360deg); } }

/* ---------- notice ---------- */
.notice{
  background:#fff; border:1px solid #e3e6ee; border-radius:14px;
  padding:26px 20px; text-align:center;
}
.notice h2{
  font-family:var(--font-heading);
  margin:0 0 10px; font-size:20px; color:var(--navy); font-weight:800;
}
.notice p{ margin:0 0 16px; font-size:15px; line-height:1.6; color:#525a70; }
.notice p:last-child{ margin-bottom:0; }

/* ---------- confirmation ---------- */
.confirmed{ text-align:center; margin-bottom:22px; }
.tick{
  width:62px; height:62px; margin:0 auto 18px;
  border-radius:50%; display:grid; place-items:center;
  background:var(--lime); color:var(--navy);
}
.tick svg{ width:30px; height:30px; }
.confirmed .booking-title{ margin-bottom:8px; }
.confirmed .booking-sub{ margin-bottom:0; }

.ref-card{
  display:block; text-align:center;
  border:2px dashed var(--navy); border-radius:13px;
  padding:18px; margin-bottom:20px; background:#fff;
}
.ref-label{
  display:block; font-size:11px; font-weight:700; letter-spacing:.11em;
  text-transform:uppercase; color:#68708a; margin-bottom:6px;
}
.ref-code{
  display:block;
  font-family:var(--font-heading);
  font-size:30px; font-weight:800; letter-spacing:.07em; color:var(--navy);
}

.next-list{ margin:0; padding-left:20px; }
.next-list li{ margin-bottom:11px; font-size:14.5px; line-height:1.6; color:#39415a; }
.next-list li:last-child{ margin-bottom:0; }
.next-list strong{ color:var(--navy); }

.detail-table{ width:100%; border-collapse:collapse; }
.detail-table th,
.detail-table td{
  text-align:left; vertical-align:top;
  padding:9px 0; border-bottom:1px solid #eceef4;
  font-size:14.5px; line-height:1.55;
}
.detail-table th{ width:82px; color:#68708a; font-weight:600; font-size:13px; padding-right:12px; }
.detail-table td{ color:#1b2030; font-weight:600; }
.detail-table tr:last-child th,
.detail-table tr:last-child td{ border-bottom:0; }

.sub-head{
  font-family:var(--font-heading);
  margin:26px 0 10px; font-size:15px; font-weight:800; color:var(--navy);
}
.directions{ margin:0; font-size:14.5px; line-height:1.7; color:#39415a; }

.guest-list{ margin:0; padding-left:20px; }
.guest-list li{ margin-bottom:12px; font-size:14.5px; line-height:1.5; color:#1b2030; }
.guest-list .muted{ display:block; color:#7d8499; font-size:13px; font-weight:400; }

/* ---------- footer ---------- */
.booking-footer{
  background:var(--navy); color:#fff;
  padding:24px 0; font-size:13px;
}
.booking-footer p{ margin:0; }
.booking-footer a{ color:var(--lime); }

/* ============================================================
   Wider screens
   ============================================================ */
@media (min-width:560px){
  .booking{ padding:44px 0 80px; }
  .booking-title{ font-size:38px; }
  .step{ padding:30px 28px 26px; border-radius:16px; }
  .step h2{ font-size:24px; }
  .field-row{ grid-template-columns:1fr 1fr; gap:0 16px; }
  .guest{ padding:20px 18px 6px; }
  .steps li{ font-size:12px; }
  .step-actions .btn{ flex:0 1 auto; min-width:150px; }
  .step-actions{ justify-content:flex-end; }
  .step-actions .btn-block{ width:100%; }
}

@media (min-width:860px){
  .booking-wrap{ max-width:720px; }
}

@media (prefers-reduced-motion:reduce){
  .spinner{ animation-duration:2s; }
}

/* ---- demo mode ------------------------------------------------
   Deliberately loud: nobody should ever mistake a demo run for a
   real booking, on screen or in a screenshot. */
.demo-banner{
  display:flex; flex-direction:column; gap:6px;
  margin:0 0 22px; padding:14px 16px;
  background:#fff8e1; border:1px solid #e8c85a; border-left:5px solid #e8c85a;
  border-radius:12px;
}
.demo-banner strong{
  font-family:var(--font-heading);
  font-size:14px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:#7a5b00;
}
.demo-banner span{ font-size:14px; line-height:1.6; color:#5c4a12; }
.demo-banner code{
  font-size:13px; padding:1px 5px; border-radius:4px;
  background:rgba(122,91,0,.12); color:#5c4a12;
}


/* ---- "Need a VAT invoice?" tickbox and the fields it reveals ---- */
.check-field{
  display:flex; align-items:center; gap:10px;
  margin-bottom:8px;
}
.check-field input[type=checkbox]{
  width:20px; height:20px; flex:0 0 auto;
  accent-color:var(--navy); cursor:pointer;
}
.check-field label{
  margin:0; cursor:pointer;
  font-size:15px; font-weight:700; color:var(--navy);
}
.check-note{ margin:0 0 18px; }
.vat-fields{ margin-bottom:4px; }


/* ---- per-guest ticket download on the confirmation page ---- */
.ticket-link{
  display:inline-block; margin-top:6px;
  font-size:13px; font-weight:700; color:var(--navy);
  text-decoration:underline; text-underline-offset:3px;
}
.ticket-link:hover{ color:#000; }
