/* =========================================================================
   Booking wizard + legal document styles
   Loaded in addition to style.css on book.html and /legal/ pages
   ========================================================================= */

/* ---- Wizard shell ------------------------------------------------------- */
.booking-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* Progress bar wrapper — gives us room for fade-edge hints that scroll works */
.booking-progress-wrap {
  position: relative;
  margin-bottom: 40px;
}
.booking-progress-wrap::before,
.booking-progress-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 2px;
  width: 24px;
  pointer-events: none;
  z-index: 2;
}
.booking-progress-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--white), rgba(255,255,255,0));
}
.booking-progress-wrap::after {
  right: 0;
  background: linear-gradient(to left,  var(--white), rgba(255,255,255,0));
}

.booking-progress {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--sand);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.booking-progress::-webkit-scrollbar { height: 4px; }
.booking-progress::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

.booking-progress .step {
  flex: 1 0 auto;
  min-width: 110px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
}
.booking-progress .step.visited {
  cursor: pointer;
}
.booking-progress .step.visited:hover {
  color: var(--ocean);
  background: var(--sand-light);
}
.booking-progress .step.locked {
  cursor: not-allowed;
  opacity: 0.55;
}
.booking-progress .step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--gray-700);
  font-size: 0.75rem;
  margin-right: 6px;
}
.booking-progress .step.active {
  color: var(--ocean);
  border-bottom-color: var(--sunset);
}
.booking-progress .step.active .step-num {
  background: var(--sunset);
  color: var(--white);
}
.booking-progress .step.done {
  color: var(--teal);
}
.booking-progress .step.done .step-num {
  background: var(--teal);
  color: var(--white);
}
.booking-progress .step.done .step-num::before {
  content: "\2713";
}
.booking-progress .step.done .step-num span {
  display: none;
}

/* ---- Step panels -------------------------------------------------------- */
.booking-step {
  display: none;
  animation: fadeSlide 0.3s ease;
}
.booking-step.active {
  display: block;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);  }
}
.booking-step h2 {
  margin-bottom: 8px;
}
.booking-step .step-sub {
  color: var(--gray-500);
  margin-bottom: 28px;
}

/* ---- Form grids --------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four  { grid-template-columns: repeat(4, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .two  { grid-column: span 2; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field label .req { color: #c0392b; margin-left: 2px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}
.field textarea { min-height: 90px; resize: vertical; }
.field .hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.field.has-error input,
.field.has-error select {
  border-color: #c0392b;
}
.field.has-error .hint {
  color: #c0392b;
}

/* File upload */
.file-upload {
  display: block;                 /* <label> is inline by default; force block so dashed border renders as one rect */
  position: relative;
  border: 2px dashed var(--sand);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  background: var(--sand-light);
  cursor: pointer;
  box-sizing: border-box;
}
.file-upload:hover { border-color: var(--teal); }
.file-upload input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.file-upload .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload.has-file {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.05);
}
.file-upload .file-preview {
  display: none;
  max-width: 100%;
  max-height: 160px;
  margin: 12px auto 0;
  border-radius: 6px;
}
.file-upload.has-file .file-preview { display: block; }

/* ---- Rental selector ---------------------------------------------------- */
.boat-count-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}
.boat-count-card {
  border: 2px solid var(--sand);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--sand-light);
  transition: all 0.15s;
  text-align: center;
}
.boat-count-card:has(.counter > span:not(:empty)):has(.counter > span) {
  /* no-op — keep card visually neutral regardless */
}
.boat-count-card .bc-head h4 { margin: 0 0 2px; }
.boat-count-card .bc-desc { font-size: 0.85rem; color: var(--gray-500); }
.boat-count-card .bc-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ocean);
  font-weight: 700;
  margin: 10px 0 12px;
}
.counter {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.counter button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  background: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ocean);
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
}
.counter button:hover {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.08);
}
.counter button:active { transform: scale(0.95); }
.counter > span {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ocean);
  min-width: 32px;
  text-align: center;
}
.duration-btn .d-price { font-size: 0.78rem; }
.duration-btn .d-price span { display: inline-block; }
@media (max-width: 560px) {
  .boat-count-grid { grid-template-columns: 1fr; }
}

