/* ===============================
   THEME TOKENS + GLOBAL LAYOUT
   =============================== */

/* 1. PALETTE PRIMITIVES */
:root {
  /* Brand */
  /* --brand-500: #b28647;
  --brand-700: #6a5425;
  --brand-gradient: linear-gradient(180deg, #b28647 0%, #6a5425 100%); */

  --brand-500: #e6b873; /* brighter gold */
  --brand-700: #c58a2a; /* richer warm tone */
  --brand-gradient: linear-gradient(180deg, #e6b873 0%, #c58a2a 100%);

  /* Neutral (light) */
  --neutral-0: #ffffff;
  --neutral-50: #f4f4f6;
  --neutral-600: #6a6a6d;
  --neutral-900: #1d1d1f;

  /* Neutral (dark surfaces) */
  --neutral-800: #212129;
  --neutral-850: #15161b;

  /* Teal accent family */
  --teal-50: #e6fffb;
  --teal-500: #0f766e;
  --teal-600: #0e645d;

  /* Status Colors */
  --green-600: #1f9254;
  --amber-700: #b4690e;
  --red-600: #b42318;

  /* Typography fallback */
  --text-light: #f8f9f9;
  --text-muted: #cecfd4;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 18px;
  --radius-card: 22px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.55);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --transition-fast: 0.15s ease;
  --transition-slow: 0.3s ease;

  --focus-ring: 0 0 0 3px rgba(178, 134, 71, 0.45);

  --container-max: 1200px;
}

/* ===============================
   LIGHT THEME
   =============================== */
:root[data-theme="light"] {
  /* :root { */
  --color-primary: var(--brand-500);
  --color-secondary: var(--brand-700);

  --gradient-accent: var(--brand-gradient);

  /* BACKGROUND SURFACES */
  --color-background: var(--neutral-0);
  --color-surface: var(--neutral-50);

  --gradient-background: linear-gradient(
    90deg,
    var(--neutral-0),
    var(--neutral-50)
  );

  --gradient-container: linear-gradient(145deg, #ffffff 0%, #ececec 100%);

  --gradient-sidebar: linear-gradient(180deg, #ffffff 0%, #ececec 100%);

  --gradient-panel: linear-gradient(135deg, #ffffff 0%, #f3f3f6 100%);

  --gradient-card: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(244, 244, 246, 0.92) 100%
  );

  --color-heading: var(--neutral-900);
  --color-body: var(--neutral-600);

  --bb-border-color: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);

  --overlay: rgba(0, 0, 0, 0.4);

  --color-success: var(--green-600);
  --color-warning: var(--amber-700);
  --color-danger: var(--red-600);
}

/* ===============================
   DARK THEME
   =============================== */
/* :root[data-theme="dark"] { */
:root {
  --color-primary: var(--brand-500);
  --color-secondary: var(--brand-700);

  --gradient-accent: var(--brand-gradient);

  --color-background: var(--neutral-850);
  --color-surface: var(--neutral-800);

  --gradient-background: radial-gradient(
    circle at top left,
    #252633 0%,
    #111119 45%,
    #050509 100%
  );

  --gradient-container: radial-gradient(
    circle at top left,
    #252633 0%,
    #111119 45%,
    #050509 100%
  );

  --gradient-sidebar: linear-gradient(180deg, #111119 0%, #050509 100%);
  --gradient-panel: linear-gradient(135deg, #191a22 0%, #101117 100%);
  --gradient-card: linear-gradient(
    135deg,
    rgba(36, 36, 44, 0.85) 0%,
    rgba(25, 26, 31, 0.85) 100%
  );

  --color-heading: var(--text-light);
  --color-body: var(--text-muted);

  --bb-border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --overlay: rgba(0, 0, 0, 0.7);

  --color-success: var(--green-600);
  --color-warning: var(--amber-700);
  --color-danger: var(--red-600);
}

/* GLOBAL BACKGROUND */
/* html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  background: var(--gradient-background);
  color: var(--color-body);
} */

/* Safety */
.bpabfb-booking-container * {
  box-sizing: border-box;
}

/* ===============================
   MAIN LAYOUT
   =============================== */

.bpabfb-booking-container-parent {
  max-width: 880px;
  border-radius: 28px;

  background: var(--gradient-container);
  color: var(--color-heading);
  border: var(--bb-border-color);

  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}
.bpabfb-booking-container-parent .main-heading {
  padding: 16px 24px;
  border-bottom: 1px solid var(--bb-border-color);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-heading);
  background-color: var(--gradient-panel);
  border-radius: 28px 28px 0 0;
}
.bpabfb-booking-container-parent .main-heading h3 {
  margin: 0px !important;
  font-size: 22px !important;
}
.bpabfb-booking-container {
  max-width: 880px;
  border-radius: 28px;
  display: flex;
  /* gap: 24px; */
  position: relative;
}
.bpabfb-booking-container p:empty {
  display: none !important;
}

/* SIDEBAR */
.bpabfb-sidebar-container {
  flex: 0 0 210px;
  background: var(--gradient-sidebar);
  padding: 18px 14px;
  border-radius: 0 0 0 28px;
}

.bpabfb-sidebar-container > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .bpabfb-sidebar-container > ul {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 15px;
  }
  .bpabfb-sidebar-container {
    border-radius: 0;
    flex-basis: 0 !important;
  }
  .bpabfb-booking-container {
    flex-direction: column;
  }
  .bpabfb-content-container {
    border-radius: 0 0 28px 28px !important;
  }
}

.bpabfb-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;

  cursor: pointer;
  border: 1px solid transparent;

  color: var(--color-body);
  background: transparent;
  font-size: 13px;

  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.bpabfb-step-item i {
  width: 30px;
  height: 30px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;

  background: rgba(255, 255, 255, 0.06);
  color: var(--color-body);
}

.bpabfb-step-item span {
  font-size: 12px;
}

.bpabfb-step-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.bpabfb-step-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--bb-border-color);
  color: var(--color-primary);
}

