/* The end of every booking: waiver.php, checkout.php, confirmation.php.
   Reuses site.css (.card, .form, .field, .check, .notice, .btn); only what is its own is here. */

.co-narrow { max-width: 860px; }
.co-title { margin: var(--s0) 0 var(--s1); font-size: var(--fs-h1); line-height: 1.05; text-transform: uppercase; }

/* step strip: Waiver · Pick · Pay · Done */
.co-steps { display: flex; gap: var(--s0); list-style: none; margin: 0 0 var(--s3); padding: 0; counter-reset: step; }
.co-steps li {
  flex: 1; counter-increment: step; text-align: center;
  padding: var(--s1) var(--s0); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase;
  background: var(--char); color: var(--grey);
}
.co-steps li::before { content: counter(step) ". "; }
.co-steps li.is-done { background: var(--steel); color: var(--chalk); }
.co-steps li.is-done::before { content: "✓ "; color: var(--green-ok); }
.co-steps li.is-current { background: var(--red); color: var(--white); }

/* waiver */
.waiver-text {
  max-height: 320px; overflow-y: auto;
  background: var(--chalk); color: var(--ink);
  border: 2px solid var(--steel); border-radius: var(--radius);
  padding: var(--s2) var(--s3); font-size: var(--fs-md); line-height: 1.55;
}
.waiver-text h3 { margin: 0 0 var(--s1); font-size: var(--fs-h3); color: var(--ink); }
.waiver-text h4 { margin: var(--s2) 0 var(--s0); font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .03em; color: var(--red-dark); }
.waiver-text p { margin: 0 0 var(--s1); }
.waiver-text:focus { outline: 3px solid var(--red-glow); }
.waiver-text + .small { margin: var(--s0) 0 0; }
.co-form { display: grid; gap: var(--s2); margin-top: var(--s2); }
.sig-block .card-body { display: grid; gap: var(--s1-5); }   /* every fieldset is reset in site.css */
.sig-relation { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.sig-relation input:disabled + * , .sig-relation label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.sig-name { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: var(--fs-h3) !important; }
.waiver-text ul, .waiver-text ol { margin: 0 0 var(--s1); padding-left: var(--s3); }
.waiver-text li { margin-bottom: var(--s0); }
.waiver-text .waiver-ack { font-weight: 700; border: 2px solid var(--ink); background: var(--fill); padding: var(--s1-5); }

/* the family waiver form (waiver.php): guardian · athletes · text · signature */
.wv-errors { margin: var(--s0) 0 0; padding-left: var(--s2); }
.wv-card .card-body { display: grid; gap: var(--s1-5); }
.wv-legend { padding: 0; font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.wv-grid { display: grid; gap: var(--s1) var(--s2); }
@media (min-width: 720px) { .wv-grid { grid-template-columns: 1fr 1fr; } .wv-wide { grid-column: 1 / -1; } }
.wv-grid .field { margin: 0; }
.wv-static { padding: var(--s1) 0; font-weight: 600; overflow-wrap: anywhere; }
.wv-athletes { list-style: none; margin: 0; padding: 0; }
.wv-athlete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s0) var(--s1-5); padding: var(--s1) 0; border-bottom: 1px dashed var(--grey-light); }
.wv-athlete-name { font-weight: 700; }
.wv-bd { width: 100%; margin: var(--s0) 0 0; }
.wv-new + .wv-new { padding-top: var(--s1); border-top: 1px dashed var(--grey-light); }
.wv-add { justify-self: start; color: var(--ink); border-color: var(--grey-light); }
.wv-form .field-label { margin: var(--s0) 0 0; }
/* step 1 for a visitor not logged in: the email, then a password if the email is known */
.wv-step { max-width: 30rem; margin-inline: auto; }
.wv-step .wv-legend { margin: 0; }
.wv-step .field { margin: 0; }

/* the waiver page is centred: title, lead, headings, labels, inputs, checks, button.
   Only the waiver TEXT in its scroll box stays left; the step strip is untouched. */
