/* /book/<event>/: steps, the form in white cards (left), a sticky summary (right). bdevents purple; quiet greys. */
:root { --ink: #101828; --ink2: #344054; --mute: #667085; --faint: #98a2b3; --line: #eaecf0; --line2: #d0d5dd; --bg: #f5f5f7; --pu: #4A5AF0; --pu2: #3443D6; --pu-soft: #EEF0FF; --ok: #067647; --bad: #d92d20; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--pu); }
[hidden] { display: none !important; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Top bar */
.bk-top { background: #fff; border-bottom: 1px solid var(--line); }
.bk-top-in { max-width: 1140px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.bk-logo img { width: 34px; height: 34px; border-radius: 9px; }
.bk-back { color: var(--bad); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

/* Steps */
.bk-steps { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 1140px; margin: 0 auto; padding: 28px 20px 8px; }
.bk-st { display: flex; align-items: center; gap: 10px; color: var(--mute); text-decoration: none; font-size: 16px; font-weight: 500; white-space: nowrap; }
.bk-st b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; border: 1.5px solid var(--line2); background: #fff; color: var(--mute); font-size: 15px; }
.bk-st.is-on { color: var(--pu); font-weight: 600; }
.bk-st.is-on b { border-color: var(--pu); color: var(--pu); }
.bk-st.is-done { color: var(--pu); }
.bk-st.is-done b { background: var(--pu); border-color: var(--pu); color: #fff; }
.bk-steps i { flex: 0 1 80px; height: 2px; border-radius: 2px; background: var(--line2); }

/* Layout */
.bk-wrap { max-width: 1140px; margin: 0 auto; padding: 20px 20px 64px; }
.bk-form { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.bk-main { display: grid; gap: 20px; min-width: 0; }
.bk-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.bk-card h2, .bk-done h1 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.bk-sub { margin: 4px 0 20px; color: var(--mute); font-size: 15px; }
.bk-alert { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; font-weight: 600; }
.bk-err { display: block; margin-top: 6px; color: var(--bad); font-size: 14px; font-style: normal; }
/* Back from a failed or cancelled payment: what happened, what to do, who to call (site/checkout.php). */
.bk-payalert { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid #fecdca; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
/* Featured icon: a soft red disc with a lighter halo and an outline "!"; the title's first line sits on its centre line. */
.bk-payalert-ic { flex: 0 0 40px; width: 40px; height: 40px; margin: 6px 0 0 6px; display: grid; place-items: center; border-radius: 50%; background: #fee4e2; color: var(--bad); box-shadow: 0 0 0 6px #fef3f2; }
.bk-payalert-ic svg { display: block; }
.bk-payalert-b { flex: 1 1 auto; min-width: 0; padding-top: 6px; }
.bk-payalert p { margin: 0 0 4px; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.bk-payalert p:last-child { margin-bottom: 0; }
.bk-payalert .bk-payalert-t { min-height: 40px; display: flex; align-items: center; margin: 0 0 2px; color: #b42318; font-size: 17px; font-weight: 700; line-height: 1.3; }
@media (max-width: 480px) { .bk-payalert { gap: 14px; padding: 16px; } .bk-payalert .bk-payalert-t { font-size: 16px; } }
.bk-payalert .bk-payalert-h { margin-top: 8px; color: var(--mute); font-size: 14px; }
.bk-payalert a { color: var(--pu2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bk-note { display: block; margin-top: 8px; color: var(--mute); font-size: 14px; font-style: normal; }
.bk-note.is-ok { color: var(--ok); }
.bk-note.is-bad { color: var(--bad); }

/* Tickets */
.bk-tickets { display: grid; }
.bk-ticket { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px dashed var(--line2); }
.bk-ticket:first-child { border-top: 0; padding-top: 4px; }
.bk-ticket-text strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.bk-ticket-text span { color: var(--mute); font-size: 15px; }
.bk-ticket.is-off { opacity: .55; }
.bk-free-hint, .bk-limit { display: block; margin-top: 2px; color: var(--mute); font-size: 13px; }
.bk-qbtn:disabled { opacity: .4; cursor: not-allowed; }
.bk-qty { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; background: #f2f4f7; }
.bk-qbtn { width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink2); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.bk-qbtn:hover { border-color: var(--pu); color: var(--pu); }
.bk-qty input { width: 56px; border: 0; background: transparent; text-align: center; font-size: 22px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.bk-qty input::-webkit-outer-spin-button, .bk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Fields */
.bk-person { margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfd; }
.bk-person legend { padding: 0 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.bk-person legend span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--pu-soft); color: var(--pu); font-size: 12px; font-weight: 600; }
.bk-field { display: block; margin-top: 14px; }
.bk-field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.bk-field small { color: var(--faint); font-weight: 400; }
.bk-field > small { display: block; margin-top: 4px; }
.bk-field input, .bk-field select, .bk-field textarea, .bk-row input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus, .bk-row input:focus { outline: none; border-color: #b692f6; box-shadow: 0 0 0 4px #f4ebff; }
.bk-field.is-bad input, .bk-field.is-bad select { border-color: var(--bad); }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.bk-check { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--ink2); font-size: 15px; cursor: pointer; }
.bk-check input { width: 18px; height: 18px; accent-color: var(--pu); }
.bk-billing { margin-top: 6px; }

/* Payment options */
.bk-methods { display: grid; gap: 12px; }
.bk-method { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.bk-method:hover { border-color: #c9b6f6; }
.bk-method:has(input:checked) { border-color: var(--pu); background: #fbf9ff; box-shadow: 0 0 0 3px #f4ebff; }
.bk-method input { width: 20px; height: 20px; margin: 0; accent-color: var(--pu); flex: none; }
.bk-method-text { flex: 1; min-width: 0; display: grid; }
.bk-method-text b { font-size: 16px; font-weight: 600; color: var(--ink); }
.bk-method-text small { color: var(--mute); font-size: 13px; }
.bk-method-logo { display: block; height: 34px; width: auto; max-width: 100%; margin: -2px 0 1px -2px; }
.bk-method-logo.is-ssl { height: 22px; margin: 4px 0 7px 0; }   /* the SSLCommerz wordmark is wide and short */
.bk-badge { flex: none; padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.bk-badge.is-bkash { background: #e2136e; color: #fff; }
.bk-badge.is-card { background: #eef4ff; color: #1d4ed8; }
.bk-badge.is-test { background: #fef3c7; color: #92400e; }

/* Summary */
.bk-side { position: sticky; top: 20px; }
.bk-summary { padding: 24px; border: 1px solid #e4dcfb; border-radius: 20px; background: linear-gradient(160deg, #f6f2ff 0%, #fbfaff 45%, #fff4ee 100%); box-shadow: 0 12px 30px rgba(76, 29, 149, .07); }
.bk-summary h2 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #e7e1f7; font-size: 20px; font-weight: 700; }
.bk-summary h2 span { color: var(--pu); font-weight: 600; }
.bk-item { display: flex; gap: 14px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .85); }
.bk-item img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; flex: none; }
.bk-item strong { display: block; font-size: 15px; line-height: 1.35; color: var(--ink); }
.bk-item span { display: block; margin-top: 4px; color: var(--mute); font-size: 13px; }
.bk-lines { display: grid; gap: 6px; margin: 12px 0 0; }
.bk-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .85); font-size: 14px; color: var(--ink2); }
.bk-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-coupon { margin: 16px 0 0; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .9); }
.bk-coupon summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.bk-coupon summary::-webkit-details-marker { display: none; }
.bk-coupon summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .15s; }
.bk-coupon[open] summary::after { transform: rotate(-135deg); }
.bk-coupon[open] { padding-bottom: 14px; }
.bk-pct { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--pu); color: #fff; font-size: 12px; font-weight: 800; }
.bk-row { display: flex; gap: 8px; }
.bk-order { margin-top: 16px; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .9); }
.bk-order h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.bk-totals { margin: 0; }
.bk-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink2); }
.bk-totals dt, .bk-totals dd { margin: 0; }
.bk-totals dd { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-totals .bk-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.bk-totals .bk-total dd { font-size: 24px; font-weight: 800; }

/* Buttons */
.bk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink2); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.bk-btn-ghost:hover { border-color: var(--pu); color: var(--pu); }
.bk-pay { width: 100%; min-height: 56px; margin-top: 18px; border: 0; border-radius: 12px; background: var(--pu); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 6px 16px rgba(74, 90, 240, .28); }
.bk-pay:hover { background: var(--pu2); }
.bk-pay:disabled { background: #B9C1FE; box-shadow: none; cursor: not-allowed; }
.bk-fine { margin: 12px 0 0; text-align: center; color: var(--mute); font-size: 13px; }

/* Done / closed */
.bk-done { max-width: 620px; margin: 24px auto 0; text-align: center; }
.bk-done-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.bk-done p { color: var(--ink2); }
/* A booking's confirmation: the status card left, the booking summary right (like the form); one column on phones. */
.bk-donegrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; margin-top: 24px; }
.bk-donegrid .bk-done { max-width: none; margin: 0; }
.bk-done-note { color: var(--mute) !important; font-size: 14px; }
.bk-done-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 0; }
.bk-btn-main { border: 0; background: var(--pu); color: #fff; box-shadow: 0 6px 16px rgba(74, 90, 240, .25); }
.bk-btn-main:hover { background: var(--pu2); color: #fff; }
.bk-sum-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.bk-pill.is-paid { background: #dcfae6; color: #067647; }
.bk-pill.is-wait { background: #fef0c7; color: #b54708; }
.bk-pill.is-fail { background: #fee4e2; color: #b42318; }
.bk-donegrid .bk-totals dd { text-align: right; overflow-wrap: anywhere; }
.bk-tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #dcfae6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 32px no-repeat; }

/* Phone and small tablet: one column, the summary after the form. */
@media (max-width: 960px) {
	.bk-form, .bk-donegrid { grid-template-columns: minmax(0, 1fr); }
	.bk-side { position: static; }
}
@media (max-width: 600px) {
	.bk-top-in { padding: 12px 16px; }
	.bk-logo { font-size: 18px; }
	.bk-steps { gap: 8px; padding: 18px 12px 0; }
	.bk-st { gap: 6px; font-size: 13px; }
	.bk-st b { width: 28px; height: 28px; font-size: 13px; }
	.bk-steps i { flex-basis: 18px; }
	.bk-wrap { padding: 14px 12px 40px; }
	.bk-card { padding: 20px 16px; border-radius: 16px; }
	.bk-card h2, .bk-done h1 { font-size: 20px; }
	.bk-two { grid-template-columns: 1fr; }
	.bk-qbtn { width: 36px; height: 36px; }
	.bk-qty input { width: 40px; font-size: 20px; }
	.bk-person { padding: 16px 12px; }
	.bk-summary { padding: 18px 14px; }
	.bk-item img { width: 72px; height: 72px; }
}

/* Payment options live in the summary (Masud: "take payment option to right side as well"). */
.bk-paybox { margin-top: 16px; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .9); }
.bk-paybox h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.bk-paybox .bk-methods { gap: 8px; }
.bk-paybox .bk-method { padding: 12px 14px; gap: 12px; border-radius: 12px; }
.bk-paybox .bk-method-text b { font-size: 15px; }
.bk-paybox .bk-method-text small { font-size: 12px; }
.bk-paybox .bk-badge { padding: 4px 8px; font-size: 12px; }
/* "I agree to the Terms & Conditions" above the button (site/terms.php). */
.bk-terms { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink, #0f172a); cursor: pointer; }
.bk-terms input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--pu); }
.bk-terms a { color: var(--pu); text-decoration: underline; }
#bk-terms-err { margin-top: 6px; }
