/* Page-specific styles for book-now.html. Fonts, nav, footer, buttons,
   cards and modals all come from assets/styles.css. */

html, body { background: var(--surface); }

.section-title { margin-bottom: 12px; }

.reviews-trust-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 26px;
}
.reviews-trust-stars { color: var(--gold); }
.reviews-trust-strip a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.reviews-trust-strip a:hover { color: var(--gold); }

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

/* ---- Step cards ---- */
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  margin-bottom: 20px;
}
.step h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcbb6d, var(--gold) 60%, #a9863a);
  color: #2a1216;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(201,162,75,.35);
}
.step-optional { font-family: var(--font-text); font-weight: 400; font-size: 14px; color: var(--muted); }

/* Location cards */
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.option-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.16); }
.option-card strong { color: var(--brand); font-family: var(--font-display); font-size: 15.5px; }

/* Group stepper */
.stepper { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.stepper button {
  width: 42px; height: 42px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}
#group-count { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--brand); min-width: 20px; text-align: center; }

/* Member fieldsets */
.member-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 22px;
  margin-bottom: 16px;
}
.member-fieldset legend {
  padding: 0 10px;
  font-weight: 600;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 15px;
}
.member-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.member-fields input {
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-text);
  font-size: 14.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.member-fields input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,.16);
}

.chosen-services-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  background: var(--surface-2);
  color: var(--brand);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

.member-subtotal { margin-top: 14px; font-weight: 700; color: var(--brand); font-family: var(--font-display); text-align: right; }

/* Services modal */
.services-modal-content { width: 560px; }
.service-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-btn {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-family: var(--font-text);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.service-options-modal { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; margin-bottom: 16px; }
.service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.service-option:hover { background: var(--surface); }
.service-option:has(input:checked) {
  background: var(--surface-2);
  border-color: var(--gold);
  font-weight: 600;
}
.service-option input[type="checkbox"] {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.selected-receipt { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 16px; }
.selected-receipt h4 { margin: 0 0 8px; font-family: var(--font-display); color: var(--brand); font-size: 15px; }
.receipt-list { font-size: 13px; color: var(--ink); margin-bottom: 8px; }
#services-done { width: 100%; }

/* Date + slots */
.apple-date {
  width: 100%;
  max-width: 320px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-text);
  font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.apple-date:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.16); }
.apple-date:disabled {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.slot-grid > p { grid-column: 1 / -1; }
.slot-btn {
  padding: 11px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 14px;
  transition: all .2s var(--ease);
}
.slot-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--brand); }
.slot-btn.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot-btn:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* Discount */
.discount-row { display: flex; gap: 10px; max-width: 380px; }
.discount-row input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.discount-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.16); }

/* Consent */
.consent-box {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.consent-check input { margin-top: 3px; accent-color: var(--brand); }

/* Payment */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.payment-option:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.16); }
.payment-option input { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }

/* Booking review (summary + confirm-and-pay modals) — bounded and scrollable
   so a large group booking never grows the modal past the viewport. */
.summary-review-list {
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--surface);
}
.review-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.review-member {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.review-member:last-child { border-bottom: none; }
#summary-continue, #confirm-booking-final, #confirm-booking-retry { width: 100%; }
#confirm-booking-retry { margin-top: 10px; }

.booking-notes {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-text);
  font-size: 14px;
  resize: vertical;
  margin-bottom: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.booking-notes:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.16); }

.booking-ref-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dcbb6d, var(--gold) 60%, #a9863a);
  color: #2a1216;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .03em;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin: 10px 0 4px;
}

/* Summary sidebar */
.booking-summary {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 26px;
  overflow: hidden;
}
.booking-summary::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(135deg, #dcbb6d, var(--gold) 60%, #a9863a);
}
.booking-summary h3 { font-family: var(--font-display); color: var(--brand); margin: 0 0 16px; font-size: 19px; }
.summary-lines { display: flex; flex-direction: column; gap: 8px; }
.summary-lines p { font-size: 14px; margin: 0; }
.summary-total {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--brand);
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
#submit-booking { width: 100%; }

.booking-error {
  background: #fdecea;
  border: 1.5px solid #f3b3ac;
  color: #8a1f11;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .member-fields { grid-template-columns: 1fr; }
  .step { padding: 22px 18px; }
}

/* ---- Services modal: fullscreen on small screens so the piercing list is
   always fully visible and reachable, instead of a cramped fixed-width box ---- */
@media (max-width: 600px) {
  #servicesModal { padding: 0; }
  .services-modal-content {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .services-modal-content h3,
  .services-modal-content .service-filters { flex-shrink: 0; }
  .service-options-modal { flex: 1; min-height: 0; margin-bottom: 8px; }
  .services-modal-content .selected-receipt,
  .services-modal-content #services-done { flex-shrink: 0; }
}