.bpabfb-step-item.active i {
  background: var(--gradient-accent);
  color: #111;
}

.bpabfb-sidebar-container .hidden.h-5.w-0\.5,
.bpabfb-sidebar-container div.h-5 {
  width: 2px;
  height: 16px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--bb-border-color);
}

/* CONTENT PANEL */

.bpabfb-content-container {
  flex: 1;
  padding: 22px;
  position: relative;
  color: var(--color-heading);
  background: var(--gradient-container);
  border-radius: 0 0 28px 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start; /* optional, remove if not needed */
}

/* shared step title */
.bpabfb-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 18px;
}

.bpabfb-content-container .bpabfb-step-content {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0 10px;
  width: 100%;
  color: var(--color-heading);
}

.bpabfb-step-content .maintant-height {
  max-height: 400px;
  overflow-y: visible;
}

/* ===============================
   BOTTOM NAV BAR + BUTTONS
   =============================== */

.bpabfb-step-content.w-full.p-4.bg-white.shadow.rounded.border.border-gray-200.bottom-0.left-0.right-0 {
  max-width: 880px;
  margin: 18px auto 0 auto;
  border-radius: 18px;

  background: var(--gradient-panel);
  border: 1px solid var(--bb-border-color);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 10px 18px;
}

.bpabfb-step-content.w-full.p-4.bg-white.shadow.rounded.border.border-gray-200.bottom-0.left-0.right-0
  .flex.justify-between.items-center {
  display: flex;
  align-items: center;
}

/* PREVIOUS BUTTON */
/* RESET old styles completely */
.bpabfb-prev-btn {
  all: unset !important;
}

/* APPLY new styles with !important everywhere */
.bpabfb-prev-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  padding: 10px 26px !important;
  border: 1px solid var(--bb-border-color) !important;
  border-radius: 999px !important;

  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;

  background: var(--color-surface) !important;
  color: var(--color-heading) !important;

  box-shadow: var(--shadow-md) !important;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    box-shadow var(--transition-fast) !important;
}

.bpabfb-prev-btn:hover {
  transform: translateY(-2px) !important;
  opacity: 0.95 !important;
  box-shadow: var(--shadow-lg) !important;
}

.bpabfb-prev-btn:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow: var(--shadow-sm) !important;
}

.bpabfb-prev-btn i {
  font-size: 14px;
  color: var(--color-heading);
}

/* NEXT BUTTON */
/* RESET old styles completely */
.bpabfb-next-btn {
  all: unset !important;
}

/* APPLY new styles with !important everywhere */
.bpabfb-next-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  padding: 10px 26px !important;
  border: none !important;
  border-radius: 999px !important;

  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;

  background: var(--gradient-accent) !important;
  color: #111 !important;

  box-shadow: var(--shadow-md) !important;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    box-shadow var(--transition-fast) !important;
}

