body {
  background: var(--black); color: var(--white); font-size: 16px; line-height: 1.5;
  scrollbar-color: var(--teal-mid) var(--black);
}
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.topbar { background: #000; border-bottom: 1px solid #1d2626; position: relative; z-index: 5; }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { width: 118px; height: auto; }
.topbar-loc { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 14px; color: var(--white); }
.topbar-loc .ico { color: var(--turq); }
.topbar-link { margin-left: auto; color: var(--white); text-decoration: none; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.topbar-link:hover { color: var(--gold-light); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--teal-deep) url('/assets/img/hero-bg.webp') center 35% / cover no-repeat;
  border-bottom: 1px solid #0d2a2d;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 63, 70, .55) 0%, rgba(13, 15, 14, .92) 100%); }
.hero-in { padding: 64px 24px 56px; text-align: center; }
.hero-title { font-size: clamp(28px, 4.4vw, 52px); }
.hero-sub { max-width: 60ch; margin: 22px auto 0; color: var(--mist); font-size: 17px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 96px; }
.step { padding: 8px 0 40px; border-bottom: 1px solid var(--line-dark); margin-bottom: 36px; }
.step:last-child { border-bottom: 0; }
.step-h { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 24px; letter-spacing: .01em; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 3px solid var(--gold); font-size: 17px; color: var(--gold-light); flex: none; }

/* ---------- fields ---------- */
.grid-4 { display: grid; grid-template-columns: 1.1fr .9fr 1fr 1.4fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--mist); }
.field em { font-style: normal; color: var(--mist-dim); font-weight: 500; }
.field input, .field select, .field textarea {
  background: #0c1414; border: 1px solid #2a3c3d; border-radius: var(--radius); color: var(--white);
  padding: 12px 13px; min-height: 48px; width: 100%; transition: border-color .15s, box-shadow .15s; caret-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #7f9799; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3d5658; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 3px rgba(44, 185, 187, .22); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--turq) 50%), linear-gradient(135deg, var(--turq) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) hue-rotate(130deg) saturate(3); cursor: pointer; }
.daynote { margin: 14px 0 0; color: var(--turq-soft); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.stepper { display: flex; align-items: stretch; border: 1px solid #2a3c3d; border-radius: var(--radius); overflow: hidden; background: #0c1414; height: 40px; }
.stepper.big { height: 48px; }
.stepper button { width: 40px; border: 0; background: transparent; color: var(--turq); cursor: pointer; display: grid; place-items: center; flex: none; }
.stepper button:hover { background: rgba(44, 185, 187, .14); }
.stepper input { width: 100%; min-width: 0; border: 0; background: transparent; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--white); -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: rgba(44, 185, 187, .08); }

/* ---------- booking tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier {
  position: relative; text-align: left; cursor: pointer; border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--teal-deep); color: var(--white); min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: inset 0 0 0 1px rgba(143, 220, 221, .22); transition: box-shadow .2s, transform .2s var(--ease-out);
}
.tier-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center top; transition: transform .5s var(--ease-out); }
.tier::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 40, 45, .15) 0%, rgba(0, 30, 34, .78) 45%, rgba(8, 14, 14, .97) 100%); }
.tier:hover .tier-img { transform: scale(1.03); }
.tier:hover { box-shadow: inset 0 0 0 1px var(--turq); }
.tier[aria-checked="true"] { box-shadow: inset 0 0 0 3px var(--gold), 0 10px 24px rgba(0, 0, 0, .45); }
.tier-body { padding: 18px 18px 20px; }
.tier-name { display: block; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 18px; line-height: 1.15; margin: 0 0 6px; }
.tier-from { display: block; font-size: 14px; color: var(--mist); margin: 0 0 10px; }
.tier-from strong { font-family: var(--f-display); font-size: 22px; color: var(--gold-light); font-weight: 800; }
.tier ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--mist); display: grid; gap: 4px; }
.tier li { display: flex; gap: 7px; align-items: flex-start; }
.tier li .ico { width: 15px; height: 15px; color: var(--turq); margin-top: 2px; }
.tier-check { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.tier-check .ico { width: 16px; height: 16px; opacity: 0; color: var(--black); }
.tier[aria-checked="true"] .tier-check { background: var(--gold); box-shadow: none; }
.tier[aria-checked="true"] .tier-check .ico { opacity: 1; }

/* ---------- items ---------- */
.items { display: grid; gap: 0; }
.cat-h { font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--gold-light); margin: 26px 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.cat-h:first-child { margin-top: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.item:first-child, .cat-h + .item { border-top: 0; }
.item-name { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; margin: 0 0 4px; color: var(--white); }
.item-desc { margin: 0; color: var(--mist); font-size: 14.5px; max-width: 62ch; }
.item-price { margin: 8px 0 0; font-size: 14px; color: var(--mist-dim); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.item-price strong { font-family: var(--f-display); font-weight: 800; color: var(--white); font-size: 16px; font-variant-numeric: tabular-nums; }
.item-price .range { color: var(--gold-light); }
.item-note { color: var(--turq-soft); }
.item-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 168px; }
.add { background: transparent; color: var(--white); border: 0; box-shadow: inset 0 0 0 2px var(--turq); border-radius: 3px; padding: 9px 16px; font-family: var(--f-display); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.add:hover { background: rgba(44, 185, 187, .16); }
.add:active { transform: translateY(1px); }
.item.on { background: linear-gradient(90deg, rgba(0, 90, 100, .32), rgba(0, 90, 100, 0) 70%); }
.item.on .item-name::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 9px; vertical-align: middle; }
.ctl-row { display: flex; align-items: center; gap: 8px; }
.ctl-row .stepper { width: 128px; }
.ctl-cap { font-size: 12.5px; color: var(--mist-dim); text-align: right; }
.rm { background: transparent; border: 0; color: var(--mist-dim); cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.rm:hover { color: var(--danger); background: rgba(255, 115, 135, .1); }
.choice { background: #0c1414; border: 1px solid #2a3c3d; color: var(--white); border-radius: var(--radius); padding: 7px 10px; max-width: 200px; font-size: 14px; }
.item.off { opacity: .45; }
.item.off .add { pointer-events: none; }
.auto { font-size: 13px; color: var(--gold-light); font-family: var(--f-display); font-weight: 700; }

.locked { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px dashed rgba(215, 150, 50, .55); border-radius: var(--radius); margin-bottom: 18px; color: var(--mist); }
.locked p { margin: 0; font-size: 14.5px; }
.locked strong { color: var(--white); }
.locked .ico { color: var(--gold); }

.formerr { background: rgba(255, 115, 135, .12); border: 1px solid rgba(255, 115, 135, .45); color: #ffd1d8; padding: 12px 14px; border-radius: var(--radius); margin: 16px 0; font-size: 14.5px; }
.btn-wide { width: 100%; margin-top: 16px; padding: 15px 22px; font-size: 16px; }

/* ---------- the tab (live receipt) ---------- */
.tab { position: sticky; top: 20px; }
.tab-paper { background: var(--paper); color: var(--text-paper); border-radius: var(--radius-lg); padding: 0 0 18px; box-shadow: var(--shadow-1); overflow: hidden; }
.tab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: var(--teal); color: var(--white); padding: 16px 20px; }
.tab-title { display: block; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 18px; }
.tab-meta { display: block; font-size: 13px; color: #cfeaeb; margin-top: 2px; }
.stamp { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--gold-light); border: 2px solid var(--gold); padding: 3px 7px; transform: rotate(4deg); white-space: nowrap; margin-top: 2px; }
.tab-lines { max-height: min(46vh, 460px); overflow: auto; padding: 6px 20px 0; scrollbar-width: thin; scrollbar-color: #b9cfd0 transparent; }
.tab-empty { padding: 26px 0 18px; color: var(--text-paper-2); font-size: 14.5px; text-align: center; }
.tl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-paper); font-size: 14px; }
.tl-name { font-weight: 500; color: var(--text-paper); }
.tl-sub { grid-column: 1; font-size: 12.5px; color: var(--text-paper-2); }
.tl-amt { font-family: var(--f-display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-amt.range { color: var(--gold-deep); }
.tl.new { animation: print .55s var(--ease-out); }
.tl.new .tl-amt { animation: flash 1.1s ease-out; }
@keyframes print { from { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes flash { 0%, 30% { color: var(--gold-deep); } 100% { color: inherit; } }
.tab-totals { padding: 12px 20px 0; font-size: 14px; }
.tt { display: flex; justify-content: space-between; padding: 3px 0; color: var(--text-paper-2); font-variant-numeric: tabular-nums; }
.tt.grand { color: var(--text-paper); border-top: 2px solid var(--text-paper); margin-top: 8px; padding-top: 10px; align-items: baseline; }
.tt.grand span:first-child { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.tt.grand strong { font-family: var(--f-display); font-weight: 900; font-size: 26px; }
.tt-note { font-size: 12.5px; color: var(--text-paper-2); margin: 6px 0 0; }
.tab .btn-wide { width: calc(100% - 40px); margin: 16px 20px 0; }
.tab-fine { font-size: 12px; color: var(--text-paper-2); margin: 10px 20px 0; text-align: center; }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* ---------- review & done ---------- */
.review, .done { padding: 40px 0 96px; }
body.mode-done .done { min-height: calc(100vh - 64px - 120px); }
.review-in, .done-in { max-width: 920px; }
.back { background: none; border: 0; color: var(--turq); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-family: var(--f-display); font-weight: 700; padding: 8px 0; margin-bottom: 18px; }
.back:hover { color: var(--turq-soft); }
.review-title { font-size: clamp(24px, 3.4vw, 38px); }
.review-sub { color: var(--mist); max-width: 64ch; margin: 18px 0 28px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.review-actions .btn-wide { width: auto; flex: 1 1 320px; margin: 0; }
.review-actions .formerr { flex-basis: 100%; margin: 0; }
.done-in { text-align: center; padding-top: 40px; }
.done-in p { color: var(--mist); max-width: 56ch; margin: 18px auto; }
.done-ref { font-size: 18px; }
.done-ref strong { color: var(--gold-light); font-family: var(--f-display); }

.foot { border-top: 1px solid #1d2626; background: #000; color: var(--mist-dim); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; flex-wrap: wrap; }
.foot a { color: var(--gold); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

body.mode-review #builder, body.mode-review .hero, body.mode-review .mbar,
body.mode-done #builder, body.mode-done .hero, body.mode-done .mbar, body.mode-done .review { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier { min-height: 0; flex-direction: row; align-items: stretch; }
  .tier-img { position: relative; inset: auto; z-index: 0; width: 34%; flex: none; }
  .tier::after { display: none; }
  .tier-body { background: rgba(0, 30, 34, .9); flex: 1; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .layout { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 120px; }
  .hero-in { padding: 40px 16px 36px; }
  .hero-sub { font-size: 15.5px; }
  .topbar-in { gap: 14px; height: 56px; }
  .brand img { width: 96px; }
  .topbar-link { font-size: 12.5px; }
  .tab { position: fixed; inset: auto 0 0 0; top: auto; z-index: 30; padding: 0 10px 84px; transform: translateY(110%); transition: transform .35s var(--ease-out); pointer-events: none; }
  .tab.open { transform: none; pointer-events: auto; }
  .tab-lines { max-height: 42vh; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: #000; border-top: 1px solid #22302f; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; }
  .mbar-sum { flex: 1; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--white); cursor: pointer; text-align: left; }
  .mbar-sum .ico { color: var(--gold); width: 22px; height: 22px; }
  .mbar-sum small { display: block; color: var(--mist-dim); font-size: 12px; }
  .mbar-sum strong { font-family: var(--f-display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
  .item { grid-template-columns: 1fr; }
  .item-ctl { align-items: flex-start; min-width: 0; }
  .ctl-cap { text-align: left; }
  .locked { grid-template-columns: auto 1fr; }
  .locked .btn { grid-column: 1 / -1; }
  .step-h { font-size: 20px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .tier { flex-direction: column; }
  .tier-img { width: 100%; height: 120px; }
  .topbar-link { display: none; }
}
