:root {
  color-scheme: dark;
  --bg: #03110c;
  --panel: #0a1d15;
  --panel-2: #10271d;
  --line: #3c4524;
  --line-strong: #8a7124;
  --text: #fff8e7;
  --muted: #afc1b4;
  --gold: #edbd35;
  --green: #17865b;
  --green-2: #219a6d;
  --danger: #d66d65;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(31, 113, 77, .18), transparent 34rem),
    linear-gradient(135deg, #06150f 0%, #03110c 55%, #061a12 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.booking-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 18px;
}

.booking-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.booking-brand-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 52px;
  border: 1px solid rgba(225, 191, 99, .58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(225, 191, 99, .18), transparent 40%),
    linear-gradient(145deg, rgba(225, 191, 99, .16), rgba(15, 77, 53, .18));
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(225, 191, 99, .035), 0 16px 38px rgba(0, 0, 0, .24);
}

.booking-brand-mark span { position: relative; z-index: 2; }

.booking-brand-mark::before,
.booking-brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(225, 191, 99, .45);
  border-radius: 14px;
  transform: rotate(45deg);
  pointer-events: none;
}

.booking-brand-mark::after {
  inset: 13px;
  border-color: rgba(225, 191, 99, .28);
  border-radius: 50%;
  transform: none;
}

.booking-brand strong { display: block; }
.booking-brand strong { font-family: Georgia, serif; font-size: 18px; }

.booking-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 22, 15, .94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  min-height: 650px;
}

.booking-summary {
  padding: 42px 34px;
  border-right: 1px solid var(--line);
  background: #081a13;
}

.booking-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.booking-summary h1,
.booking-panel h2,
.booking-success h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.08;
}

.booking-summary h1 { font-size: 42px; }
.booking-panel h2,
.booking-success h2 { font-size: 30px; }
.booking-summary > p { margin: 18px 0 28px; color: var(--muted); line-height: 1.65; }

.booking-facts { display: grid; gap: 14px; margin: 0; }
.booking-fact { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; color: #dbe6dd; }
.booking-fact-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-weight: 700; }
.booking-fact span:last-child { min-width: 0; overflow-wrap: anywhere; }

.booking-panel { min-width: 0; padding: 42px; }
.booking-panel-head { margin-bottom: 26px; }
.booking-panel-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }

.booking-date-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.booking-field { display: grid; gap: 8px; min-width: 0; }
.booking-field label { color: #dce7df; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.booking-field input,
.booking-field textarea,
.booking-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #06160f;
  color: var(--text);
  padding: 12px 14px;
}
.booking-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.booking-field select option { background: #06160f; color: var(--text); }
.booking-field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.booking-field input:focus,
.booking-field textarea:focus,
.booking-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(237, 189, 53, .12); }

.booking-slots-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.booking-slots-head h3 { margin: 0; font-size: 16px; }
.booking-slots-head span { color: var(--muted); font-size: 12px; }
.booking-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 52px; }
.booking-slot {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b2017;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.booking-slot:hover,
.booking-slot:focus-visible { border-color: var(--gold); }
.booking-slot.is-selected { border-color: var(--green-2); background: var(--green); color: white; }

.booking-form { display: grid; gap: 16px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.booking-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-form .booking-field-full { grid-column: 1 / -1; }
.booking-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

.booking-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(225,191,99,.42);
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  color: #fffbe9;
  background: linear-gradient(135deg,#0a3f2b,#17764f 58%,#218c5d);
  box-shadow: 0 0 0 1px rgba(225,191,99,.10), 0 12px 28px rgba(15,77,53,.24);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.booking-button:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.booking-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.booking-button:disabled { cursor: not-allowed; opacity: .55; }
a.booking-button,
a.booking-button:hover,
a.booking-button:focus-visible { text-decoration: none !important; }
.booking-button-secondary { border-color: rgba(225,191,99,.23); background: rgba(128,128,128,.045); box-shadow: none; color: var(--text); }
.booking-button-secondary:hover { border-color: var(--gold); background: #102219; }
.booking-button-danger { border-color: rgba(217,83,79,.35); background: rgba(128,128,128,.045); box-shadow: none; color: #f1a7a2; }
.booking-button-danger:hover { border-color: rgba(217,83,79,.65); background: rgba(143,48,43,.22); }

.booking-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #355b43;
  border-radius: 6px;
  background: #10281d;
}
.booking-selection strong { color: white; }
.booking-selection span { color: var(--muted); font-size: 13px; }

.booking-message { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); line-height: 1.5; }
.booking-message.is-error { border-color: rgba(214, 109, 101, .7); color: #ffc1bb; background: rgba(117, 38, 34, .18); }
.booking-empty { padding: 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.booking-loading,
.booking-fatal {
  min-height: 650px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.booking-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(237, 189, 53, .2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: booking-spin .8s linear infinite;
}
@keyframes booking-spin { to { transform: rotate(360deg); } }

.booking-success { display:flex; flex-direction:column; min-height:650px; max-width:650px; margin:0 auto; padding:60px 38px; text-align:center; }
.booking-success-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 22px; place-items: center; border: 1px solid #2a986c; border-radius: 50%; background: rgba(30, 148, 101, .16); color: #71dfad; font-size: 28px; }
.booking-success p { color: var(--muted); line-height: 1.65; }
.booking-success-card { margin: 28px 0; padding: 22px; border: 1px solid var(--line); background: var(--panel-2); text-align: left; }
.booking-success-card strong,
.booking-success-card span { display: block; }
.booking-success-card span { margin-top: 8px; color: var(--muted); }
.booking-confirmation-video { margin:0 0 24px; text-align:left; }
.booking-confirmation-video h3 { margin:0 0 12px; font-family:Georgia,serif; font-size:20px; }
.booking-video-frame { aspect-ratio:16 / 9; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:#000; }
.booking-video-frame iframe { display:block; width:100%; height:100%; border:0; }
.booking-success .booking-action-rail { margin-top:auto; }

.booking-manage-card { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.booking-manage-card h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 24px; }
.booking-manage-card p { margin: 8px 0; color: var(--muted); line-height: 1.5; }
.booking-manage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.booking-action-rail { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.booking-status { display: inline-flex; margin-bottom: 14px; padding: 6px 10px; border: 1px solid #357356; border-radius: 999px; color: #88d8ae; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.booking-status.cancelled { border-color: #73423e; color: #efa69f; }

.booking-cancel-panel { margin-top: 22px; padding: 18px; border: 1px solid rgba(214, 109, 101, .45); border-radius: 6px; background: rgba(76, 26, 24, .16); }
.booking-cancel-panel h3 { margin-top: 0; }

.booking-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 28px; color: #789083; font-size: 12px; text-align: center; }

@media (max-width: 780px) {
  .booking-header,
  .booking-shell,
  .booking-footer { width: min(100% - 24px, 1120px); }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .booking-summary h1 { font-size: 32px; }
  .booking-panel { padding: 28px 22px; }
  .booking-date-row,
  .booking-form-grid { grid-template-columns: 1fr; }
  .booking-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-actions { align-items: stretch; flex-direction: column-reverse; }
  .booking-action-rail { padding-top:14px; }
  .booking-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-spinner { animation-duration: 1.8s; }
}

/* Hide scrollbar chrome without disabling scroll. */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Approved shared Kaivalya horizontal lockup. */
.booking-brand-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
}
@media (max-width: 720px) {
  .booking-brand-logo { height: 50px; }
}