.page-waiver .co-narrow > .co-title,
.page-waiver .co-narrow > .lead,
.page-waiver .notice,
.page-waiver .wv-card .card-body { text-align: center; }
.page-waiver .co-narrow > .lead { margin-inline: auto; }
.page-waiver .wv-errors { padding-left: 0; list-style-position: inside; }
.page-waiver .wv-legend { margin-inline: auto; }
.page-waiver .wv-form .field { justify-items: center; }
.page-waiver .wv-athlete { justify-content: center; }
.page-waiver .wv-add { justify-self: center; }
.page-waiver .sig-relation { justify-content: center; }
.page-waiver .wv-form .check { justify-content: center; text-align: left; }
.page-waiver .waiver-text { text-align: left; }

/* checkout */
.co-grid { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 900px) { .co-grid { grid-template-columns: 1fr 1.1fr; } }
.co-lines { list-style: none; margin: 0 0 var(--s1-5); padding: 0; }
.co-lines li { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s1) 0; border-bottom: 1px dashed var(--grey-light); }
.co-amt { font-weight: 700; white-space: nowrap; }
.co-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: var(--fs-xl); text-transform: uppercase; margin-bottom: var(--s1-5); }
.co-recur { margin: 0 0 var(--s1); }
.co-pay .card-body { display: grid; gap: var(--s1-5); }
.co-pay .field { margin: 0; }
.co-demo-note { margin: 0; font-size: var(--fs-md); }
.co-row { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: var(--s1); }
#card { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.co-paybtn { margin-top: var(--s0); }
.co-secure { display: flex; align-items: center; justify-content: center; gap: var(--s0); margin: 0; }

/* confirmation */
.confirm-hero { text-align: center; margin-bottom: var(--s3); }
.confirm-tick {
  width: 76px; height: 76px; margin: 0 auto var(--s1-5); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-ok); color: var(--white); box-shadow: 0 0 0 8px color-mix(in srgb, var(--green-ok) 20%, transparent);
}
.confirm-card { margin-bottom: var(--s3); }
.confirm-big { display: grid; gap: .1rem; padding: var(--s1) 0; }
.confirm-big + .confirm-big { border-top: 1px dashed var(--grey-light); }
.confirm-date { font-family: var(--font-display); font-size: var(--fs-xl); text-transform: uppercase; line-height: 1.1; }
.confirm-time { font-size: var(--fs-h3); font-weight: 700; color: var(--red); }
.confirm-cage { font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: .03em; }
.confirm-card .btn-ghost { color: var(--ink); }
.confirm-where { margin-bottom: var(--s3); }
.page-confirm h2.h3 { margin: 0 0 var(--s1); font-size: var(--fs-h3); color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
.confirm-next { display: flex; flex-wrap: wrap; gap: var(--s1-5); }
@media (max-width: 519.98px) { .confirm-next .btn { width: 100%; } }

/* one block per plan order when join.php sells a cage pass and a class plan together (PSA_23051) */
.co-order + .co-order { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px dashed var(--grey-light); }
.co-order-title { font-size: var(--fs-base); margin: 0 0 var(--s1); text-transform: uppercase; letter-spacing: .04em; }
.co-order .co-recur { margin-bottom: var(--s0); }

/* ---------- Checkout and confirmation, centred (platform.md §4, PSA_23054) ----------
   Centred: the page title, each card's heading, the autopay / hold lines, the labels on the card
   form, the confirmation's booking box, "Where" and "Next steps" with their buttons.
   Left as they are: the order lines and totals (a receipt: text left, amount right) and the step strip. */
.page-checkout .co-title { text-align: center; }
.co-summary .card-title, .co-order-title, .co-order > p { text-align: center; }
.co-pay .card-body { text-align: center; }
.confirm-card .card-body { text-align: center; }
.confirm-big { justify-items: center; }
.confirm-where, .page-confirm h2.h3 { text-align: center; }
.confirm-next { justify-content: center; }
