/* ============================================================
   ByteShark Events — checkout page (book.html)
   Builds on styles.css: same tokens, Geist, header and buttons
   ============================================================ */

.book-back {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--violet);
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(90, 22, 176, .35);
  transition: background-color .2s;
}
.book-back::before { content: "← "; }
/* keep the header on one line at every width and text size */
.book-page .site-header { flex-wrap: nowrap; }
.book-page .brand { min-width: 0; }
.book-page .brand-name { white-space: nowrap; }
.book-back { flex: none; white-space: nowrap; }
.book-back:hover { background: rgba(90, 22, 176, .06); }

/* ---------- Page frame ---------- */
.checkout {
  display: block;
  margin: 0 var(--gutter) var(--gutter);
  padding: clamp(28px, 5vw, 72px) var(--pad) clamp(40px, 6vw, 88px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(232, 210, 166, .55), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(198, 164, 244, .35), transparent 65%),
    var(--blush);
}
.checkout-head, .checkout-grid { max-width: 1240px; margin: 0 auto; }
.checkout-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.checkout-eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep);
}
.checkout-title {
  margin: 0; font: 500 clamp(42px, 6vw, 84px)/.95 var(--serif); letter-spacing: -.035em;
}
.checkout-title em, .compare-title em { font-weight: 400; color: var(--violet); }
.checkout-sub { margin: 0; color: var(--ink-soft); font-size: 16px; text-align: right; }

.checkout-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}

/* ---------- Seat picker ---------- */
.picker-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.picker-title { margin: 0; display: flex; align-items: center; gap: 12px; font: 600 18px/1.2 var(--sans); white-space: nowrap; }
.compare-btn { white-space: nowrap; }
.step {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(30, 18, 48, .25); font-size: 12px; font-weight: 700;
}
.compare-btn {
  background: none; border: 0; cursor: pointer; padding: 8px 2px;
  font: 600 15px/1 var(--sans); color: var(--violet);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px;
  transition: background-size .4s var(--ease-out);
}
.compare-btn:hover { background-size: 100% 1.5px; }

.tiers { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.tier {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  border-radius: 20px;
  background: rgba(250, 247, 253, .72);
  border: 1.5px solid rgba(90, 22, 176, .14);
  cursor: pointer;
  transition: border-color .25s, background-color .25s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.tier:hover { border-color: rgba(90, 22, 176, .4); transform: translateY(-1px); }
.tier input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tier-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(30, 18, 48, .35); background: var(--ivory);
  transition: border-color .2s, box-shadow .2s;
}
.tier-body { display: grid; gap: 4px; min-width: 0; }
.tier-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 20px/1.15 var(--serif); letter-spacing: -.01em; }
.tier-tag { font-size: 14px; color: var(--ink-soft); }
.tier-price { font: 600 clamp(20px, 2vw, 24px)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.tier-badge {
  padding: 5px 9px; border-radius: 999px;
  font: 700 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  background: var(--gold-foil); color: var(--plum);
}
.tier-icon .tier-badge { background: var(--plum); color: var(--gold-light); }
.tier-platinum .tier-name, .tier-vvip .tier-name { color: var(--violet); }
.tier-icon .tier-name { color: var(--gold-deep); }

.tier.is-selected {
  background: var(--ivory);
  border-color: var(--violet);
  box-shadow: 0 18px 40px -26px rgba(90, 22, 176, .7), inset 4px 0 0 var(--violet);
}
.tier.is-selected .tier-dot { border-color: var(--violet); box-shadow: inset 0 0 0 5px var(--ivory), inset 0 0 0 11px var(--violet); }
.tier:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.includes { margin-top: 28px; }
.includes-label, .summary-eyebrow, .mobile-bar-small {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
}
.includes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.includes-list li {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(250, 247, 253, .7); border: 1px solid rgba(201, 164, 106, .55);
}
.includes-list li::before { content: "✦ "; color: var(--gold-deep); }

.inside { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(30, 18, 48, .14); }
.inside-title { margin: 0 0 14px; font: 600 18px/1.3 var(--sans); }
.inside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inside-list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; }
.inside-list li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold-deep); }
.inside-list .inside-plus { color: var(--violet); font-weight: 600; }