/* Deprecated, kept for any legacy references */
.boat-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* ---- Qty rows for packages + individual add-ons (Step 1) --------------
   Match the old `.addon-toggle` checkbox-row look. The counter sits on the
   LEFT in the same visual slot the checkbox used to occupy. Add-ons are
   single-line, packages are two-line (name + included items). */
.qty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  background: var(--white);
  transition: all 0.15s;
}
.qty-row.selected {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.05);
}

/* Compact counter that sits where the checkbox used to */
.qty-row .qty-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.qty-row .qty-counter button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  background: var(--white);
  color: var(--ocean);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  transition: all 0.15s;
}
.qty-row .qty-counter button:hover {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.08);
}
.qty-row .qty-counter button:active { transform: scale(0.9); }
.qty-row .qty-counter > span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ocean);
  min-width: 16px;
  text-align: center;
}

/* Single-line addon: counter | name | price */
.qty-row > .qty-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.qty-row > .qty-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ocean);
  white-space: nowrap;
}

/* Two-line package row: counter | (name + includes block) | price */
.qty-row.pkg { align-items: flex-start; padding: 12px 14px; }
.qty-row.pkg .qty-counter { margin-top: 2px; }
.qty-row.pkg .qty-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.qty-row.pkg .qty-info .qty-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.qty-row.pkg .qty-includes {
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.35;
  font-weight: 400;
}
.qty-row.pkg.selected .qty-includes { color: var(--gray-700); }
.qty-row.pkg > .qty-price { margin-top: 2px; }

@media (max-width: 560px) {
  .qty-grid { grid-template-columns: 1fr; }
}
.boat-option {
  border: 2px solid var(--sand);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}
.boat-option:hover { border-color: var(--teal); }
.boat-option.selected {
  border-color: var(--sunset);
  background: rgba(231, 111, 81, 0.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.boat-option h4 { margin: 0 0 4px; }
.boat-option .option-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--ocean);
  font-weight: 700;
}
.boat-option .option-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.duration-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.duration-btn {
  padding: 16px 12px;
  border: 2px solid var(--sand);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}
.duration-btn:hover { border-color: var(--teal); }
.duration-btn.selected {
  border-color: var(--sunset);
  background: rgba(231, 111, 81, 0.05);
}
.duration-btn .d-hours {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ocean);
}
.duration-btn .d-price {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.addon-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.addon-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
}
.addon-toggle:hover { border-color: var(--teal); }
.addon-toggle.selected {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.05);
}
.addon-toggle input { margin: 0; }
.addon-toggle .a-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
.addon-toggle .a-price { color: var(--ocean); font-weight: 700; font-size: 0.9rem; }

/* Packages carry a list of included items under the title */
.addon-toggle.pkg-toggle {
  align-items: flex-start;
  padding: 12px 14px;
}
.addon-toggle.pkg-toggle input {
  margin-top: 3px;
  flex-shrink: 0;
}
.addon-toggle.pkg-toggle .a-price { margin-top: 1px; flex-shrink: 0; }
.addon-toggle.pkg-toggle .pkg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.addon-toggle.pkg-toggle .pkg-info .a-name { flex: none; }
.addon-toggle.pkg-toggle .pkg-includes {
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.35;
  font-weight: 400;
}
.addon-toggle.pkg-toggle.selected .pkg-includes {
  color: var(--gray-700);
}

/* Summary sidebar */
.booking-summary {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.booking-summary h4 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}
.booking-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}
.booking-summary .summary-row .label { color: var(--gray-700); }
.booking-summary .summary-row.total {
  border-top: 2px solid var(--sand);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ocean);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .form-grid, .form-grid.three, .form-grid.four { grid-template-columns: 1fr 1fr; }
  .form-grid .two { grid-column: 1 / -1; }
  .boat-select-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; }
  .form-grid .two, .form-grid .full { grid-column: 1; }
  .duration-select, .addon-toggle-grid { grid-template-columns: 1fr; }
}

