/* WISHualization booking pages (book.php): the form, paying, and the thank-you page with e-tickets.
   Uses the colours and fonts of site.css; loaded only on booking pages. */

.book-hero { background: var(--night); color: #fff; padding-block: clamp(28px, 4vw, 48px) clamp(30px, 4vw, 52px); position: relative; overflow: hidden; }
.book-hero::before { content: ""; position: absolute; right: -12%; top: -60%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(5,164,204,.2), transparent 70%); pointer-events: none; }
.book-hero .wrap { position: relative; }
.book-hero .eyebrow { color: var(--teal); margin-top: 14px; }
.book-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 8px; }
.book-when { color: #DCD9F5; margin-top: 8px; font-family: var(--display); font-weight: 500; }
.star { color: var(--orange); margin-left: 2px; }

.book-wrap { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.book-wrap > .book-card.narrow, .narrow-wrap { max-width: 720px; margin-inline: auto; }
.narrow-wrap h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 8px 0 22px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.book-main { min-width: 0; display: grid; gap: 22px; }
.book-summary { position: sticky; top: 96px; display: grid; gap: 12px; }

/* The summary: a ticket */
.ticket-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: 0 8px 22px rgba(15,12,46,.07); }
.ticket-card h2 { font-size: 1.5rem; margin-top: 4px; }
.ticket-card .ticket-meta div { grid-template-columns: 78px 1fr; }
.sum { border-top: 2px dashed #CBD1DE; margin-top: 16px; padding-top: 14px; display: grid; gap: 6px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.sum-line span { color: var(--muted); }
.sum-line.total { font-family: var(--display); font-size: 1.15rem; color: var(--ink); margin-top: 4px; }
.sum-line.total span { color: var(--ink); }
.sum-line.due { background: var(--orange-soft); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
.sum-line.due span { color: var(--orange-ink); }
.sum-note { font-size: .88rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.help-line { font-size: .95rem; color: var(--muted); }

/* The form */
.book-form { display: grid; gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.step > h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 12px; }
.step > h2 span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .95rem; flex: none; }
.step .row, .book-mini .row, .biz .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field label { display: grid; gap: 6px; }
.field label > input, .field label > select, .field label > textarea { font: 400 1.05rem/1.4 var(--body); color: var(--text); background: var(--paper); border: 1px solid #CBD1DE; border-radius: 10px; min-height: 48px; padding: 10px 14px; width: 100%; }
.field label > textarea { min-height: 96px; resize: vertical; }
.field label > input:focus, .field label > select:focus, .field label > textarea:focus { outline: 3px solid rgba(5,164,204,.35); border-color: var(--teal); }
.field .hint { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .88rem; }
.field.has-err label > input, .field.has-err label > select { border-color: #C0392B; background: #FFF7F6; }
.field-err { color: #B42318; font-size: .92rem; margin-top: 4px; }
.form-alert { background: #FFF1F0; color: #8A1C12; border: 1px solid #F5C2BD; border-radius: 12px; padding: 12px 16px; }
.form-ok { background: #EAF7EE; color: #1D5C32; border: 1px solid #BFE3CB; border-radius: 12px; padding: 12px 16px; }
.person { border: 0; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 14px; min-width: 0; }
.person legend { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.05rem; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.person legend + * { clear: both; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--orange); }
.biz { display: grid; gap: 14px; padding: 14px; background: var(--paper); border-radius: 14px; }
.plan { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.plan legend { font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.choice, .pay-choice { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; background: var(--surface); }
.choice input, .pay-choice input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.choice span, .pay-choice span { display: grid; }
.choice small, .pay-choice small { color: var(--muted); font-size: .92rem; }
.choice:has(input:checked), .pay-choice:has(input:checked) { border-color: var(--orange); background: #FFFAF6; }
.btn-lg { min-height: 56px; font-size: 1.08rem; padding: 0 30px; justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--muted); }
.book-mini { display: grid; gap: 14px; }
.book-mini p { color: var(--muted); }

/* Paying */
.pay-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 6px; }
.hold-line { margin-top: 10px; color: var(--ink); }
.hold-line.over { color: var(--orange-ink); }
.for-line { color: var(--muted); margin-top: 2px; }
.pay-choices { display: grid; gap: 12px; }
.pay-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 3vw, 26px); display: grid; gap: 16px; }
.upi-box { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.upi-box .qr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.upi-box .qr svg { width: 100%; height: auto; display: block; }
.upi-box .qr svg path, .eticket .et-qr svg path { fill: var(--ink); }
.upi-amount { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.upi-how ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
code[data-copy] { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: .98rem; cursor: pointer; word-break: break-all; }
code[data-copy]::after { content: "Copy"; font-family: var(--display); font-size: .72rem; color: var(--teal-ink); margin-left: 8px; }
code[data-copy].copied::after { content: "Copied"; color: #1D7A3E; }
.auto-note { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--muted); font-size: .95rem; }
.auto-note .dot { width: 10px; height: 10px; border-radius: 50%; background: #1FA463; box-shadow: 0 0 0 0 rgba(31,164,99,.5); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31,164,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,164,99,0); } }
.bank summary { cursor: pointer; font-family: var(--display); font-weight: 500; color: var(--teal-ink); }
.bank-dl { display: grid; gap: 6px; margin: 12px 0 8px; }
.bank-dl div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.bank-dl dt { color: var(--muted); }
.bank-dl dd { margin: 0; }
.utr-form { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.utr-form h3 { font-size: 1.1rem; }
.utr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.utr-row input { flex: 1 1 220px; font: 400 1.1rem/1.4 var(--body); letter-spacing: .04em; background: var(--paper); border: 1px solid #CBD1DE; border-radius: 10px; min-height: 48px; padding: 10px 14px; }
.pay-card { display: grid; gap: 12px; justify-items: start; }

/* Thank you */
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 12px; }
.book-card.narrow h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.done-card { border-top: 6px solid #1FA463; }
.done-card.pending { border-top-color: var(--teal); }
.done-card h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.book-card.balance { border-top: 6px solid var(--orange); }
.sub { font-size: 1.35rem; margin-top: 10px; }
.next-steps ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.inv-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.linkish { background: none; border: 0; color: var(--teal-ink); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.book-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.choose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.choose-card { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.choose-card b { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.choose-card em { font-style: normal; font-family: var(--display); font-weight: 600; color: var(--teal-ink); font-size: .9rem; }
.choose-card:hover { border-color: var(--teal); }

/* E-ticket */
.tickets-list { display: grid; gap: 16px; }
.eticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 22px rgba(15,12,46,.07); break-inside: avoid; }
.eticket header { background: var(--surface); border-bottom: 4px solid var(--orange); display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; }
.eticket header img { width: 150px; height: auto; }
.eticket header span { font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--orange-ink); }
.et-body { display: grid; grid-template-columns: 1fr 180px; }
.et-info { padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.et-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.et-city { font-family: var(--display); font-weight: 600; color: var(--orange-ink); }
.et-info dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 12px 0 0; }
.et-info dt { color: var(--muted); font-size: .85rem; }
.et-info dd { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); }
.et-due { color: var(--orange-ink); font-weight: 600; margin-top: 8px; }
.et-qr { border-left: 2px dashed #CBD1DE; padding: 16px; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; }
.et-qr svg { width: 148px; height: 148px; }
.et-qr small { color: var(--muted); font-size: .8rem; }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-summary { position: static; }
  .summary-first .book-summary { order: -1; }
}
@media (max-width: 640px) {
  .step .row, .book-mini .row, .biz .row { grid-template-columns: 1fr; }
  .upi-box { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .upi-box .qr { width: 220px; }
  .bank-dl div { grid-template-columns: 1fr; gap: 0; }
  .et-body { grid-template-columns: 1fr; }
  .et-qr { border-left: 0; border-top: 2px dashed #CBD1DE; }
  .btn-lg { width: 100%; }
}
/* Booking pages have their own buttons: no "Book your seat" bar at the bottom of phones */
.phone-bar { display: none !important; }
@media (max-width: 760px) { .wa-float { display: grid; } }
@media print {
  .site-header, .site-footer, .book-summary, .next-steps, .inv-list, .sub, .form-note, .preview-strip, .book-card, .help-line, .float-wa, .wa-float { display: none !important; }
  .book-grid { display: block; }
  .eticket { box-shadow: none; margin-bottom: 16px; }
  body { background: #fff; }
}
.field .lbl { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .lbl .hint { margin-left: 4px; }
.field label > .lbl + * { margin-top: 0; }
.choice input, .pay-choice input, .check input { min-height: 0 !important; width: 20px !important; height: 20px; padding: 0; margin: 0; flex: none; background: none; }
.check input { margin-top: 3px; }
