:root {
  --navy: #07365f;
  --navy-dark: #042745;
  --blue: #087fca;
  --blue-light: #eaf7ff;
  --orange: #ff7a1a;
  --orange-dark: #e85f00;
  --ink: #183247;
  --muted: #657788;
  --line: #dce6ec;
  --surface: #ffffff;
  --background: #f4f8fb;
  --green: #16966f;
  --red: #a33c22;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(7,54,95,.09); background: var(--surface); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 104px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; }
.brand-logo { width: 154px; height: 92px; display: block; flex: 0 0 auto; background: url("kernow-slide-brand-source.png") no-repeat -238.1px 0 / 392.2px 294.4px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.site-nav a { color: var(--navy-dark); text-decoration: none; font-size: 13px; font-weight: 800; transition: color .15s ease, background .15s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--orange-dark); }
.site-nav .nav-book { min-height: 43px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--orange); color: white; box-shadow: 0 7px 17px rgba(232,95,0,.2); }
.site-nav .nav-book:hover, .site-nav .nav-book:focus-visible { background: var(--orange-dark); color: white; }
.menu-toggle { width: 44px; height: 44px; padding: 10px; display: none; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.menu-toggle span { width: 100%; height: 2px; display: block; border-radius: 2px; background: var(--navy); }

.hero { min-height: 285px; padding: 48px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; color: white; background: linear-gradient(120deg, var(--navy-dark), var(--navy) 56%, #075a91); }
.hero-copy { max-width: 700px; }
.eyebrow { margin: 0 0 11px; color: #7dd7ff; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 65px); line-height: .98; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 18px 0 0; color: #d8edf9; font-size: 18px; line-height: 1.55; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-pills span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; }

.payment-status { width: min(1180px, calc(100% - 40px)); margin: 12px auto 2px; padding: 18px 22px; display: flex; gap: 15px; align-items: center; border: 1px solid #bfe7d7; border-radius: 16px; background: #eefbf6; color: #155c47; }
.payment-status.cancelled { border-color: #ffd0b4; background: #fff6ef; color: #93410d; }
.status-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; background: var(--green); color: white; font-weight: 900; }
.cancelled .status-icon { background: var(--orange); }
.payment-status strong { display: block; }
.payment-status p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }

.booking-shell { width: min(1180px, calc(100% - 40px)); margin: 26px auto 70px; display: grid; grid-template-columns: minmax(0,1fr) 345px; gap: 24px; align-items: start; }
.booking-form { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.booking-card, .summary-card { border: 1px solid rgba(7,54,95,.1); border-radius: 20px; background: var(--surface); box-shadow: 0 11px 35px rgba(20,64,91,.07); }
.booking-card { padding: 28px; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; }
.step { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; background: var(--navy); color: white; font-size: 14px; font-weight: 900; }
.section-heading h2 { margin: 0; color: var(--navy-dark); font-size: 21px; letter-spacing: -.02em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.date-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.date-option { min-height: 150px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 15px; background: white; color: var(--navy); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.date-option:hover { transform: translateY(-2px); border-color: #88c7ea; }
.date-option.selected { border-color: var(--orange); background: #fff9f4; box-shadow: 0 7px 20px rgba(255,122,26,.12); }
.date-day { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.date-number { margin: 3px 0 -2px; font-size: 47px; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.date-month { color: var(--muted); font-size: 14px; font-weight: 700; }
.selected-check { width: 25px; height: 25px; position: absolute; top: 11px; right: 11px; display: none; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-size: 13px; font-weight: 900; }
.date-option.selected .selected-check { display: grid; }

.time-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.time-option { min-height: 75px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 2px solid var(--line); border-radius: 13px; background: white; color: var(--navy); transition: border-color .15s ease, background .15s ease; }
.time-option:hover:not(:disabled) { border-color: #75bce4; background: #f4fbff; }
.time-option.selected { border-color: var(--blue); background: var(--blue-light); box-shadow: inset 0 0 0 1px var(--blue); }
.time-option:disabled { opacity: .52; background: #f1f3f5; }
.time-option strong { font-size: 18px; }
.time-option small { color: var(--green); font-size: 11px; font-weight: 700; }
.time-option:disabled small { color: var(--muted); }

.ticket-list { display: flex; flex-direction: column; }
.ticket-row { min-height: 83px; display: grid; grid-template-columns: 1fr 80px 122px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-copy { display: flex; flex-direction: column; gap: 4px; }
.ticket-copy strong { color: var(--navy-dark); font-size: 16px; }
.ticket-copy span { color: var(--muted); font-size: 12px; }
.ticket-price { color: var(--navy); text-align: right; font-size: 15px; font-weight: 900; }
.ticket-price del { margin-right: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.quantity { display: grid; grid-template-columns: 36px 42px 36px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.quantity button { width: 36px; height: 38px; border: 0; background: #eef6fa; color: var(--navy); font-size: 21px; font-weight: 700; }
.quantity button:hover:not(:disabled) { background: #dceffa; }
.quantity button:disabled { opacity: .38; }
.quantity output { text-align: center; color: var(--navy-dark); font-weight: 800; }

.membership-fields { margin-top: 20px; padding: 18px; border: 1px solid #b9ddef; border-radius: 13px; background: var(--blue-light); }
.membership-fields-heading { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.membership-fields-heading strong { color: var(--navy-dark); font-size: 15px; }
.membership-fields-heading span { color: var(--muted); font-size: 12px; }
.membership-fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.membership-fields label, .details-grid label { display: flex; flex-direction: column; gap: 7px; }
.membership-fields label > span, .details-grid label > span { color: var(--navy-dark); font-size: 12px; font-weight: 800; }
.membership-fields input, .details-grid input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #c5d5de; border-radius: 10px; outline: none; background: white; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.membership-fields input:focus, .details-grid input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,202,.12); }
.membership-fields input::placeholder, .details-grid input::placeholder { color: #9aa8b3; }

.promo-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.promo-panel > label { display: block; margin-bottom: 9px; color: var(--navy-dark); font-size: 14px; font-weight: 800; }
.promo-controls { display: flex; gap: 10px; }
.promo-controls input { flex: 1; min-width: 0; width: 100%; height: 46px; padding: 0 13px; border: 1px solid #c5d5de; border-radius: 10px; background: white; color: var(--ink); font-size: 16px; }
.promo-controls input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.promo-controls input[aria-invalid="true"] { border-color: var(--red); }
.promo-controls button { min-width: 82px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--navy); color: white; font-size: 13px; font-weight: 800; }
.promo-controls button:hover:not(:disabled) { background: var(--blue); }
.promo-controls button:disabled { opacity: .55; }
.promo-message { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.promo-message:empty { display: none; }
.promo-message.is-success { color: #126e51; font-weight: 700; }
.promo-message.is-error { color: var(--red); }
.promo-remove { margin-top: 5px; padding: 5px 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.details-grid .full-field { grid-column: 1 / -1; }
.agreement { margin-top: 22px; padding: 15px; display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; border-radius: 11px; background: #f3f8fb; color: #4f6373; font-size: 13px; line-height: 1.55; cursor: pointer; }
.agreement input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--blue); }
.agreement a { color: var(--blue); font-weight: 800; }
.form-error { padding: 15px 18px; border: 1px solid #efb8a8; border-radius: 12px; background: #fff3ef; color: var(--red); font-size: 13px; font-weight: 700; line-height: 1.5; }

.summary-card { position: sticky; top: 20px; padding: 27px; }
.summary-kicker { margin: 0 0 6px; color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.summary-card h2 { margin: 0; color: var(--navy-dark); font-size: 24px; letter-spacing: -.03em; }
.summary-details { margin: 23px 0 0; }
.summary-details div { display: grid; grid-template-columns: 55px 1fr; gap: 10px; margin-top: 11px; }
.summary-details dt { color: var(--muted); font-size: 12px; }
.summary-details dd { margin: 0; color: var(--navy-dark); text-align: right; font-size: 12px; font-weight: 800; }
.summary-divider { height: 1px; margin: 22px 0; background: var(--line); }
.summary-lines { min-height: 48px; display: flex; flex-direction: column; gap: 11px; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.summary-lines span { color: var(--muted); }
.summary-lines strong { color: var(--navy-dark); }
.summary-lines .summary-discount span, .summary-lines .summary-discount strong { color: #126e51; }
.checkout-hold-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #f2f7fa; color: #395d72; font-size: 13px; line-height: 1.6; }
.empty-summary { margin: 0; color: var(--muted); text-align: center; font-size: 12px; }
.summary-total { margin-top: 20px; padding-top: 20px; display: flex; align-items: end; justify-content: space-between; border-top: 1px solid var(--line); }
.summary-total span { color: var(--navy-dark); font-weight: 800; }
.summary-total strong { color: var(--navy-dark); font-size: 28px; letter-spacing: -.04em; }
.summary-submit, .mobile-submit { width: 100%; min-height: 52px; margin-top: 20px; padding: 12px 16px; border: 0; border-radius: 11px; background: var(--orange); color: white; font-size: 14px; font-weight: 900; box-shadow: 0 8px 20px rgba(232,95,0,.2); }
.summary-submit:hover:not(:disabled), .mobile-submit:hover:not(:disabled) { background: var(--orange-dark); }
.summary-submit:disabled, .mobile-submit:disabled { opacity: .55; box-shadow: none; }
.secure-note { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.secure-note span { color: var(--green); }
.mobile-submit { display: none; margin: 0; }

.site-footer { min-height: 95px; padding: 26px max(24px,calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--navy); font-weight: 700; }

:focus-visible { outline: 3px solid rgba(8,127,202,.35); outline-offset: 3px; }

@media (max-width: 980px) {
  .header-inner { min-height: 92px; }
  .brand-logo { width: 137px; height: 82px; background-size: 349px 261.9px; background-position: -211.9px 0; }
  .menu-toggle { display: flex; }
  .site-nav { padding: 13px 20px 20px; position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; border-top: 1px solid var(--line); background: white; box-shadow: 0 16px 25px rgba(7,54,95,.12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; }
  .site-nav .nav-book { margin-top: 7px; }
  .booking-shell { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .summary-submit { display: none; }
  .mobile-submit { display: block; }
}

@media (max-width: 650px) {
  .header-inner { width: calc(100% - 28px); }
  .hero { min-height: 265px; padding: 38px 20px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .payment-status, .booking-shell { width: calc(100% - 24px); }
  .payment-status { padding: 16px; align-items: flex-start; }
  .booking-shell { margin-top: 14px; gap: 14px; }
  .booking-form { gap: 14px; }
  .booking-card, .summary-card { padding: 20px; border-radius: 16px; }
  .section-heading { margin-bottom: 18px; }
  .date-grid { gap: 9px; }
  .date-option { min-height: 130px; }
  .date-number { font-size: 41px; }
  .time-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ticket-row { min-height: 101px; grid-template-columns: 1fr 118px; gap: 8px 12px; }
  .ticket-copy { align-self: end; }
  .ticket-price { align-self: end; }
  .quantity { grid-column: 2; grid-row: 2; justify-self: end; }
  .membership-fields-grid, .details-grid { grid-template-columns: 1fr; }
  .details-grid .full-field { grid-column: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .booking-card, .summary-card { padding: 17px; }
  .ticket-row { grid-template-columns: 1fr 116px; }
  .hero-pills span:nth-child(2) { display: none; }
}