/* ---- Party manifest ----------------------------------------------------- */
.manifest-count-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.participant-card {
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--white);
}
.participant-card .p-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.participant-card .p-header h4 { margin: 0; }
.participant-card .p-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.p-type-badge.adult { background: rgba(42, 157, 143, 0.15); color: var(--teal); }
.p-type-badge.minor { background: rgba(231, 111, 81, 0.15); color: var(--sunset); }

/* ---- Legal document display (wizard & standalone) ---------------------- */
.legal-doc {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  padding: 28px 32px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 20px;
  line-height: 1.65;
}
.legal-doc.full { max-height: none; }
/* renderDocument() wraps its output in <article class="legal-doc">. When that
   lands inside the #doc-rental-agreement scroll box (also .legal-doc), it would
   create a second nested scroll box — the "box in a box" that made reaching the
   bottom finicky. Flatten any nested .legal-doc so there's ONE scroll container. */
.legal-doc .legal-doc {
  max-height: none;
  overflow: visible;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: none;
}
.legal-doc .doc-header {
  border-bottom: 2px solid var(--sand);
  margin-bottom: 20px;
  padding-bottom: 14px;
}
.legal-doc .doc-header h2 { margin: 0 0 4px; }
.legal-doc .doc-version {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
}
.legal-doc .doc-intro {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-top: 12px;
}
/* Florida Statute 744.301 minor-waiver statutory notice — must be conspicuous
   and at least 5 points larger than surrounding text. Body renders ~15px; 1.5rem
   (~24px) is ~6.7pt larger, comfortably clearing the 5-point minimum. */
.legal-doc .doc-statutory-notice {
  border: 2px solid var(--ocean);
  background: #fff8e1;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.45;
  text-transform: uppercase;
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: 8px;
}
.legal-doc .doc-section {
  margin-bottom: 18px;
}
.legal-doc .doc-section h3 {
  font-size: 1.05rem;
  color: var(--ocean);
  margin: 0 0 6px;
}
.legal-doc .doc-section p {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: var(--gray-700);
}
.doc-scroll-notice {
  background: #fff3cd;
  border-left: 3px solid #e89908;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: #7a5b00;
  font-weight: 500;
}
.doc-scroll-notice.read { display: none; }

/* Missing-requirements banner shown on click when sign button requirements aren't met */
.requirement-banner {
  background: #f8d7da;
  border-left: 4px solid #c0392b;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.93rem;
  color: #721c24;
  line-height: 1.5;
}
.requirement-banner strong { color: #721c24; }
.requirement-banner ul { padding-left: 18px; }

/* Read-only certification list shown above the master-ack checkbox */
.cert-list {
  margin: 0 0 16px;
  padding: 16px 20px 16px 36px;
  background: var(--sand-light);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  list-style: disc;
}
.cert-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--gray-700);
}
.cert-list li:last-child { margin-bottom: 0; }

/* Single summary ack — slightly more prominent than list-style acks */
.ack-item.single-ack {
  padding: 14px 18px;
  border-width: 1.5px;
  background: rgba(42, 157, 143, 0.03);
}
.ack-item.single-ack.checked {
  background: rgba(42, 157, 143, 0.08);
}

/* Checkbox acknowledgments */
.ack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.ack-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border: 1px solid var(--sand);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
}
.ack-item:hover { border-color: var(--teal); }
.ack-item input[type="checkbox"] {
  margin: 4px 0 0;
  cursor: pointer;
  flex-shrink: 0;
}
.ack-item.checked {
  background: rgba(42, 157, 143, 0.05);
  border-color: var(--teal);
}
.ack-item span {
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Signature pad */
.signature-block {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.signature-block .sig-label {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.signature-canvas-wrap {
  position: relative;
  border: 2px dashed var(--sand);
  border-radius: 8px;
  background: var(--sand-light);
  height: 180px;
  overflow: hidden;
}
.signature-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
}
.signature-canvas-wrap .sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-style: italic;
  pointer-events: none;
}
.signature-canvas-wrap.has-ink .sig-placeholder { display: none; }
.signature-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.85rem;
}
.signature-actions button {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  text-decoration: underline;
}
.signature-actions button:hover { color: var(--sunset); }

