:root {
  --ink: #3f281d;
  --brand: #6f2f1d;
  --brand-dark: #512014;
  --gold: #b98042;
  --cream: #f8f2e8;
  --paper: #fffdf8;
  --line: #d9c9b8;
  --muted: #78695e;
  --success: #2f6b4f;
  --danger: #9d2f2f;
  --shadow: 0 18px 50px rgba(63, 40, 29, .11);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "CrimsonText-Regular", Georgia, serif; font-size: 18px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header { min-height: 82px; padding: 14px clamp(20px, 5vw, 76px); display: flex; align-items: center; gap: 36px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; width: 86px; flex: 0 0 auto; }
.brand img { width: 100%; height: 52px; object-fit: contain; }
.site-header nav { display: flex; gap: 28px; margin-right: auto; }
.site-header nav a, .account-nav a, .link-button { font-family: "CrimsonText-SemiBold", Georgia, serif; }
.site-header nav a:hover, .account-nav a:hover, .link-button:hover { color: var(--brand); }
.account-nav { display: flex; align-items: center; gap: 18px; }
.header-button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1px solid var(--brand); background: var(--brand); color: white; font-family: "CrimsonText-SemiBold", Georgia, serif; transition: .18s ease; }
.button:hover, .header-button:hover { background: var(--brand-dark); color: white; transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--brand); }
.button.secondary:hover { color: white; background: var(--brand); }
.button.danger { border-color: var(--danger); background: var(--danger); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button.small { min-height: 36px; padding: 6px 14px; font-size: 15px; }
.inline-form { display: inline; margin: 0; }
.link-button { border: 0; background: none; color: inherit; padding: 0; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; min-height: calc(100vh - 164px); }
.narrow { width: min(560px, 100%); margin: 0 auto; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 14px; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(42px, 7vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 23px; }
p { line-height: 1.55; }
.lede { color: var(--muted); font-size: 21px; max-width: 700px; }
.section-head { margin-bottom: 34px; }
.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.auth-card { margin-top: 34px; }
.field { display: grid; gap: 7px; margin-bottom: 20px; }
.field label { font-family: "CrimsonText-SemiBold", Georgia, serif; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 13px 14px; border-radius: 0; outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,128,66,.14); }
.field small { color: var(--muted); }
.error-list { padding: 14px 18px 14px 38px; background: #fbeaea; color: var(--danger); border-left: 3px solid var(--danger); }
.flash { width: min(1180px, calc(100% - 40px)); margin: 18px auto -25px; padding: 13px 18px; border: 1px solid; }
.flash-success { color: var(--success); background: #ecf7f0; border-color: #afd0bb; }
.flash-error { color: var(--danger); background: #fbeaea; border-color: #ddb1b1; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.package-card { display: flex; flex-direction: column; gap: 12px; box-shadow: none; }
.package-card .price { font-size: 34px; color: var(--brand); }
.package-card ul { margin: 6px 0 16px; padding-left: 22px; color: var(--muted); line-height: 1.5; }
.package-card .quantity { margin-top: auto; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--line); width: max-content; }
.quantity-control button { width: 42px; height: 42px; border: 0; background: var(--cream); color: var(--brand); font-size: 25px; }
.quantity-control input { width: 54px; height: 42px; border: 0; border-inline: 1px solid var(--line); text-align: center; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.summary { position: sticky; top: 110px; align-self: start; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { border-bottom: 0; font-family: "CrimsonText-Bold", Georgia, serif; font-size: 23px; color: var(--brand); }
.checkout-layout { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.attendee-card { margin-bottom: 22px; box-shadow: none; }
.attendee-tag { color: var(--gold); font-family: "CrimsonText-SemiBold", Georgia, serif; }
.payment-note { background: #fff6df; border-left: 3px solid var(--gold); padding: 14px 18px; color: #65461f; }
.success-panel { text-align: center; max-width: 760px; margin: 40px auto; }
.success-mark { width: 86px; height: 86px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: white; font-size: 48px; }
.ticket { position: relative; overflow: hidden; box-shadow: none; }
.ticket::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--gold); }
.ticket-code { display: inline-block; padding: 8px 10px; background: var(--cream); font-family: "Inter-Medium", sans-serif; letter-spacing: .06em; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 20px 0; }
.meta-grid span { display: block; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer { padding: 28px clamp(20px, 5vw, 76px); display: flex; justify-content: space-between; gap: 20px; color: #ead9cc; background: var(--brand-dark); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat { padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 34px; color: var(--brand); }
.stat span { color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3e9dd; font-family: "CrimsonText-SemiBold", Georgia, serif; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; padding: 4px 9px; font-size: 14px; text-transform: capitalize; border: 1px solid var(--line); }
.status-paid { color: var(--success); border-color: #95baa3; background: #edf7f0; }
.status-pending { color: #855d1f; background: #fff6df; }
.status-cancelled, .status-refunded { color: var(--danger); background: #fbeaea; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-body { background: #f3eee7; }
.empty { padding: 50px 24px; text-align: center; color: var(--muted); }
.check-in-layout { align-items: start; }
.check-in-reader { width: 100%; min-height: 280px; margin: 20px 0; overflow: hidden; background: #24221f; }
.check-in-reader video { width: 100% !important; }
.check-in-result { margin-top: 22px; border-width: 2px; box-shadow: none; }
.check-in-result-success { border-color: var(--success); background: #ecf7f0; }
.check-in-result-warning { border-color: #b98042; background: #fff6df; }
.check-in-result-error { border-color: var(--danger); background: #fbeaea; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 12px 22px; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; padding-top: 10px; border-top: 1px solid var(--line); }
  .account-nav { margin-left: auto; }
  .grid-3, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .page-shell { width: min(100% - 28px, 1180px); padding-top: 34px; }
  .site-header { padding: 12px 16px; }
  .brand { width: 68px; }
  .site-header nav { gap: 18px; }
  .site-header nav a:nth-child(-n+2) { display: none; }
  .account-nav { gap: 10px; }
  .account-nav > a:not(.header-button) { display: none; }
  .grid-2, .grid-3, .stats, .meta-grid { grid-template-columns: 1fr; }
  .form-actions, .toolbar, .site-footer { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}

/* Ticket selection — follows the supplied Phor Khom layout */
body:has(.booking-page) { background: #f7f6f4; color: #24221f; }
body:has(.booking-page) .site-header { min-height: 72px; padding: 16px clamp(24px, 9.4vw, 120px); background: #f7f6f4; box-shadow: 0 1px 4px rgba(0,0,0,.14); border: 0; }
body:has(.booking-page) .brand { width: 178px; }
body:has(.booking-page) .brand img { height: 40px; }
body:has(.booking-page) .site-header nav { gap: 24px; }
body:has(.booking-page) .site-header nav a,
body:has(.booking-page) .account-nav a,
body:has(.booking-page) .link-button { font-size: 14px; }
body:has(.booking-page) .header-button { min-height: 32px; padding: 4px 16px; border-radius: 8px; background: #24221f; border-color: #24221f; }
body:has(.booking-page) .page-shell { width: 100%; margin: 0; padding: 0; }
body:has(.booking-page) .site-footer { min-height: 210px; align-items: flex-end; background: linear-gradient(rgba(36,34,31,.4),rgba(36,34,31,.75)), url('/ticket-page-select/footer0.png') center/cover; }
.booking-page { width: min(1600px, 100%); margin: 0 auto; padding: 62px clamp(24px, 9.4vw, 120px) 72px; }
.booking-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.booking-kicker { color: #9b7f4c; font-size: 18px; line-height: 26px; letter-spacing: 2px; }
.booking-kicker-line { width: 132px; margin: 10px 0 19px; border-top: 1px solid #e6e3d8; }
.booking-hero h1 { margin: 0; color: #24221f; font-size: 48px; line-height: 56px; }
.booking-progress { width: 336px; margin: 36px auto 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.booking-progress li { position: relative; display: grid; justify-items: center; gap: 5px; color: #59554f; font-size: 16px; }
.booking-progress li::after { content: ""; position: absolute; top: 11px; left: calc(50% + 16px); width: calc(100% - 32px); height: 1px; background: #dddbd9; }
.booking-progress li:last-child::after { display: none; }
.booking-progress li.active { color: #24221f; }
.booking-progress li.active::after { background: #24221f; }
.progress-dot { position: relative; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: #fcfcfc; background: #dddbd9; font-size: 13px; }
.booking-progress .active .progress-dot { background: #24221f; }
.booking-errors { width: min(100%, 1030px); margin: 0 auto 20px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.booking-packages { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ticket-limit { padding: 4px 20px; border-radius: 8px; background: #dfe0e5; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 16px; }
.booking-day { width: 100%; display: grid; gap: 16px; }
.booking-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 24px; line-height: 32px; text-align: center; }
.booking-date > span { border-top: 1px solid #b8995e; }
.journey-list { display: grid; gap: 16px; }
.journey-card { --journey: #e6e3d8; --journey-light: #fff; --journey-ink: #24221f; border: 1px solid var(--journey); border-radius: 16px; overflow: hidden; background: var(--journey-light); }
.journey-signature { --journey: #8c74a4; --journey-light: #faf2ff; --journey-ink: #fff; }
.journey-serenity { --journey: #c7877e; --journey-light: #ffecec; --journey-ink: #fff; }
.journey-lantern { --journey: #e6e3d8; --journey-light: #fff; --journey-ink: #24221f; border-color: #b8995e; }
.journey-card-head { min-height: 140px; padding: 16px; display: flex; gap: 32px; align-items: center; background: var(--journey); color: var(--journey-ink); }
.journey-intro { flex: 1; min-width: 0; }
.journey-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; line-height: 26px; }
.journey-title strong { font-family: "CrimsonText-SemiBold", Georgia, serif; letter-spacing: 2px; text-transform: uppercase; }
.journey-intro em { display: block; margin: 1px 0 2px; font-family: "CrimsonText-Italic", Georgia, serif; font-size: 18px; line-height: 24px; }
.journey-price { font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 24px; line-height: 32px; }
.journey-quantity { flex: 0 0 136px; color: var(--journey-ink); }
.journey-quantity label { display: block; margin-bottom: 4px; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 18px; }
.journey-quantity small { display: block; margin-top: 5px; text-align: center; font-size: 13px; }
.design-stepper { display: grid; grid-template-columns: 40px 48px 40px; gap: 4px; }
.design-stepper button, .design-stepper input { width: 100%; height: 42px; padding: 0; border: 1px solid #b8995e; border-radius: 8px; background: #fff; color: #24221f; text-align: center; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 22px; }
.design-stepper input { font-size: 16px; appearance: textfield; }
.design-stepper input::-webkit-inner-spin-button { appearance: none; }
.journey-card-body { padding: 16px; color: #24221f; }
.journey-inclusions h3 { margin: 0 0 8px; font-size: 18px; }
.journey-inclusions ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 22px; list-style: none; }
.journey-inclusions li { position: relative; padding-left: 16px; font-size: 16px; line-height: 24px; }
.journey-inclusions li::before { content: "◆"; position: absolute; left: 0; color: #b8995e; font-size: 8px; }
.design-summary { position: sticky; top: 96px; overflow: hidden; border-radius: 8px; background: #fff; }
.design-summary h2 { margin: 0; padding: 16px 20px; background: #e6e3d8; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 18px; line-height: 26px; letter-spacing: 2px; text-transform: uppercase; }
.design-summary-items { padding: 6px 20px; }
.summary-empty { margin: 18px 0; color: #77716a; text-align: center; }
.design-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 8px; align-items: start; padding: 9px 0; }
.design-summary-row strong { display: block; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 16px; line-height: 21px; }
.design-summary-row small { display: block; color: #59554f; font-size: 14px; }
.design-summary-row > b { white-space: nowrap; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 16px; }
.design-summary-row button { width: 19px; height: 19px; padding: 0; border: 0; border-radius: 99px; background: #eeeded; color: #24221f; line-height: 17px; }
.design-summary-total { margin: 0 20px; padding: 13px 0 9px; display: flex; justify-content: space-between; border-top: 1px solid #e6e3d8; font-size: 16px; }
.design-summary-total strong { font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 18px; }
.design-continue { width: calc(100% - 40px); min-height: 50px; margin: 0 20px; border: 1px solid #24221f; border-radius: 8px; background: #fff; color: #24221f; font-family: "CrimsonText-SemiBold", Georgia, serif; font-size: 16px; }
.design-continue:hover:not(:disabled) { background: #24221f; color: #fff; }
.design-continue:disabled { opacity: .45; cursor: not-allowed; }
.design-alert { display: flex; gap: 10px; margin: 0; padding: 16px 20px; color: #59554f; font-size: 14px; line-height: 20px; }
.design-alert b { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: #24221f; color: #fff; text-align: center; line-height: 18px; }

@media (max-width: 960px) {
  body:has(.booking-page) .site-header { padding-inline: 24px; }
  body:has(.booking-page) .brand { width: 140px; }
  .booking-page { padding-inline: 24px; }
  .booking-layout { grid-template-columns: 1fr; }
  .design-summary { position: static; order: -1; width: 100%; }
}

.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 10px; }
.legal-page .lede { margin-bottom: 36px; }
.legal-page h2 { font-size: clamp(24px, 3vw, 30px); margin: 34px 0 14px; scroll-margin-top: 96px; }
.legal-page h3 { margin: 22px 0 10px; }
.legal-page ul { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.legal-page li { margin: 0 0 10px; line-height: 1.55; }
.legal-page p { color: var(--muted); }
.legal-page a { color: var(--brand); text-decoration: underline; }
.legal-page code { font-size: 0.92em; }

@media (max-width: 620px) {
  .booking-page { padding: 38px 14px 54px; }
  .booking-hero h1 { font-size: 38px; line-height: 46px; }
  .booking-progress { width: 100%; margin-top: 28px; }
  .booking-progress li { font-size: 14px; }
  .booking-date { gap: 8px; font-size: 19px; }
  .journey-card-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .journey-quantity { flex-basis: auto; }
  .journey-quantity small { text-align: left; }
  .journey-inclusions ul { grid-template-columns: 1fr; }
}
