:root {
  --ink: #17233c;
  --muted: #647089;
  --paper: #ffffff;
  --mist: #f4f7fc;
  --line: #dce3ef;
  --teal: #245fbd;
  --teal-dark: #194990;
  --teal-pale: #e9f1ff;
  --blue: #245fbd;
  --coral: #df6d3f;
  --gold: #d59b2d;
  --shadow: 0 10px 28px rgba(29, 48, 88, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fafbfa; font: 15px/1.5 "DM Sans", Arial, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 20; padding: 10px 14px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; gap: 44px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 4px; font-size: 15px; font-weight: 700; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 17px; white-space: nowrap; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.header-help { color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.intro { padding: 34px max(20px, calc((100% - 1320px) / 2)); background: #edf4ff; border-bottom: 1px solid #d7e4f7; }
.eyebrow, .step-kicker { margin: 0 0 8px; color: var(--teal); font-size: 11px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
h1, h2 { letter-spacing: 0; }
h1 { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 700; }
.intro > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.booking-shell { width: min(1320px, calc(100% - 40px)); margin: 40px auto 56px; }
.steps { margin: 0; padding: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.steps li { position: relative; display: flex; align-items: center; gap: 10px; color: #869390; font-size: 13px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 42px; right: 18px; height: 1px; background: var(--line); }
.steps span { position: relative; z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fafbfa; font-size: 12px; }
.steps b { position: relative; z-index: 1; padding-right: 12px; background: #fafbfa; }
.steps li.current, .steps li.complete { color: var(--ink); }
.steps li.current span { border-color: var(--teal); background: var(--teal); color: white; }
.steps li.complete span { border-color: var(--teal); color: var(--teal); }
.hold-banner { margin: 0 0 16px; min-height: 58px; padding: 10px 15px; display: flex; align-items: center; gap: 11px; color: #603e05; background: #fff7df; border: 1px solid #ecd596; border-left: 4px solid var(--gold); }
.hold-banner[hidden] { display: none; }
.hold-dot { width: 9px; height: 9px; flex: 0 0 auto; background: var(--gold); border-radius: 50%; animation: hold-pulse 1.8s infinite; }
.hold-banner p { flex: 1; margin: 0; }
.hold-banner strong, .hold-banner small { display: block; }
.hold-banner strong { font-size: 13px; }
.hold-banner small { color: #806426; font-size: 10px; }
.hold-banner time { min-width: 51px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hold-banner button { padding: 6px 9px; color: #6f520f; background: transparent; border: 1px solid #cba94e; border-radius: 3px; font-size: 11px; font-weight: 700; cursor: pointer; }
@keyframes hold-pulse { 50% { opacity: .4; } }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; }
.content-panel, .summary-panel { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.content-panel { min-height: 680px; display: flex; flex-direction: column; }
.step-panel { display: none; padding: 34px; flex: 1; }
.step-panel.active { display: block; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2, .summary-panel h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.live-status, .privacy-note, .review-badge { padding: 7px 10px; color: var(--teal-dark); background: var(--teal-pale); border-radius: 3px; font-size: 11px; font-weight: 700; }
.live-status i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #3a9f6f; border-radius: 50%; }

.search-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; padding: 18px; background: var(--mist); border: 1px solid var(--line); }
.optional-label { color: var(--muted); font-size: 9px; font-weight: 500; text-transform: uppercase; }
label { color: #43565a; font-size: 12px; font-weight: 600; }
input, select { width: 100%; height: 43px; margin-top: 6px; padding: 0 12px; color: var(--ink); background: var(--paper); border: 1px solid #cbd5d3; border-radius: 3px; outline: none; }
textarea { width: 100%; margin-top: 6px; padding: 10px 12px; resize: vertical; color: var(--ink); background: var(--paper); border: 1px solid #cbd5d3; border-radius: 3px; outline: none; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(36, 95, 189, .12); }
.primary { min-height: 43px; padding: 0 20px; color: white; background: var(--teal); border: 1px solid var(--teal); border-radius: 3px; font-weight: 700; cursor: pointer; }
.primary:hover { background: var(--teal-dark); }
.search-button { align-self: end; }
.result-bar { margin: 25px 0 13px; display: flex; justify-content: space-between; align-items: end; }
.result-bar p { margin: 0; }
.result-bar strong, .result-bar span { display: block; }
.result-bar span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.compact-select { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.compact-select select { width: auto; height: 36px; margin: 0; }

.facility-list { display: grid; gap: 10px; }
.facility-card { display: grid; grid-template-columns: 68px 1fr auto auto; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.facility-card:hover { border-color: #9eb8b4; box-shadow: 0 5px 15px rgba(24, 53, 56, .07); }
.facility-card.selected { border-color: var(--teal); border-left-color: var(--teal); background: #fbfefd; }
.hall-number { height: 60px; display: grid; place-items: center; background: var(--teal-pale); color: var(--teal); font-size: 22px; font-weight: 700; }
.hall-main h3 { margin: 0 0 3px; font-size: 16px; }
.hall-main p, .hall-price p { margin: 0; color: var(--muted); font-size: 12px; }
.hall-tags { margin-top: 7px; display: flex; gap: 6px; }
.hall-tags span { padding: 2px 6px; color: #54666a; background: var(--mist); font-size: 10px; }
.hall-price { min-width: 90px; text-align: right; }
.hall-price strong { display: block; font-size: 17px; }
.select-hall { padding: 9px 13px; border: 1px solid var(--teal); border-radius: 3px; color: var(--teal); background: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.selected .select-hall { color: white; background: var(--teal); }

.details-form fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.details-form legend { width: 100%; margin-bottom: 15px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.applicant-type-row { margin-bottom: 17px; }
.conditional-fields { margin-bottom: 17px; }
.conditional-fields[hidden] { display: none; }
.full-width { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 500; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }
.info-callout { margin-bottom: 22px; padding: 15px 17px; border-left: 3px solid var(--blue); background: #edf4fa; }
.info-callout p { margin: 3px 0 0; color: #526d7f; font-size: 13px; }
.upload-zone { min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px dashed #91aaa6; background: #fbfdfc; text-align: center; cursor: pointer; }
.upload-zone.dragging { background: var(--teal-pale); border-color: var(--teal); }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-symbol { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 50%; color: var(--teal); background: var(--teal-pale); font-size: 22px; }
.upload-zone strong { font-size: 15px; }
.upload-zone small { margin: 4px 0 15px; color: var(--muted); }
.secondary-button { padding: 8px 13px; color: var(--teal); border: 1px solid var(--teal); border-radius: 3px; font-size: 12px; }
.verification-list { margin-top: 22px; display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 13px; align-items: start; }
.verification-list h3 { margin: 5px 10px 0 0; font-size: 13px; }
.verification-list p { margin: 0; display: flex; gap: 8px; color: var(--muted); font-size: 11px; }
.verification-list span { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); font-weight: 700; }
.review-sections { display: grid; gap: 12px; }
.review-sections section { padding: 18px; border: 1px solid var(--line); }
.review-sections section > div { display: flex; justify-content: space-between; }
.review-sections h3 { margin: 0 0 12px; font-size: 14px; }
.review-sections button { padding: 0; color: var(--teal); background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.review-sections dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.review-sections dl div { display: grid; gap: 1px; }
.review-sections dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.review-sections dd { margin: 0; font-size: 13px; font-weight: 600; }
.terms { margin-top: 20px; }

.panel-actions { min-height: 74px; padding: 14px 34px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; border-top: 1px solid var(--line); }
.text-button { padding: 10px 0; margin-right: auto; color: var(--teal); background: none; border: 0; font-weight: 700; cursor: pointer; }
.save-note { color: var(--muted); font-size: 10px; }
.summary-panel { position: sticky; top: 20px; padding: 25px; }
.summary-panel h2 { font-size: 25px; }
.empty-summary { min-height: 190px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.empty-summary[hidden], .active-summary[hidden] { display: none; }
.empty-summary p { max-width: 190px; font-size: 12px; }
.summary-hall { margin: 22px 0 18px; display: flex; align-items: center; gap: 12px; }
.summary-hall > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--teal); background: var(--teal-pale); font-size: 18px; font-weight: 700; }
.summary-hall strong, .summary-hall small { display: block; }
.summary-hall small { color: var(--muted); font-size: 10px; }
.active-summary dl { margin: 0; }
.active-summary dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.active-summary dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.active-summary dd { margin: 3px 0 0; font-size: 12px; font-weight: 600; }
.summary-total { padding: 16px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); }
.summary-total span, .summary-total small { display: block; }
.summary-total span { font-size: 12px; font-weight: 700; }
.summary-total small { color: var(--muted); font-size: 9px; font-weight: 400; }
.summary-total strong { font-size: 21px; }
.fair-use { margin-top: 18px; padding: 13px; background: var(--mist); border-left: 3px solid var(--gold); }
.fair-use strong { font-size: 11px; }
.fair-use p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }


.toast { position: fixed; left: 50%; bottom: 20px; z-index: 10; padding: 11px 16px; color: white; background: var(--ink); border-radius: 3px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog { width: min(480px, calc(100% - 32px)); padding: 38px; border: 0; box-shadow: 0 30px 80px rgba(0,0,0,.25); text-align: center; }
dialog::backdrop { background: rgba(14, 34, 38, .65); }
dialog h2 { margin: 4px 0 12px; font-size: 31px; }
dialog p:not(.step-kicker) { color: var(--muted); }
dialog .primary { margin-top: 12px; min-width: 120px; }
.success-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 16px; color: white; background: var(--teal); border-radius: 50%; font-size: 24px; }

@media (max-width: 960px) {
  .booking-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; grid-row: 1; }
  .summary-panel .fair-use { display: none; }
  .empty-summary { min-height: 90px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-button { height: 43px; }
}

@media (max-width: 640px) {
  .site-header { height: 65px; padding: 0 16px; }
  .brand small { display: none; }
  .header-help { display: none; }
  .intro { padding: 25px 20px; }
  h1 { font-size: 30px; }
  .booking-shell { width: 100%; margin: 0 auto 30px; }
  .steps { padding: 18px 16px; background: white; border-bottom: 1px solid var(--line); }
  .steps li { gap: 0; }
  .steps b { display: none; }
  .steps li:not(:last-child)::after { left: 35px; right: 4px; }
  .hold-banner { margin: 0; border-left: 0; border-right: 0; }
  .hold-banner small { display: none; }
  .content-panel, .summary-panel { border-left: 0; border-right: 0; box-shadow: none; }
  .summary-panel { display: none; }
  .step-panel { padding: 25px 18px; }
  .section-heading { flex-direction: column; }
  .section-heading h2 { font-size: 27px; }
  .search-form, .form-grid { grid-template-columns: 1fr; }
  .result-bar { align-items: start; flex-direction: column; gap: 12px; }
  .facility-card { grid-template-columns: 50px 1fr auto; gap: 11px; padding: 12px; }
  .hall-number { height: 52px; }
  .hall-price { grid-column: 2; text-align: left; }
  .select-hall { grid-column: 3; grid-row: 1 / span 2; }
  .review-sections dl { grid-template-columns: 1fr; }
  .panel-actions { padding: 13px 18px; flex-wrap: wrap; }
  .save-note { order: 3; width: 100%; text-align: right; }
}
