/* Asmara Bella — booking flow (reservations.html). Pairs with assets/js/booking-ui.js.
   Colour tokens from design.css; shared .xp-* type and buttons from experience.css. */

:root {
  --bk-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bk-line: #e8dccb;
  --bk-soft: #fbf4ea;
}

/* ---------- Hero band ---------- */

.bk-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 70px 24px 150px;
  text-align: center;
  color: #fff;
  background: var(--ab-night);
}
.bk-hero-media {
  position: absolute;
  inset: -25% 0;
  background: linear-gradient(180deg, rgba(22, 14, 7, 0.55), rgba(22, 14, 7, 0.82)), url("/assets/images/diners.webp") center 40% / cover;
}
.bk-hero-copy { position: relative; max-width: 720px; }
.bk-hero h1 {
  margin: 0 0 12px;
  font: 600 clamp(40px, 6vw, 76px)/1.02 "Playfair Display", serif;
  letter-spacing: -0.025em;
  color: #fff;
  animation: ab-rise 1.1s var(--bk-ease) 0.1s both;
}
.bk-hero h1 em { font-style: italic; font-weight: 500; color: var(--ab-gold-hi); }
.bk-hero p:not(.xp-eyebrow) { margin: 0; font-size: 18px; color: #f0e6d3; animation: ab-rise 1.1s var(--bk-ease) 0.25s both; }
.bk-hero .xp-eyebrow { animation: ab-rise 1.1s var(--bk-ease) both; }
.bk-hero .xp-eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- Layout ---------- */

.bk-main { position: relative; z-index: 2; margin-top: -110px; padding: 0 clamp(14px, 4vw, 40px) 100px; }
.bk-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.bk-card {
  background: #fffdf9;
  border-radius: 28px;
  border: 1px solid rgba(179, 147, 77, 0.2);
  box-shadow: 0 40px 100px -40px rgba(33, 27, 18, 0.45);
  padding: clamp(22px, 4vw, 48px);
  min-width: 0;
}
/* motion.js wraps form panels in its card styling; this card already has its own. */
.bk-card.ab-form-card::before { display: none; }

/* ---------- Progress ---------- */

.bk-progress {
  --bk-p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
}
.bk-progress::before, .bk-progress-fill {
  content: "";
  position: absolute;
  top: 17px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--bk-line);
  border-radius: 2px;
}
.bk-progress-fill { right: auto; width: calc(75% * var(--bk-p)); background: var(--ab-brown); transition: width 0.8s var(--bk-ease); }
.bk-progress li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bk-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--bk-line);
  color: #8a7e6c;
  font: 700 14px/1 "Plus Jakarta Sans", sans-serif;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, transform 0.5s var(--bk-ease), box-shadow 0.4s;
}
.bk-plabel { font: 600 12.5px/1.2 "Plus Jakarta Sans", sans-serif; color: #8a7e6c; letter-spacing: 0.02em; transition: color 0.3s; }
.bk-progress li.is-current .bk-dot { background: var(--ab-brown); border-color: var(--ab-brown); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(179, 147, 77, 0.18); }
.bk-progress li.is-current .bk-plabel { color: var(--ab-ink); }
.bk-progress li.is-done .bk-dot { background: var(--ab-gold-hi); border-color: var(--ab-gold-hi); color: var(--ab-night); }

/* ---------- Steps ---------- */

.bk-step.is-entering { animation: bk-in 0.7s var(--bk-ease) both; }
@keyframes bk-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

.bk-field { margin: 0 0 30px; border: 0; padding: 0; min-width: 0; }
.bk-label, legend.bk-label {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  font: 700 15px/1.3 "Plus Jakarta Sans", sans-serif;
  color: var(--ab-ink);
}
.bk-label em { font-style: normal; font-weight: 500; color: #8a7e6c; font-size: 13px; margin-left: 6px; }
.bk-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bk-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: #7a6e5d; }
.bk-hint a { color: var(--ab-brown); font-weight: 700; }
.bk-hint.is-strong { color: var(--ab-brown); font-weight: 600; }
.bk-center { text-align: center; }
.bk-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.bk-title { margin: 0 0 8px; font: 600 clamp(28px, 3.4vw, 40px)/1.1 "Playfair Display", serif; color: var(--ab-ink); letter-spacing: -0.02em; text-align: center; }
.bk-title em { font-style: italic; font-weight: 500; color: var(--ab-brown); }
.bk-subtitle { margin: 34px 0 6px; font: 600 24px/1.2 "Playfair Display", serif; color: var(--ab-ink); text-align: center; }
.bk-sub { margin: 0 auto 26px; max-width: 520px; text-align: center; font-size: 15px; line-height: 1.6; color: #6b5f4d; }

/* ---------- Chips ---------- */

.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--bk-line);
  background: #fff;
  color: #4d4639;
  font: 600 14px/1 "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.4s var(--bk-ease), box-shadow 0.3s;
}
.bk-chip:hover { border-color: var(--ab-gold); transform: translateY(-2px); }
.bk-chip.is-on { background: var(--ab-brown); border-color: var(--ab-brown); color: #fff; box-shadow: 0 10px 22px -12px rgba(117, 90, 26, 0.8); }
.bk-occ .material-symbols-outlined { font-size: 18px; color: var(--ab-gold); transition: color 0.25s; }
.bk-occ.is-on .material-symbols-outlined { color: var(--ab-gold-hi); }

/* ---------- Guests ---------- */

.bk-guests { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bk-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: var(--bk-soft); border: 1px solid var(--bk-line); }
.bk-step-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ab-brown);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(33, 27, 18, 0.35);
  transition: transform 0.3s var(--bk-ease), background-color 0.25s, color 0.25s;
}
.bk-step-btn:hover:not(:disabled) { background: var(--ab-brown); color: #fff; transform: scale(1.06); }
.bk-step-btn:active:not(:disabled) { transform: scale(0.92); }
.bk-step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.bk-guests-n { min-width: 56px; text-align: center; font: 600 30px/1 "Playfair Display", serif; color: var(--ab-ink); }

/* ---------- Dates ---------- */

.bk-cal-link { position: relative; font: 700 13px/1 "Plus Jakarta Sans", sans-serif; color: var(--ab-brown); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.bk-date-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.bk-dates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: thin;
  scrollbar-color: var(--bk-line) transparent;
  overscroll-behavior-x: contain;
}
.bk-date {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 74px;
  padding: 12px 10px 11px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1.5px solid var(--bk-line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.4s var(--bk-ease), box-shadow 0.3s;
}
.bk-date:hover:not(:disabled) { border-color: var(--ab-gold); transform: translateY(-3px); }
.bk-date-w { font: 700 11px/1 "Plus Jakarta Sans", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: #8a7e6c; }
.bk-date-d { font: 600 26px/1 "Playfair Display", serif; color: var(--ab-ink); }
.bk-date-m { font: 600 11.5px/1 "Plus Jakarta Sans", sans-serif; color: #8a7e6c; }
.bk-date.is-on { background: var(--ab-brown); border-color: var(--ab-brown); box-shadow: 0 14px 26px -14px rgba(117, 90, 26, 0.9); transform: translateY(-3px); }
.bk-date.is-on span { color: #fff; }
.bk-date.is-on .bk-date-w, .bk-date.is-on .bk-date-m { color: var(--ab-gold-hi); }
.bk-date.is-closed { cursor: not-allowed; background: repeating-linear-gradient(-45deg, #faf5ee, #faf5ee 6px, #f3ebdf 6px, #f3ebdf 12px); border-style: dashed; }
.bk-date.is-closed .bk-date-d { color: #b9ad9a; text-decoration: line-through; text-decoration-thickness: 1px; }
.bk-date.is-closed .bk-date-m { color: var(--ab-red); }
.bk-note { margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: #fbefe0; border: 1px solid #e7cfa6; color: #6b4e12; font-size: 13.5px; line-height: 1.5; }

/* ---------- Times ---------- */

.bk-times { min-height: 52px; }
.bk-empty { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--bk-soft); border: 1px dashed var(--bk-line); color: #7a6e5d; font-size: 14px; }
.bk-empty.is-warn { background: #fbefe0; border-style: solid; border-color: #e7cfa6; color: #6b4e12; }
.bk-time-group + .bk-time-group { margin-top: 16px; }
.bk-time-h { display: block; margin: 0 0 8px; font: 700 11.5px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ab-gold); }
.bk-time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-time {
  padding: 13px 0;
  border-radius: 12px;
  border: 1.5px solid var(--bk-line);
  background: #fff;
  color: var(--ab-ink);
  font: 700 15px/1 "Plus Jakarta Sans", sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.4s var(--bk-ease), box-shadow 0.3s;
}
.bk-time:hover { border-color: var(--ab-gold); transform: translateY(-2px); }
.bk-time.is-on { background: var(--ab-brown); border-color: var(--ab-brown); color: #fff; box-shadow: 0 12px 24px -14px rgba(117, 90, 26, 0.9); }
.bk-more-times { margin-top: 12px; padding: 6px 0; border: 0; background: none; color: var(--ab-brown); font: 700 13px/1 "Plus Jakarta Sans", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- First visit ---------- */

.bk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-seg label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--bk-line);
  background: #fff;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: #4d4639;
  transition: border-color 0.25s, background-color 0.25s;
}
.bk-seg label:hover { border-color: var(--ab-gold); }
.bk-seg label:has(input:checked) { border-color: var(--ab-brown); background: var(--bk-soft); color: var(--ab-ink); }

/* ---------- Actions ---------- */

.bk-actions { display: flex; gap: 12px; margin-top: 34px; }
.bk-actions .bk-btn-primary { flex: 1; }
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ab-brown);
  font: 700 16px/1 "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  transition: transform 0.45s var(--bk-ease), box-shadow 0.45s var(--bk-ease), background-color 0.3s, color 0.3s, filter 0.3s;
}
.bk-btn span { transition: transform 0.45s var(--bk-ease); }
.bk-btn-primary { background: linear-gradient(135deg, #8a6a22, var(--ab-brown)); color: #fff; box-shadow: 0 16px 34px -16px rgba(117, 90, 26, 0.85); }
.bk-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(117, 90, 26, 0.9); }
.bk-btn-primary:hover:not(:disabled) span { transform: translateX(4px); }
.bk-btn-primary:disabled { filter: grayscale(0.4); cursor: wait; }
.bk-btn-ghost { background: transparent; color: var(--ab-brown); }
.bk-btn-ghost:hover { background: var(--bk-soft); }
.bk-btn-ghost:hover span { transform: translateX(-4px); }
.bk-btn-lg { padding: 19px 28px; font-size: 17px; }

/* ---------- Step 2: extras (cards rendered by the page script) ---------- */

.bk-enh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.bk-enh-grid .enh-card {
  border: 1.5px solid var(--bk-line) !important;
  border-radius: 20px !important;
  background: #fff !important;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s var(--bk-ease), transform 0.4s var(--bk-ease);
}
.bk-enh-grid .enh-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(33, 27, 18, 0.45); }
.bk-enh-grid .enh-card.ring-2 { border-color: var(--ab-brown) !important; box-shadow: 0 0 0 3px rgba(179, 147, 77, 0.25), 0 24px 50px -28px rgba(33, 27, 18, 0.45) !important; --tw-ring-shadow: none !important; }
.bk-enh-grid .enh-card img { transition: transform 1.2s var(--bk-ease); }
.bk-enh-grid .enh-card:hover img { transform: scale(1.06); }
.bk-enh-grid .enh-card h3 { font-family: "Playfair Display", serif !important; font-size: 22px !important; line-height: 1.25 !important; }
.bk-enh-grid .enh-btn { border-radius: 999px !important; padding: 11px 20px !important; font-weight: 700 !important; }

/* ---------- Step 3: details ---------- */

.bk-form { max-width: 620px; margin: 0 auto; display: grid; gap: 18px; }
.bk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-input label { display: block; margin: 0 0 8px; font: 700 13.5px/1.3 "Plus Jakarta Sans", sans-serif; color: var(--ab-ink); }
.bk-input label em { font-style: normal; font-weight: 500; color: #8a7e6c; }
.bk-input input, .bk-input textarea { width: 100%; box-sizing: border-box; font-size: 16px !important; }
.bk-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ab-ink); cursor: pointer; }
.bk-check input { margin-top: 2px; flex-shrink: 0; }
.bk-check small { display: block; margin-top: 4px; color: #7a6e5d; font-size: 12.5px; }
#r-guest-details { display: grid; gap: 14px; }
.bk-error, .bk-inline-error { margin: 10px 0 0; padding: 12px 16px; border-radius: 12px; background: #fdecea; border: 1px solid #f3c2bb; color: #93000a; font-size: 14px; font-weight: 600; }
.bk-shake { animation: bk-shake 0.5s; }
@keyframes bk-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Step 4: review ---------- */

.bk-review { max-width: 620px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--bk-line); background: #fff; }
.bk-review-head { display: flex; align-items: center; gap: 12px; padding: 20px 26px; background: linear-gradient(135deg, #8a6a22, var(--ab-brown-dk)); color: #fff; }
.bk-review-head h3 { margin: 0; font: 600 22px/1.2 "Playfair Display", serif; color: #fff; }
.bk-review-head .material-symbols-outlined { color: var(--ab-gold-hi); }
.bk-review-body { padding: 22px 26px; display: grid; gap: 12px; font-size: 15px; }
.bk-confirm-msg { max-width: 620px; margin: 16px auto 0; border-radius: 14px; padding: 14px 18px; font-size: 14.5px; text-align: center; }
#step-4 .bk-actions { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Live summary ---------- */

.bk-aside { position: sticky; top: 90px; }
.bk-ticket { border-radius: 26px; overflow: hidden; background: #fffdf9; border: 1px solid rgba(179, 147, 77, 0.2); box-shadow: 0 30px 80px -40px rgba(33, 27, 18, 0.45); }
.bk-ticket-img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.bk-ticket-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: ab-hero-settle 2.4s var(--bk-ease) both; }
.bk-ticket-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: radial-gradient(circle at 10px -2px, transparent 9px, #fffdf9 10px) 0 0 / 20px 18px repeat-x; }
.bk-ticket-body { padding: 22px 26px 26px; }
.bk-ticket-body .xp-eyebrow { margin-bottom: 14px; }
.bk-ticket-rows { margin: 0 0 20px; }
.bk-ticket-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--bk-line); }
.bk-ticket-rows > div[hidden] { display: none; }
.bk-ticket-rows dt { color: #7a6e5d; font-size: 14px; }
.bk-ticket-rows dd { margin: 0; font-weight: 700; color: var(--ab-ink); text-align: right; font-size: 14.5px; animation: bk-pop 0.5s var(--bk-ease); }
.bk-ticket-rows dd.is-empty { color: #b9ad9a; font-weight: 500; }
@keyframes bk-pop { from { opacity: 0.4; transform: translateY(4px); } }
.bk-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.bk-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: #5c5142; }
.bk-perks .material-symbols-outlined { font-size: 19px; color: var(--ab-gold); }
.bk-ticket-help { margin: 0; padding-top: 14px; border-top: 1px solid var(--bk-line); font-size: 13.5px; color: #7a6e5d; }
.bk-ticket-help a { color: var(--ab-brown); font-weight: 700; text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-aside { position: static; order: -1; }
  .bk-ticket { display: grid; grid-template-columns: 120px 1fr; border-radius: 22px; }
  .bk-ticket-img { aspect-ratio: auto; }
  .bk-ticket-img::after { display: none; }
  .bk-ticket-body { padding: 16px 18px; }
  .bk-ticket-body .xp-eyebrow { margin-bottom: 6px; }
  .bk-ticket-rows { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .bk-ticket-rows > div { border: 0; padding: 2px 0; flex-direction: column; gap: 0; }
  .bk-ticket-rows dd { text-align: left; }
  .bk-perks, .bk-ticket-help { display: none; }
}
@media (max-width: 640px) {
  .bk-hero { min-height: 260px; padding: 50px 20px 120px; }
  .bk-main { margin-top: -90px; padding-bottom: 60px; }
  .bk-card { border-radius: 22px; }
  .bk-ticket { grid-template-columns: 84px 1fr; }
  .bk-plabel { font-size: 11px; }
  .bk-grid2, .bk-seg { grid-template-columns: 1fr; }
  .bk-time-grid { grid-template-columns: repeat(4, 1fr); }
  .bk-time { padding: 12px 0; font-size: 14px; }
  .bk-date { min-width: 64px; }
  .bk-actions { flex-direction: column-reverse; }
  .bk-actions .bk-btn { width: 100%; }
  /* Keep step 1's Continue button in reach while scrolling the form. */
  .bk-actions-sticky { position: sticky; bottom: 12px; z-index: 5; margin-left: -6px; margin-right: -6px; padding: 8px; border-radius: 999px; background: rgba(255, 253, 249, 0.9); backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .bk-step.is-entering, .bk-ticket-img img, .bk-ticket-rows dd { animation: none; }
}