/* ---------- Summary (dark, like the VVIP card) ---------- */
.summary {
  position: sticky; top: 96px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  color: var(--ivory);
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(155, 44, 245, .45), transparent 60%),
    linear-gradient(160deg, var(--violet), var(--plum) 70%);
  box-shadow: 0 34px 70px -34px rgba(28, 10, 51, .85);
}
.summary-eyebrow { display: flex; justify-content: space-between; color: var(--gold-light); }
.summary-title { margin: 6px 0 10px; font: 500 clamp(28px, 2.6vw, 36px)/1.05 var(--serif); letter-spacing: -.02em; }
.summary-title em { font-weight: 400; color: var(--gold-light); }
.summary-meta { margin: 0; font-size: 14px; color: rgba(250, 247, 253, .75); }
.summary-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-top: 1px solid rgba(250, 247, 253, .16);
}
.summary-seat { margin-top: 22px; border-top-style: dashed; }
.summary-row p { margin: 0; }
.summary-strong { font-weight: 600; font-size: 16px; }
.summary-small { margin: 4px 0 0; font-size: 13px; color: rgba(250, 247, 253, .7); }
.summary-small a, .summary-help a, .agree a { color: var(--gold-light); }
.guests-note { margin: -8px 0 6px; }

.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(250, 247, 253, .3); border-radius: 999px; overflow: hidden;
}
.stepper button {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ivory);
  font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .2s;
}
.stepper button:hover:not(:disabled) { background: rgba(250, 247, 253, .12); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ivory);
  text-align: center; font: 600 16px/1 var(--sans); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary-total { align-items: flex-end; }
.total {
  font: 500 clamp(36px, 3.4vw, 48px)/1 var(--serif); letter-spacing: -.02em;
  background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.agree { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: rgba(250, 247, 253, .85); cursor: pointer; }
.agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.agree-error {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--plum); background: var(--gold-light);
}
.book-cta { width: 100%; margin-top: 18px; padding: 18px 28px; font-size: 16px; }
.book-cta:disabled { cursor: progress; opacity: .8; transform: none; }

/* buyer details on the dark card */
.details { border: 0; margin: 0 0 14px; padding: 18px 0 0; border-top: 1px solid rgba(250, 247, 253, .16); display: grid; gap: 12px; min-width: 0; }
.details legend { padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.field { display: grid; gap: 6px; font-size: 13px; color: rgba(250, 247, 253, .8); }
.field input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(250, 247, 253, .28); background: rgba(250, 247, 253, .08);
  color: var(--ivory); font: 500 16px/1.2 var(--sans);
  transition: border-color .2s, background-color .2s;
}
.field input::placeholder { color: rgba(250, 247, 253, .45); }
.field input:focus { outline: none; border-color: var(--gold-light); background: rgba(250, 247, 253, .14); }
.field input:disabled { opacity: .6; }

/* after a successful payment */
.paid { margin-top: 18px; padding: 22px; border-radius: 20px; background: rgba(250, 247, 253, .1); border: 1px solid var(--gold); outline: none; }
.paid-title { margin: 6px 0 10px; font: 500 26px/1.15 var(--serif); }
.paid-wa { width: 100%; margin-top: 16px; }
.summary.is-paid .book-cta, .summary.is-paid .summary-how, .summary.is-paid .agree, .summary.is-paid .agree-error { display: none; }
.summary-how { text-align: center; margin-top: 12px; }
.summary-help { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(250, 247, 253, .16); text-align: center; font-size: 14px; color: rgba(250, 247, 253, .75); }
.summary-help a { font-weight: 600; text-decoration: none; }