.bpabfb-next-btn:hover {
  opacity: 0.95 !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

.bpabfb-next-btn:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow: var(--shadow-sm) !important;
}

.bpabfb-next-btn i {
  font-size: 14px;
  color: #111;
}

/* SUCCESS / ERROR SCREENS */

.bpabfb-success-container,
.bpabfb-error-container {
  max-width: 880px;
  margin: 40px auto;
  border-radius: 24px;

  background: var(--gradient-panel);
  border: 1px solid var(--bb-border-color);

  box-shadow: var(--shadow-card);
  color: var(--color-heading);
}

/* MODAL & TOAST */

.bbsp-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;

  align-items: center;
  justify-content: center;

  background: var(--overlay);
  z-index: 9999;
}

.bbsp-modal-overlay.show {
  display: flex;
}

.bbsp-modal-content {
  width: 100%;
  max-width: 380px;
  padding: 22px 20px 18px;
  border-radius: 20px;

  background: var(--gradient-panel);
  border: 1px solid var(--bb-border-color);

  box-shadow: var(--shadow-card);
  color: var(--color-heading);
}

.bbsp-modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.bbsp-modal-message {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-body);
}

.bbsp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.bbsp-btn {
  border-radius: 999px;
  border: none;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}

.bbsp-btn-no {
  background: var(--color-surface);
  color: var(--color-heading);
  border: 1px solid var(--bb-border-color);
}

.bbsp-btn-yes {
  background: var(--gradient-accent);
  color: #111;
}

.bpabfb-toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10000;

  display: flex;
  flex-direction: column;
  gap: 8px;

  color: var(--color-heading);
}

/* =========================================================
======================= booking and drawer =================
===========================================================*/

/* ------------------------------
   OVERLAY (desktop + mobile)
------------------------------ */
.bbsp-booking-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;

  display: none;
  background: var(--overlay);
  z-index: 9999;

  align-items: center;
  justify-content: center;
}

.bbsp-booking-overlay.show {
  display: flex;
}

/* ------------------------------
   MODAL / DRAWER CONTAINER
------------------------------ */
.bbsp-booking-modal {
  width: 100%;
  max-width: 380px;
  padding: 22px 20px 18px;
  border-radius: 20px;

  background: var(--gradient-panel);
  border: 1px solid var(--bb-border-color);
  box-shadow: var(--shadow-card);
  color: var(--color-heading);

  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-sizing: border-box;
}

/* scrollable body area (base) */
.bbsp-booking-body {
  flex: 1 1 auto;
}

/* ------------------------------
   MOBILE — drawer, 80% height
------------------------------ */
@media (max-width: 600px) {
  .bbsp-booking-overlay {
    align-items: flex-end; /* drawer from bottom */
  }

  .bbsp-booking-modal {
    max-width: 100%;
    width: 100%;
    height: 80vh;                 /* 80% height drawer */
    border-radius: 20px 20px 0 0; /* rounded top only */
    position: relative;           /* for absolute buttons */
    overflow: hidden;             /* body scrolls inside */
    transform: translateY(100%);  /* hidden state */
    transition: transform 0.35s ease;
  }

  .bbsp-booking-overlay.show .bbsp-booking-modal {
    transform: translateY(0);     /* slide up */
  }

  /* body scrolls, with space for buttons */
  .bbsp-booking-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 90px;         /* space so text doesn't hide under buttons */
  }

  /* buttons fixed to bottom INSIDE drawer */
  .bbsp-booking-actions {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 90px;

    display: flex;
    gap: 10px;
  }

  .bbsp-booking-btn {
    flex: 1;
    text-align: center;
  }
}

/* ------------------------------
   DESKTOP ACTIONS (normal flex)
------------------------------ */
.bbsp-booking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* ------------------------------
   TEXT
------------------------------ */
.bbsp-booking-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bb-border-color);
}

.bbsp-booking-message {
  margin: 0 0 16px;
  padding-bottom: 15px;
  font-size: 13px;
  color: var(--color-body);
}

/* ------------------------------
   BUTTONS
------------------------------ */
.bbsp-booking-btn {
  border-radius: 999px;
  border: none;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}

.bbsp-booking-cancel {
  background: var(--color-surface);
  color: var(--color-heading);
  border: 1px solid var(--bb-border-color);
}

.bbsp-booking-confirm {
  background: var(--gradient-accent);
  color: #111;
}