/* Intent-to-sign box (ESIGN requirement) */
.intent-box {
  background: var(--ocean);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
}
.intent-box input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.intent-box label { cursor: pointer; }

/* ---- Waiver routing cards (step 5) -------------------------------------- */
.waiver-card {
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--white);
}
.waiver-card .wc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.waiver-card .wc-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wc-status.pending { background: var(--sand); color: var(--gray-700); }
.wc-status.signed  { background: rgba(42, 157, 143, 0.15); color: var(--teal); }
.wc-status.emailed { background: rgba(74, 144, 226, 0.15); color: var(--ocean); }
.wc-status.print   { background: rgba(231, 111, 81, 0.15); color: var(--sunset); }

/* In-place "Signed ✓" confirmation that replaces the signing form once a waiver
   is signed — makes the saved state unmistakable (the old flow cleared the pad
   and only flipped a tiny chip at the top). */
.waiver-card.is-signed {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.06);
}
.waiver-signed-confirm {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.waiver-signed-confirm .wsc-badge {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.waiver-signed-confirm .wsc-text { flex: 1 1 180px; }
.waiver-signed-confirm .wsc-text strong { color: var(--teal); }
.waiver-signed-confirm .wsc-sub {
  font-size: 0.85rem;
  color: var(--gray-600, #666);
  margin-top: 2px;
}
.waiver-signed-confirm .wsc-sig {
  flex: 0 0 auto;
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 2px 6px;
}
.waiver-signed-confirm .wsc-resign { flex: 0 0 auto; }

.waiver-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.method-btn {
  padding: 10px 8px;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s;
}
.method-btn:hover { border-color: var(--teal); }
.method-btn.selected {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}
.method-btn .m-icon { display: block; font-size: 1.3rem; margin-bottom: 4px; }

.waiver-inline-panel,
.waiver-email-panel,
.waiver-print-panel {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sand);
}
.waiver-card[data-method="inline"] .waiver-inline-panel,
.waiver-card[data-method="email"]  .waiver-email-panel,
.waiver-card[data-method="print"]  .waiver-print-panel {
  display: block;
}
@media (max-width: 560px) {
  .waiver-methods { grid-template-columns: 1fr; }
}

/* ---- Nav buttons between steps ----------------------------------------- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}
.wizard-nav .btn { min-width: 120px; }

/* ---- Confirmation step ------------------------------------------------- */
.confirmation-card {
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  text-align: center;
}
.confirmation-card .conf-logo {
  display: block;
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
}
.confirmation-card .conf-icon {
  width: 64px;
  height: 64px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.conf-res-id {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--ocean);
  letter-spacing: 0.05em;
  margin: 8px 0;
  /* Heading serif defaults to old-style figures (3/4/5/7/9 dip below the
     baseline). Force lining + tabular figures so the reservation number's
     digits sit level and evenly spaced. */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.packet-section {
  background: var(--sand-light);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
.packet-section h4 { margin: 0 0 10px; color: var(--ocean); }

/* Print — used for standalone legal pages and print-to-sign waivers */
@media print {
  .navbar, .footer, .sticky-cta, .booking-progress, .wizard-nav,
  .no-print { display: none !important; }
  .legal-doc { max-height: none; border: none; padding: 0; }
  body { background: white; color: black; }
}

/* Respect reduced-motion — neutralizes the fadeSlide step animation & transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Experience deep-link arrival prompt (shown when the shopper lands from a tour/experience card) */
.arrival-banner[hidden] { display: none; }   /* respect the hidden attribute (overrides display:flex below) */
.arrival-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: var(--sand-light);
  border: 1px solid var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  color: var(--ocean);
  font-size: 0.95rem;
}
.arrival-banner .ic { color: var(--teal); width: 1.3em; height: 1.3em; flex-shrink: 0; }
.boat-count-grid.needs-attention {
  outline: 2px solid var(--teal-light);
  outline-offset: 6px;
  border-radius: var(--radius-md);
  animation: bc-pulse 2.4s ease 2;
}
@keyframes bc-pulse {
  0%, 100% { outline-color: var(--teal-light); }
  50%      { outline-color: rgba(42, 157, 143, 0.2); }
}