/* ---------- Compare dialog ---------- */
.compare {
  width: min(1040px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  padding: clamp(20px, 3vw, 40px); border: 0; border-radius: var(--radius-lg);
  background: var(--ivory); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(28, 10, 51, .7);
}
.compare::backdrop { background: rgba(28, 10, 51, .55); backdrop-filter: blur(4px); }
.compare-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.compare-title { margin: 0; font: 500 clamp(32px, 4vw, 52px)/1 var(--serif); letter-spacing: -.03em; }
.compare-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(30, 18, 48, .2); background: transparent; color: var(--ink); font-size: 24px; line-height: 1;
}
.compare-close:hover { background: var(--blush); }
.compare-note { margin: 16px 0; font-size: 14px; color: var(--ink-soft); }
.compare-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(90, 22, 176, .14); }
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 13px 14px; text-align: center; border-bottom: 1px solid rgba(30, 18, 48, .08); }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink-soft); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th[class^="col-"] {
  font: 600 16px/1.2 var(--serif); cursor: pointer; color: var(--ink);
  transition: color .2s;
}
.compare-table thead th[class^="col-"]:hover { color: var(--violet); }
.compare-table thead .col-icon { color: var(--gold-deep); }
.compare-table .row-price td { font-weight: 700; color: var(--ink); }
/* first column stays put while the table scrolls sideways on phones */
.compare-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--ivory); min-width: 150px; }
.compare-table .is-chosen { background: var(--blush); }
.compare-table thead .is-chosen { color: var(--violet); box-shadow: inset 0 3px 0 var(--violet); }
.compare-table tfoot td, .compare-table tfoot th { border-bottom: 0; border-top: 1px solid rgba(30, 18, 48, .08); }
.choose-btn {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--sans); color: var(--violet);
  background: transparent; border: 1.5px solid rgba(90, 22, 176, .4);
  transition: background-color .2s, color .2s;
}
.choose-btn:hover { background: rgba(90, 22, 176, .08); }
.compare-table .is-chosen .choose-btn { background: var(--violet); color: var(--ivory); border-color: var(--violet); }
.compare-table .yes { color: var(--gold-deep); }
.compare-table .no { color: rgba(30, 18, 48, .3); }

/* ---------- Phone ---------- */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-sub { text-align: left; }
  .summary { position: static; }
  .book-page { padding-bottom: 92px; }
  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 12px 12px 18px; border-radius: 20px;
    background: rgba(250, 247, 253, .9);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(90, 22, 176, .18);
    box-shadow: 0 18px 40px -18px rgba(28, 10, 51, .55);
    transition: transform .4s var(--ease-out), opacity .3s;
  }
  .mobile-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .mobile-bar > div { min-width: 0; }
  .mobile-bar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar-small { margin: 0 0 4px !important; font-size: 11px; letter-spacing: .14em; }
  .mobile-bar-total { font: 600 22px/1 var(--serif); }
  .mobile-bar-gst { font: 500 12px/1 var(--sans); color: var(--ink-soft); letter-spacing: 0; }
  .mobile-bar-btn { flex: none; white-space: nowrap; padding: 13px 20px; }
}
/* tiniest screens or very large phone text: logo only */
@media (max-width: 350px) {
  .book-page .brand-name { display: none; }
}
/* small screens or large text: smaller brand, tighter bar */
@media (max-width: 400px) {
  .book-page .brand { gap: 8px; }
  .book-page .brand-mark { width: 36px; height: 36px; }
  .book-page .brand-name { font-size: 15px; }
  .book-page .site-header { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .mobile-bar { padding: 10px 10px 10px 14px; }
  .mobile-bar-small { letter-spacing: .06em; font-size: 10.5px; white-space: normal !important; line-height: 1.35; }
  .mobile-bar-total { font-size: 20px; }
  .mobile-bar-gst { display: none; }
  .mobile-bar-btn { padding: 12px 16px; font-size: 13px; }
}
.compare-hint { display: none; }
@media (max-width: 600px) {
  .compare-hint { display: block; margin: -6px 0 10px; font-size: 12px; font-weight: 600; color: var(--violet); }
  .compare-table { font-size: 13px; }
  .compare-table tr > :first-child { min-width: 124px; }
  .checkout { margin: 0 8px 8px; padding: 26px 16px 32px; }
  .book-back { padding: 9px 14px; font-size: 13px; }
  .tier { gap: 14px; padding: 16px; }
  .tier-name { font-size: 18px; }
  .tier-tag { font-size: 13px; }
  .tier-price { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tier, .mobile-bar, .compare-btn { transition: none; }
}
