@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

/* ==========================================================================
   Mukundra Safari Booking - 100% Robust Responsive & Smart Compact Design
   ========================================================================== */

:root {
  --msb-primary: #196317;
  --msb-primary-hover: #134e11;
  --msb-primary-light: #eaf4e8;
  --msb-primary-subtle: #f4faf2;
  --msb-secondary: #d4a017;
  --msb-secondary-light: #fef9e8;
  --msb-accent-avail: #27ae60;
  --msb-accent-booked: #e74c3c;
  --msb-accent-selected: #f39c12;
  --msb-text-main: #162414;
  --msb-text-muted: #536450;
  --msb-text-light: #7b8e78;
  --msb-border: #d4e2d2;
  --msb-border-focus: #196317;
  --msb-bg-input: #ffffff;
  --msb-card-bg: #ffffff;
  --msb-card-border: #e1ede0;
  --msb-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --msb-shadow-md: 0 4px 16px rgba(22, 54, 18, 0.06), 0 1px 4px rgba(0, 0, 0, 0.02);
  --msb-radius-sm: 5px;
  --msb-radius-md: 8px;
  --msb-radius-lg: 11px;
}

/* Base Wrapper - Clear clearance from theme headers */
.msb-wrap {
  max-width: 920px;
  width: 100%;
  margin: 45px auto 30px;
  clear: both;
  position: relative;
  z-index: 1;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--msb-card-border);
  border-radius: var(--msb-radius-lg);
  box-shadow: var(--msb-shadow-md);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--msb-text-main);
  box-sizing: border-box;
  overflow: visible;
}

.msb-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #196317 0%, #27ae60 50%, #d4a017 100%);
  border-radius: var(--msb-radius-lg) var(--msb-radius-lg) 0 0;
  z-index: 2;
}

.msb-wrap * {
  box-sizing: border-box;
}

body .msb-wrap i[class*="fa-"] {
  display: inline-block;
  line-height: inherit;
  vertical-align: -0.06em;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: #000;
}

body .msb-wrap i.fa-solid,
body .msb-wrap i.fas,
body .msb-wrap i[class*="fa-"]:not(.fa-brands):not(.fab):not(.fa-regular):not(.far) {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

body .msb-wrap i.fa-regular,
body .msb-wrap i.far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

body .msb-wrap i.fa-brands,
body .msb-wrap i.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

.msb-pill-check i,
.msb-vc-check i {
  font-size: 8px;
  line-height: 1;
  display: block;
}

.msb-sb-icon i {
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.msb-wheel-icon i,
.msb-guide-icon i {
  font-size: 10px;
}

.msb-veh-spare-wheel i {
  font-size: 9px;
}

.msb-lbl-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  font-size: 15px;
  margin-bottom: 6px;
}


/* Header & Brand (Clean & Roomy) */
.msb-head {
  padding: 14px 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-bottom: 1px solid #edf4ec;
  border-radius: var(--msb-radius-lg) var(--msb-radius-lg) 0 0;
  flex-wrap: wrap;
}

.msb-head-brand {
  flex: 1;
  min-width: 220px;
}

.msb-kicker-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.msb-kicker-dot {
  width: 6px;
  height: 6px;
  background: #196317;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(25, 99, 23, 0.18);
}

.msb-kicker {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--msb-primary);
  text-transform: uppercase;
}

.msb-badge-gov {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  background: #fdf5df;
  color: #8c6508;
  border: 1px solid #fae2a6;
}

.msb-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #112210;
  font-weight: 800;
}

.msb-hi-title {
  color: #196317;
  font-weight: 700;
  font-size: 15px;
  margin-left: 4px;
}

.msb-head p {
  margin: 2px 0 0;
  color: var(--msb-text-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.msb-head-badges {
  flex-shrink: 0;
}

.msb-rate-toggle-btn {
  background: var(--msb-primary-subtle);
  border: 1px solid #b7d6b3;
  color: var(--msb-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.msb-rate-toggle-btn:hover {
  background: var(--msb-primary);
  color: #ffffff;
  border-color: var(--msb-primary);
}

/* Trust Strip (Compact) */
.msb-trust-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #f7faf6;
  border-bottom: 1px solid #e5ede3;
  padding: 5px 16px;
  font-size: 10.5px;
  color: #334930;
  flex-wrap: wrap;
  gap: 8px;
}

.msb-trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.msb-trust-icon {
  font-size: 11px;
}

/* Form Container & 100% Reliable Responsive Flow */
#msb-form {
  padding: 14px 18px 20px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0 0 var(--msb-radius-lg) var(--msb-radius-lg);
}

.msb-form-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.msb-main-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.msb-side-col {
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.msb-sidebar-sticky {
  position: static;
  width: 100%;
  box-sizing: border-box;
}

/* 2-Column Responsive Layout with Sticky Sidebar (Step 6) on Screens >= 992px */
@media (min-width: 992px) {
  .msb-wrap {
    max-width: 1180px;
  }

  .msb-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
  }

  .msb-side-col {
    position: relative;
    height: 100%;
  }

  .msb-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 24px;
    z-index: 15;
    transition: top 0.2s ease;
  }

  body.admin-bar .msb-sidebar-sticky {
    top: 56px;
  }

  @media (max-height: 850px) {
    .msb-sidebar-sticky {
      top: 12px;
      max-height: calc(100vh - 24px);
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: #c5dac3 transparent;
    }

    body.admin-bar .msb-sidebar-sticky {
      top: 44px;
      max-height: calc(100vh - 56px);
    }
  }
}

/* Rate Card Drawer */
.msb-rate-card-box {
  margin: 10px 16px 0;
  border: 1px solid #c2dec0;
  border-radius: var(--msb-radius-md);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.msb-rate-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #196317 0%, #134e11 100%);
  color: #ffffff;
  padding: 8px 14px;
}

.msb-rate-card-header h4 {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.msb-rate-card-header small {
  color: #d1ead0;
  font-size: 10px;
}

.msb-close-rates {
  cursor: pointer;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
}

.msb-rate-table-scroll {
  overflow-x: auto;
  max-height: 260px;
}

.msb-frontend-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.msb-frontend-rate-table th {
  background: #ecf5ea;
  color: #184e14;
  padding: 6px 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #c9e0c6;
  font-size: 10.5px;
}

.msb-frontend-rate-table td {
  padding: 6px 12px;
  border-bottom: 1px solid #ebf1ea;
  vertical-align: middle;
}

.msb-rt-title strong {
  color: #172c14;
  font-size: 12px;
}

.msb-rt-pill {
  display: inline-block;
  font-size: 9.5px;
  padding: 1px 6px;
  background: #e4f2e2;
  color: #176015;
  border-radius: 6px;
  font-weight: 600;
}

.msb-rt-price {
  font-weight: 900;
  color: var(--msb-primary);
  text-align: right;
  font-size: 14.5px;
  letter-spacing: -0.2px;
}

/* Step Cards */
.msb-step-card {
  background: #ffffff;
  border: 1px solid var(--msb-card-border);
  border-radius: var(--msb-radius-md);
  padding: 10px 14px;
  box-shadow: var(--msb-shadow-sm);
  transition: border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.msb-step-card:hover {
  border-color: #cbdcc9;
}

.msb-step-header {
  display: flex;
  /* align-items: center; */
  gap: 8px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf4ec;
  width: 100%;
}

.msb-step-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 6px;
}

.msb-step-num {
  width: 32px;
  height: 32px;
  background: #e2bf3f;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.msb-step-title {
  font-size: 20px;
  font-weight: 800;
  color: #142712;
  line-height: 1.2;
}

.msb-opt-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0b63b8;
  background: #eaf3fd;
  border: 1px solid #cce2fc;
  padding: 2px 8px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.msb-step-subtitle {
  font-size: 14px;
  color: var(--msb-text-muted);
  margin-top: 1px;
}

.msb-block-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #173014;
  margin-bottom: 5px;
}

/* ==========================================================================
   FIELD 1: Safari Option Type (50% / 50% Perfect Grid)
   ========================================================================== */
.msb-type-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .msb-type-toggle-grid {
    grid-template-columns: 1fr;
  }
}

.msb-type-pill {
  position: relative;
  display: block;
  cursor: pointer;
  border: 1.5px solid #d0dfce;
  border-radius: 7px;
  background: #fbfdfa;
  padding: 7px 10px;
  transition: all 0.15s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.msb-type-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.msb-pill-body {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
}

.msb-pill-icon {
  font-size: 16px;
  background: #ffffff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid #dbe7da;
  flex-shrink: 0;
}

.msb-pill-meta {
  flex: 1;
  min-width: 0;
}

.msb-pill-meta strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: #152c13;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msb-pill-meta small {
  display: block;
  font-size: 12px;
  color: #556b52;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msb-pill-check {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #c2d6c0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
}

.msb-type-pill:hover {
  border-color: #a4caa0;
  background: #f5faf4;
}

.msb-type-pill.active {
  border-color: var(--msb-primary);
  background: #f0f8ee;
}

.msb-type-pill.active .msb-pill-check {
  background: var(--msb-primary);
  border-color: var(--msb-primary);
  color: #ffffff;
}

/* ==========================================================================
   FIELD 2: Compact Vehicle Selection Cards Grid (4 in a Single Row!)
   ========================================================================== */
.msb-vehicle-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 660px) {
  .msb-vehicle-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .msb-vehicle-picker-grid {
    grid-template-columns: 1fr;
  }
}

.msb-veh-card {
  border: 1.5px solid #d4e2d2;
  border-radius: 7px;
  background: #ffffff;
  padding: 7px 9px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.msb-veh-card:hover {
  border-color: #9ecc9a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.msb-veh-card.selected {
  border-color: var(--msb-primary);
  background: #f4faf2;
  box-shadow: 0 2px 8px rgba(25, 99, 23, 0.12);
}

.msb-vc-icon {
  font-size: 18px;
  line-height: 1;
}

.msb-vc-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #142812;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msb-vc-cap {
  font-size: 10px;
  color: #495e46;
  font-weight: 600;
  white-space: nowrap;
}

.msb-vc-price {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 900;
  color: var(--msb-primary);
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.msb-vc-price small {
  font-size: 12px;
  font-weight: 600;
  color: #556c52;
}

.msb-vc-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #c2d6c0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: transparent;
}

.msb-veh-card.selected .msb-vc-check {
  background: var(--msb-primary);
  border-color: var(--msb-primary);
  color: #ffffff;
}

/* ==========================================================================
   FIELDS 3 & 4: Date, Quick Navigator & Time Slot (Full Width 100%)
   ========================================================================== */
.msb-schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.msb-field-col {
  width: 100%;
  min-width: 0;
}

.msb-field-col label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #21351e;
  width: 100%;
}

.msb-field-col input,
.msb-field-col select {
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--msb-border);
  border-radius: var(--msb-radius-sm);
  background: var(--msb-bg-input);
  font-size: 14px;
  font-weight: 500;
  color: var(--msb-text-main);
  outline: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.msb-field-col input:focus,
.msb-field-col select:focus {
  border-color: var(--msb-primary);
  box-shadow: 0 0 0 2px rgba(30, 107, 24, 0.15);
}

/* Date Quick Navigator Bar */
.msb-date-quick-bar {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.msb-dq-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f5f9f4;
  border: 1px solid #cde0cb;
  border-radius: 5px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 10px;
  color: #243b21;
}

.msb-dq-pill.active {
  background: var(--msb-primary);
  border-color: var(--msb-primary);
  color: #ffffff;
}

.msb-dq-pill.active .msb-dq-count {
  color: #d7f5d4;
}

.msb-dq-date {
  font-weight: 700;
}

.msb-dq-count {
  font-size: 9.5px;
}

.msb-dq-avail {
  color: #1e751a;
  font-weight: 700;
}

.msb-dq-full {
  color: #b32d2e;
  font-weight: 700;
}

/* ==========================================================================
   STEP 3: Smart Live Visual Seat Selection (Wrapped Tabs, No Overflow)
   ========================================================================== */
.msb-seat-legend {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.msb-legend-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 7px;
  background: #f7faf6;
  border: 1px solid #d8e5d6;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.msb-unit-control-wrap {
  margin-bottom: 7px;
  width: 100%;
}

.msb-unit-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  padding: 5px 8px;
  background: #f4f8f3;
  border-radius: 6px;
  border: 1px solid #dce8db;
  font-size: 10px;
  width: 100%;
}

.msb-stat-chip {
  color: #274224;
}

.msb-stat-avail {
  color: #176614;
  font-weight: 700;
}

.msb-stat-booked {
  color: #a32a2b;
  font-weight: 700;
}

/* Multi-unit Tabs: Flex Wrap, No Ugly Scrollbar */
.msb-unit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
  width: 100%;
}

.msb-unit-tab {
  background: #ffffff;
  border: 1px solid #c8dcc6;
  border-radius: 5px;
  padding: 9px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1f3b1c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s ease;
}

.msb-unit-tab i {
  color: #e2bf3f;
}

.msb-unit-tab:hover {
  background: #f4faf2;
}

span.msb-utab-label {
  color: #333;
}

.msb-unit-tab.active {
  background: var(--msb-primary);
  border-color: var(--msb-primary);
  color: #ffffff;
}

.msb-unit-tab.active span.msb-utab-label {
  color: #ffffff;
}

.msb-unit-tab.msb-utab-filled-state span.msb-utab-label {
  color: var(--msb-primary);
}

.msb-utab-free {
  font-size: 9px;
  background: #e5f6e3;
  color: #185e15;
  padding: 1px 4px;
  border-radius: 5px;
}

.msb-unit-tab.active .msb-utab-free {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.msb-utab-full {
  font-size: 9px;
  background: #fde8e8;
  color: #a32a2b;
  padding: 1px 4px;
  border-radius: 5px;
}

/* Progressive Locked & Filled Unit Tabs (Share Safari Only) */
.msb-unit-tab.msb-utab-locked-state {
  background: #f7f9f6;
  border-color: #dce4db;
  color: #7b8e78;
  cursor: not-allowed;
  opacity: 0.72;
}

.msb-unit-tab.msb-utab-locked-state:hover {
  background: #f1f5f0;
  border-color: #d2ded0;
}

.msb-utab-locked {
  font-size: 8.5px;
  background: #ebeee9;
  color: #637761;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.msb-unit-tab.msb-utab-filled-state {
  border-color: #9cd499;
  background: #f1fbf0;
}

.msb-utab-filled {
  font-size: 8.5px;
  background: #d4f4d1;
  color: #145912;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Unit Lock Status Notice Box */
.msb-unit-lock-notice {
  margin-top: 5px;
  margin-bottom: 7px;
  width: 100%;
}

.msb-lock-info-box {
  background: #f4faf2;
  border: 1px solid #cce4cb;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #1e451b;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
}

.msb-lock-info-box.msb-lock-unlocked-box {
  background: #eef9ee;
  border-color: #aae0aa;
  color: #135311;
}

.msb-lock-info-box.msb-lock-full-box {
  background: #fdf2f2;
  border-color: #f5c6c6;
  color: #922222;
}

/* Floating Seat Alert Toast */
.msb-seat-toast {
  display: none;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
}

.msb-seat-toast.toast-warning {
  background: #fff9e6;
  border: 1px solid #f6d88e;
  color: #855b00;
}

.msb-seat-toast.toast-success {
  background: #edfaee;
  border: 1px solid #a3e6a1;
  color: #165e13;
}

.msb-seat-toast.toast-info {
  background: #f0f7ff;
  border: 1px solid #b9d7fb;
  color: #104e92;
}

/* Shake Animation */
@keyframes msbShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

.msb-shake {
  animation: msbShake 0.4s ease-in-out;
}

/* Vehicle Cards: Share Safari Blocked / Personal Only state */
.msb-veh-card.msb-veh-share-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(40%);
  position: relative;
  background: #fafafa;
}

.msb-vc-badge-pers {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 8.5px;
  background: #fef4e2;
  color: #995c00;
  border: 1px solid #f5cf8c;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* Personal Safari: Multi-Vehicle Selection Toolbar & Tabs */
.msb-personal-multi-bar {
  background: #f1f8f0;
  border: 1.5px solid #aed6ab;
  border-radius: 7px;
  padding: 8px 11px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

.msb-pmb-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msb-pmb-icon {
  font-size: 16px;
  color: var(--msb-primary);
}

.msb-pmb-info strong {
  display: block;
  font-size: 11.5px;
  color: #174e14;
  line-height: 1.25;
}

.msb-pmb-info small {
  font-size: 10px;
  color: #3b6338;
  display: block;
}

.msb-pmb-ctrls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.msb-pmb-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #1b4918;
}

.msb-veh-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #9dc79a;
  border-radius: 5px;
  overflow: hidden;
}

.msb-vstep-btn {
  background: #f4faf2;
  border: none;
  padding: 3px 9px;
  font-size: 11px;
  color: #185e15;
  cursor: pointer;
  transition: all 0.12s ease;
}

.msb-vstep-btn:hover:not(:disabled) {
  background: #e0f2dc;
  color: #0e440b;
}

.msb-vstep-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.msb-vstep-val {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #154c13;
  min-width: 65px;
  text-align: center;
  background: #ffffff;
}

.msb-pmb-badge {
  font-size: 9.5px;
  background: #d4edd2;
  color: #114e10;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Personal Safari Unit Tab States */
.msb-unit-tab.msb-utab-p-selected {
  background: #1b6816;
  border-color: #134e10;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(27, 104, 22, 0.25);
}

.msb-unit-tab.msb-utab-p-selected .msb-utab-label {
  color: #ffffff;
}

.msb-unit-tab.msb-utab-p-viewing {
  box-shadow: 0 0 0 2px #f1c40f, 0 2px 6px rgba(0, 0, 0, 0.15);
}

.msb-utab-p-badge-sel {
  font-size: 8.5px;
  background: #fff0a6;
  color: #553d00;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.msb-utab-p-remove-btn {
  margin-left: 3px;
  padding: 0 3px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  color: #ffffff;
  font-size: 8px;
  line-height: 12px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.msb-utab-p-remove-btn:hover {
  background: #d63031;
}

.msb-unit-tab.msb-utab-p-available {
  background: #ffffff;
  border: 1px dashed #7bc277;
  color: #1a4d17;
}

.msb-unit-tab.msb-utab-p-available:hover {
  background: #f1fbf0;
  border-color: #4ea849;
}

.msb-utab-p-badge-add {
  font-size: 8.5px;
  background: #e3f5e1;
  color: #185e15;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Vehicle Chassis & Seat Canvas */
.msb-seatmap-canvas {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: radial-gradient(circle at center, #fbfdfa 0%, #f1f7f0 100%);
  border: 1px solid #d4e4d2;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.msb-vehicle-chassis {
  width: 100%;
  max-width: 300px;
  background: #ffffff;
  border: 1.5px solid #557850;
  border-radius: 16px 16px 8px 8px;
  box-shadow: 0 3px 10px rgba(25, 99, 23, 0.08);
  padding: 7px 9px;
  position: relative;
  box-sizing: border-box;
}

.msb-veh-front {
  text-align: center;
  margin-bottom: 5px;
}

.msb-veh-bumper {
  height: 3px;
  width: 65px;
  margin: 0 auto 3px;
  background: #395435;
  border-radius: 2px;
}

.msb-veh-windshield {
  height: 17px;
  background: linear-gradient(180deg, #d8e8f8 0%, #b8d2ea 100%);
  border: 1px solid #99b6d3;
  border-radius: 7px 7px 2px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msb-windshield-tag {
  font-size: 10px;
  font-weight: 800;
  color: #173859;
}

.msb-veh-interior {
  padding: 3px;
}

.msb-driver-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding-bottom: 3px;
  border-bottom: 1px dashed #d5e5d3;
}

.msb-driver-seat,
.msb-guide-seat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0f4ee;
  border: 1px solid #c9d8c6;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9px;
  color: #496345;
  font-weight: 700;
}

.msb-wheel-icon {
  font-size: 11px;
}

/* Seat Matrices */
.msb-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  max-width: 220px;
  margin: 0 auto;
}

.msb-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  max-width: 230px;
  margin: 0 auto;
}

.msb-grid-20 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  max-width: 260px;
  margin: 0 auto;
}

.msb-grid-20 .msb-seat-box:nth-child(4n - 2) {
  margin-right: 7px;
}

.msb-veh-rear {
  text-align: center;
  margin-top: 5px;
  padding-top: 3px;
  border-top: 1px solid #e1eee0;
}

.msb-veh-spare-wheel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #395435;
  color: #ffffff;
  border-radius: 50%;
  font-size: 9px;
}

/* Compact Seat Boxes */
.msb-seat-box {
  height: 33px;
  min-width: 28px;
  border-radius: 4px;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.msb-sb-icon {
  font-size: 11.5px;
  line-height: 1;
}

.msb-sb-num {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.msb-seat-box.msb-seat-avail {
  background: linear-gradient(135deg, #27ae60 0%, #1e824c 100%);
  color: #ffffff;
  border: 1px solid #1e824c;
}

.msb-seat-box.msb-seat-avail:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

.msb-seat-box.msb-seat-res {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffffff;
  border: 1px solid #c0392b;
  opacity: 0.85;
  cursor: not-allowed;
}

.msb-seat-box.msb-seat-selected {
  background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 2px #f39c12;
  transform: scale(1.03);
}

.msb-seat-selection-summary {
  margin-top: 6px;
  background: #f0f7ef;
  border: 1px solid #b8dab5;
  border-radius: 5px;
  padding: 5px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 10.5px;
  width: 100%;
}

.msb-sss-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.msb-sss-icon {
  font-size: 14px;
}

.msb-sss-left strong {
  display: block;
  font-size: 11px;
  color: #163613;
}

.msb-sss-tag {
  font-size: 9.5px;
  color: #276922;
  font-weight: 700;
}

.msb-sss-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #385b34;
  flex-wrap: wrap;
}

.msb-sss-fare-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #6cb367;
  border-radius: 6px;
  padding: 3px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.msb-sss-fare-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.msb-sss-total {
  font-size: 14px;
  font-weight: 900;
  color: #196317;
  letter-spacing: -0.2px;
}

/* Base Mobile Floating Live Amount Bar (Hidden on Desktop) */
.msb-mobile-floating-bar {
  display: none;
}

/* ==========================================================================
   STEP 4: Lead Traveler Details (4 Cols in 1 Row on Desktop, 2x2 on Mobile)
   ========================================================================== */
.msb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

.msb-grid.msb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

.msb-grid.msb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  .msb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .msb-grid.msb-grid-2 {
    grid-template-columns: repeat(1, 1fr) !important;
  }

}

@media (max-width: 380px) {
  .msb-grid {
    grid-template-columns: 1fr;
  }
}

.msb-grid>label,
.msb-grid>.msb-field-wrap,
.msb-grid>.msb-upload-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  font-size: 10.5px;
  font-weight: 700;
  color: #21351e;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.msb-grid .msb-lbl-title {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e331a !important;
  margin-bottom: 3px !important;
  text-align: left !important;
  width: auto !important;
  line-height: 1.2 !important;
}

.msb-grid .msb-lbl-title i {
  color: var(--msb-primary, #1e6b18) !important;
  font-size: 13px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.msb-grid input {
  height: 39px;
  padding: 6px 12px;
  border: 1px solid var(--msb-border);
  border-radius: 5px;
  background: var(--msb-bg-input);
  font-size: 14.5px;
  color: #000000;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

/* Number of Visitors Wrap in Step 4 */
.msb-num-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 39px;
  border: 1px solid var(--msb-border);
  border-radius: 5px;
  background: var(--msb-bg-input);
  overflow: visible;
  box-sizing: border-box;
}

.msb-num-input-wrap input.msb-visitors-input {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #163612;
  border: none !important;
  background: transparent !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 4px !important;
  min-width: 36px;
  -moz-appearance: textfield;
}

.msb-num-input-wrap input.msb-visitors-input::-webkit-outer-spin-button,
.msb-num-input-wrap input.msb-visitors-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.msb-visitors-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 100%;
  background: #f1f8ee;
  border: none;
  color: #1e6b18;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  padding: 0;
  outline: none;
  flex-shrink: 0;
}

.msb-visitors-step-btn:hover:not(:disabled) {
  background: #1e6b18;
  color: #fff;
}

.msb-visitors-step-btn:hover:not(:disabled) i {
  color: #fff;
}

.msb-visitors-step-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.msb-visitors-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8faf7;
  color: #aaa;
}

.msb-visitors-step-dec {
  border-right: 1px solid var(--msb-border) !important;
  border-radius: 4px 0 0 4px;
}

.msb-visitors-step-inc {
  border-left: 1px solid var(--msb-border) !important;
  border-radius: 0 4px 4px 0;
}

.msb-visitors-badge {
  position: absolute;
  top: -18px;
  right: 6px;
  background: #1e6b18;
  color: #fff;
  font-size: 8.5px;
  line-height: 2;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  z-index: 2;
  letter-spacing: 0.3px;
}

/* Aadhaar Upload Box in Step 4 */


.msb-format-chip {
  font-size: 9.5px;
  font-weight: 700;
  color: #555;
  background: #edf5eb;
  border: 1px solid #cce2c7;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.2px;
  vertical-align: middle;
}

.msb-upload-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  grid-column: 1 / -1;
}

.msb-upload-preview-thumb {
  width: 25px;
  height: 25px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--msb-primary, #1e6b18);
  margin-right: 6px;
  flex-shrink: 0;
}

.msb-upload-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 39px !important;
  min-height: 39px !important;
  max-height: 39px !important;
  padding: 3px 6px 3px 4px !important;
  border: 1px solid var(--msb-border, #c8d8c5) !important;
  border-radius: 5px !important;
  background: var(--msb-bg-input, #fff) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
  cursor: pointer;
  overflow: hidden !important;
}

.msb-upload-wrap:hover {
  border-color: var(--msb-primary, #1e6b18) !important;
  box-shadow: 0 0 0 2px rgba(30, 107, 24, 0.08) !important;
}

.msb-upload-wrap.msb-upload-error {
  border-color: #c0392b !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15) !important;
}

.msb-upload-trigger-btn {
  height: 29px !important;
  line-height: 29px !important;
  padding: 0 11px !important;
  background: #1e6b18 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  box-sizing: border-box !important;
}

.msb-upload-wrap:hover .msb-upload-trigger-btn {
  background: #144e10 !important;
}

.msb-upload-trigger-btn i {
  color: #fff !important;
  font-size: 12px !important;
  display: inline-block !important;
}

.msb-upload-info-box {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  overflow: hidden !important;
  cursor: pointer;
}

.msb-upload-filename {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #666 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  user-select: none;
}

.msb-upload-filename.has-file {
  color: #1e6b18 !important;
  font-weight: 700 !important;
}

.msb-upload-clear-btn {
  height: 20px;
  width: 20px;
  min-width: 20px;
  background: #fde8e8;
  border: 1px solid #f8b4b4;
  color: #c81e1e;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.msb-upload-clear-btn:hover {
  background: #f8b4b4;
  color: #9b1c1c;
}

.msb-upload-error-msg {
  color: #c0392b;
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   STEP 5: Visitor Details & Category (Accordion Collapsible)
   ========================================================================== */
.msb-accordion-header {
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease, border-color 0.18s ease;
  border-radius: 6px;
  padding: 4px 6px;
  margin: -4px -6px 7px -6px;
}

.msb-accordion-header:hover {
  background: #f4f8f3;
}

.msb-accordion-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.msb-accordion-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--msb-primary, #1e6b18);
  background: rgba(30, 107, 24, 0.08);
  border: 1px solid rgba(30, 107, 24, 0.25);
  padding: 4px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.msb-accordion-header:hover .msb-accordion-badge {
  background: var(--msb-primary, #1e6b18);
  color: #fff;
  border-color: var(--msb-primary, #1e6b18);
}

.msb-accordion-open .msb-accordion-badge {
  background: #f0f4ee;
  color: #333;
  border-color: #cbdcc9;
}

.msb-accordion-open .msb-accordion-badge i {
  color: #1e6b18;
}

.msb-accordion-body {
  width: 100%;
}

.msb-members {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.msb-members-empty {
  padding: 8px 12px;
  background: #f8faf7;
  border: 1px dashed #c8d8c5;
  border-radius: 6px;
  color: #496346;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.msb-members .msb-lbl-title {
  font-size: 11px;
}

.msb-member-card {
  background: #fafcfa;
  border: 1px solid #d8e5d6;
  border-radius: 6px;
  padding: 6px 9px;
  transition: border-color 0.12s ease;
  width: 100%;
  box-sizing: border-box;
}

.msb-member-card:hover {
  border-color: #b7d6b3;
}

.msb-member-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid #e7eee5;
  width: 100%;
}

.msb-member-top-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.msb-member-no {
  width: 17px;
  height: 17px;
  background: var(--msb-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.msb-member-title {
  font-size: 11px;
  color: #172d15;
}

.msb-member-seat-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: #eef7ed;
  color: #1e6b18;
  padding: 1px 6px;
  border-radius: 7px;
  border: 1px solid #cbe4c7;
}

.msb-member-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.8fr 1fr 1.6fr;
  gap: 5px;
  align-items: end;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 780px) {
  .msb-member-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .msb-member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .msb-member-grid {
    grid-template-columns: 1fr;
  }
}

.msb-field-col label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9.5px;
  font-weight: 700;
  color: #2b3f28;
}

.msb-field-col input,
.msb-field-col select {
  height: 40px;
  padding: 2px 6px;
  border: 1px solid var(--msb-border);
  border-radius: 4px;
  background: #ffffff;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.msb-personal-visitor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f7ee;
  border: 1px solid #c2dec0;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.msb-pvb-left strong {
  display: block;
  font-size: 11.5px;
  color: #113410;
}

.msb-pvb-left small {
  color: #4b6b48;
  font-size: 10px;
}

.msb-pvb-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.msb-pvb-ctrls label {
  font-size: 10.5px;
  font-weight: 700;
}

.msb-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #bad4b8;
  border-radius: 4px;
  overflow: hidden;
}

.msb-step-btn {
  width: 25px;
  height: 25px;
  border: none;
  background: #eef6ec;
  color: #174f14;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msb-step-btn:hover:not(:disabled) {
  background: var(--msb-primary);
  color: #ffffff;
}

.msb-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.msb-step-val {
  min-width: 25px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #122910;
}

/* ==========================================================================
   STEP 6: Booking Summary & Payment (Sticky Sidebar Card)
   ========================================================================== */
.msb-payment-step {
  padding: 13px 15px;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #c9dec7;
  border-radius: var(--msb-radius-md);
  box-shadow: 0 4px 18px rgba(25, 99, 23, 0.08);
}

.msb-coupon-box {
  margin-bottom: 9px;
  width: 100%;
}

.msb-coupon-input-wrap {
  display: flex;
  gap: 4px;
  align-items: center;
  background: #fafcfa;
  border: 1px solid #c9d8c6;
  border-radius: 6px;
  padding: 2px 4px 2px 8px;
  max-width: 100%;
  width: 100%;
}

.msb-coupon-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  height: 28px;
  font-size: 11.5px;
  outline: none;
}

.msb-coupon-input-wrap button {
  background: var(--msb-primary);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 10.5px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.msb-coupon-input-wrap button:hover {
  background: var(--msb-primary-hover);
}

#msb-coupon-msg {
  font-size: 10.5px;
  margin-top: 3px;
  font-weight: 600;
}

.msb-summary-card {
  background: #fafcfa;
  border: 1px solid #d5e2d3;
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 9px;
  width: 100%;
  box-sizing: border-box;
}

.msb-summary-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e5ede3;
}

.msb-sum-head-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #152c13;
}

.msb-tax-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 7px;
  background: #eef6ec;
  color: #1c5e18;
}

.msb-breakdown {
  font-size: 12px;
  font-weight: 600;
  color: #243d20;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #d2e4d0;
  border-radius: 6px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.msb-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.msb-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #2b4228;
  font-weight: 600;
}

.msb-summary-line b {
  color: #112810;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.msb-line-platform {
  color: #9a5400;
}

.msb-line-platform b {
  color: #b25e00;
  font-size: 14.5px;
  font-weight: 800;
}

.msb-line-vehicle-fee {
  color: #0c4a80;
}

.msb-line-vehicle-fee b {
  color: #0969da;
  font-size: 14.5px;
  font-weight: 800;
}

.msb-line-entry-fee {
  color: #1b5e20;
}

.msb-line-entry-fee b {
  color: #2e7d32;
  font-size: 14.5px;
  font-weight: 800;
}

.msb-line-gst {
  color: #4a154b;
}

.msb-line-gst b {
  color: #6f42c1;
  font-size: 14.5px;
  font-weight: 800;
}

.msb-line-discount {
  color: #b32d2e;
}

.msb-line-discount b {
  color: #b32d2e;
  font-size: 14.5px;
  font-weight: 800;
}

.msb-summary-divider {
  height: 1px;
  background: #d4e5d2;
  margin: 5px 0;
}

.msb-grand-line {
  align-items: center;
  font-size: 15px;
  padding-top: 5px;
}

.msb-grand-title {
  font-weight: 900;
  font-size: 15px;
  color: #112810;
}

.msb-grand-subtitle {
  font-size: 11px;
  color: #556c52;
}

.msb-grand-line b {
  font-size: 22px;
  color: #145912;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.msb-pay {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #1e6b18 0%, #165611 100%);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 3px 10px rgba(25, 99, 23, 0.2);
}

.msb-pay:hover {
  background: linear-gradient(135deg, #185a13 0%, #11460d 100%);
  transform: translateY(-1px);
}

/* Step 6 Dual Action Buttons */
.msb-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.msb-actions-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #728a70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin: 1px 0;
}

.msb-actions-divider::before,
.msb-actions-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #d4e3d2;
}

.msb-actions-divider span {
  padding: 0 8px;
}

.msb-btn-whatsapp-inquiry {
  width: 100%;
  padding: 8px 14px;
  min-height: 44px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 3px 10px rgba(18, 140, 126, 0.25);
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.msb-btn-whatsapp-inquiry:hover {
  background: linear-gradient(135deg, #22c75f 0%, #0e776b 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(18, 140, 126, 0.35);
  color: #ffffff;
}

.msb-btn-wa-title {
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.msb-btn-subtext {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.94;
  margin-top: 1px;
}

.msb-wa-pulse {
  animation: msbPulse 2s infinite;
}

@keyframes msbPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.msb-security-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: #657e62;
  margin-top: 7px;
  flex-wrap: wrap;
}

/* Success & Error Banners */
.msb-success-banner {
  background: #f0f8ee;
  border: 1.5px solid #a8d5a3;
  border-radius: 7px;
  padding: 12px 16px;
  color: #184214;
  margin-top: 8px;
  text-align: center;
}

.msb-success-banner h3 {
  margin: 0 0 3px;
  color: #135210;
  font-size: 14.5px;
}

.msb-success-icon {
  width: 34px;
  height: 34px;
  background: #27ae60;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 6px;
}

.msb-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 18px;
  text-decoration: none;
  margin-top: 6px;
}

/* Payment QR & UPI Card on Success Screen */
.msb-qr-payment-card {
  background: #ffffff;
  border: 1.5px solid #bce1b7;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px auto;
  max-width: 480px;
  box-shadow: 0 4px 16px rgba(30, 107, 24, 0.08);
  text-align: left;
  box-sizing: border-box;
}

.msb-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5e5;
  color: #1b6315;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.msb-qr-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.msb-qr-img-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0 auto;
}

.msb-qr-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border: 1px solid #d4e7d1;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.msb-qr-download-link {
  font-size: 10.5px;
  font-weight: 700;
  color: #1e6b18;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #edf7eb;
  border-radius: 4px;
  transition: all 0.2s;
}

.msb-qr-download-link:hover {
  background: #1e6b18;
  color: #ffffff !important;
}

.msb-qr-details {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msb-qr-amount-box {
  background: #f7faf6;
  border-left: 3px solid #1e6b18;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.msb-qr-amt-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #3b5037;
}

.msb-qr-amt-val {
  font-size: 16px;
  font-weight: 900;
  color: #145510;
}

.msb-qr-upi-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.msb-qr-upi-label {
  font-size: 11px;
  font-weight: 700;
  color: #556b52;
}

.msb-qr-upi-code {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  background: #edf3ec;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1b4b17;
  border: 1px solid #d5e6d2;
}

.msb-qr-copy-btn {
  background: #ffffff;
  border: 1px solid #c8dcc5;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1e6b18;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s;
}

.msb-qr-copy-btn:hover {
  background: #1e6b18;
  color: #ffffff;
  border-color: #1e6b18;
}

.msb-qr-payee {
  font-size: 11px;
  color: #4a6347;
}

.msb-qr-app-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #097932 0%, #17833a 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(23, 131, 58, 0.25);
  transition: all 0.2s;
  margin-top: 2px;
}

.msb-qr-app-pay-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.msb-qr-instruction {
  font-size: 11px;
  line-height: 1.4;
  color: #52674e;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #d5e6d2;
}

.msb-error-banner {
  background: #fdf2f2;
  border: 1px solid #f5c2c2;
  border-radius: 5px;
  padding: 7px 11px;
  color: #a32a2b;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.msb-avail-default {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #496345;
}

.msb-avail-danger {
  color: #a32a2b;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.msb-avail-loading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #2b5627;
  font-weight: 600;
}

.msb-beacon-anim {
  width: 8px;
  height: 8px;
  background: #27ae60;
  border-radius: 50%;
  animation: msb-beacon 1.2s infinite ease-in-out;
}

@keyframes msb-beacon {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

/* Mobile & Small Screen Refinements */
@media (max-width: 600px) {
  .msb-wrap {
    margin: 20px auto 16px;
    border-radius: 8px;
  }

  .msb-head {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  #msb-form {
    padding: 10px 12px 14px;
  }
}

/* Past/Closed Time Slot & Notice Styles */
.msb-slot-closed-notice {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.35;
}

select#msb-slot option:disabled,
select#msb-slot option.msb-slot-disabled {
  color: #999999 !important;
  background-color: #f7f7f7 !important;
  font-style: italic;
  cursor: not-allowed;
}

/* ========================================================
   Live Bookings & Team Members Management Modals
======================================================== */
.msb-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: flex;
  align-items: flex-start !important;
  justify-content: center !important;
  z-index: 9999999 !important;
  padding: 24px 16px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.msb-modal-overlay[style*="display: none"],
.msb-modal-overlay.msb-hidden,
.msb-modal-overlay[style*="display:none"] {
  display: none !important;
}

.msb-modal-dialog {
  background: #ffffff !important;
  border-radius: 16px !important;
  max-width: 620px !important;
  width: 100% !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35) !important;
  max-height: calc(100vh - 48px) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  margin: auto !important;
  box-sizing: border-box !important;
}

.msb-modal-dialog-large {
  max-width: 860px !important;
}

.msb-modal-form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.msb-modal-header {
  padding: 16px 22px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
  gap: 12px !important;
}

.msb-modal-header-green {
  background: #f0fbf0 !important;
  border-bottom: 1px solid #c7e5c5 !important;
}

.msb-modal-title {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #113813 !important;
  display: flex !important;
  align-items: center !important;
}

.msb-modal-subtitle {
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.msb-modal-close {
  background: none !important;
  border: none !important;
  font-size: 26px !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: color 0.2s, background 0.2s !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.msb-modal-close:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.msb-modal-body {
  padding: 18px 22px !important;
  overflow-y: auto !important;
  flex: 1 !important;
  min-height: 0 !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

.msb-modal-footer {
  padding: 13px 22px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.msb-modal-info-box {
  background: #f0fbf0 !important;
  border: 1px solid #c7e5c5 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 12.5px !important;
  color: #196317 !important;
  line-height: 1.5 !important;
}

/* Team Members 2x2 Grid */
.msb-team-members-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

@media (max-width: 700px) {
  .msb-team-members-grid {
    grid-template-columns: 1fr !important;
  }
}

.msb-tm-card {
  border: 1px solid #dce8d8 !important;
  border-radius: 12px !important;
  background: #fafdf9 !important;
  padding: 14px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s !important;
}

.msb-tm-card:hover {
  border-color: #196317 !important;
  box-shadow: 0 4px 12px rgba(25, 99, 23, 0.08) !important;
  background: #ffffff !important;
}

.msb-tm-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
  padding-bottom: 7px !important;
  border-bottom: 1px solid #e8ede6 !important;
}

.msb-tm-badge-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.msb-tm-badge {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #196317 !important;
  background: #e2f0df !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
}

.msb-tm-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #113813 !important;
}

.msb-tm-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  cursor: pointer !important;
}

.msb-tm-toggle input[type="checkbox"] {
  accent-color: #196317 !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.msb-tm-field-group {
  margin-bottom: 9px !important;
}

.msb-tm-grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

@media (max-width: 480px) {
  .msb-tm-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

.msb-tm-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 3px !important;
}

.msb-tm-label i {
  color: #196317 !important;
  margin-right: 2px !important;
}

/* ==========================================================================
   Comprehensive Mobile & Touch Optimization (Smart Responsive Suite)
   ========================================================================== */

/* 1. TABLET & COMPACT SCREENS (<= 991px) */
@media (max-width: 991px) {
  .msb-wrap {
    margin: 18px auto 26px;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }

  #msb-form {
    padding: 12px 14px 80px;
  }

  .msb-side-col {
    margin-top: 6px;
  }

  /* Fixed Mobile Floating Live Amount Bar */
  .msb-mobile-floating-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid var(--msb-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  }

  .msb-mobile-floating-bar.msb-mfb-hidden {
    transform: translateY(115%);
    opacity: 0;
    pointer-events: none;
  }

  .msb-mfb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
  }

  .msb-mfb-amount-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .msb-mfb-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555555;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
  }

  .msb-mfb-total {
    font-size: 21px;
    font-weight: 900;
    color: #196317;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.3px;
  }

  .msb-mfb-sub {
    font-size: 9.5px;
    color: #666666;
    font-weight: 500;
    white-space: nowrap;
  }

  .msb-mfb-btn {
    background: linear-gradient(135deg, #196317 0%, #238b20 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(25, 99, 23, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .msb-mfb-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(25, 99, 23, 0.4);
  }
}

/* 2. STANDARD SMARTPHONE SCREENS (<= 768px) */
@media (max-width: 768px) {
  .msb-wrap {
    margin: 10px auto 18px;
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .msb-wrap::before {
    border-radius: 0;
  }

  /* Prevent iOS Safari 16px auto-zoom on input focus */
  .msb-wrap input[type="text"],
  .msb-wrap input[type="tel"],
  .msb-wrap input[type="email"],
  .msb-wrap input[type="number"],
  .msb-wrap input[type="date"],
  .msb-wrap select,
  .msb-wrap textarea {
    font-size: 16px !important;
    min-height: 42px;
  }

  /* Header adjustments */
  .msb-head {
    padding: 12px 14px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .msb-head-brand {
    width: 100%;
  }

  .msb-head-brand h2 {
    font-size: 17px;
    line-height: 1.25;
  }

  .msb-head-badges {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .msb-rate-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 7px 12px;
    font-size: 12px;
  }

  /* Trust Strip */
  .msb-trust-strip {
    padding: 7px 10px;
    font-size: 10.5px;
    gap: 6px 12px;
    justify-content: space-between;
  }

  /* Step Card Header */
  .msb-step-card {
    padding: 10px 10px;
    border-radius: 8px;
  }

  .msb-step-header {
    gap: 6px;
    margin-bottom: 6px;
  }

  /* Step 5 Accordion Header & Subtitle Mobile Fix */
  .msb-step-header.msb-accordion-header {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 6px 10px !important;
  }

  .msb-step-header.msb-accordion-header>div:nth-child(2) {
    flex: 1 1 calc(100% - 44px) !important;
    min-width: 0 !important;
  }

  .msb-step-header.msb-accordion-header .msb-accordion-status-wrap {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 6px !important;
    display: flex !important;
  }

  .msb-step-header.msb-accordion-header .msb-accordion-badge {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background: #eaf5e8 !important;
    border: 1.5px solid #b7dcaf !important;
    color: #176014 !important;
    text-align: center !important;
  }

  .msb-step-header.msb-accordion-header .msb-accordion-badge:hover {
    background: #176014 !important;
    color: #ffffff !important;
  }

  .msb-step-subtitle {
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .msb-step-num {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .msb-step-title {
    font-size: 16px;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .msb-block-label {
    font-size: 14.5px;
  }

  /* Option pills: allow subtext to wrap gracefully */
  .msb-pill-meta strong {
    font-size: 14.5px;
  }

  .msb-pill-meta small {
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.25;
  }

  /* Swipeable Date Quick Bar */
  .msb-date-quick-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    margin-top: 6px;
    scrollbar-width: none;
  }

  .msb-date-quick-bar::-webkit-scrollbar {
    display: none;
  }

  .msb-dq-pill {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Swipeable Vehicle Tabs in Step 3 */
  .msb-unit-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .msb-unit-tabs::-webkit-scrollbar {
    display: none;
  }

  .msb-unit-tab {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 11.5px;
  }

  /* Vehicle Card adjustments */
  .msb-vc-title {
    font-size: 11px;
    white-space: normal;
  }

  .msb-vc-price {
    font-size: 15px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .msb-vc-price small {
    font-size: 10.5px;
    display: inline-block;
    white-space: normal;
  }

  /* Lead Traveler Grid */
  .msb-grid,
  .msb-grid.msb-grid-3 {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .msb-grid>label:first-child,
  .msb-grid>label:nth-child(4),
  .msb-grid>.msb-upload-field,
  .msb-upload-field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .msb-upload-wrap {
    height: 42px !important;
    min-height: 42px !important;
  }

  /* Visitor Member Grid (Step 5): Clean 3-row card layout */
  .msb-member-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .msb-member-grid .msb-field-col:nth-child(1) {
    grid-column: 1 / -1;
    /* Name takes full width */
  }

  .msb-member-grid .msb-field-col:nth-child(2),
  .msb-member-grid .msb-field-col:nth-child(3) {
    grid-column: span 1;
    /* Age & Gender side-by-side */
  }

  .msb-member-grid .msb-field-col:nth-child(4),
  .msb-member-grid .msb-field-col:nth-child(5) {
    grid-column: span 1;
    /* Category & ID side-by-side */
  }

  .msb-member-row {
    padding: 8px 9px;
    border-radius: 8px;
    margin-bottom: 7px;
  }

  /* Summary Card & Payment buttons */
  .msb-summary-card {
    padding: 10px 10px;
  }

  .msb-breakdown {
    font-size: 11.5px;
    padding: 6px 8px;
  }

  .msb-pay {
    min-height: 48px;
    font-size: 15px;
    border-radius: 8px;
  }

  .msb-btn-whatsapp-inquiry {
    min-height: 48px;
    border-radius: 8px;
    padding: 10px 14px;
  }

  .msb-btn-wa-title {
    font-size: 14.5px;
  }

  /* QR Payment Card on Success Screen */
  .msb-qr-payment-card {
    padding: 12px;
    border-radius: 10px;
    margin: 10px auto;
  }

  .msb-qr-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .msb-qr-img-box {
    margin: 0 auto;
  }

  .msb-qr-details {
    width: 100%;
    min-width: 0;
  }

  .msb-qr-app-pay-btn {
    width: 100%;
    min-height: 42px;
    font-size: 12.5px;
    justify-content: center;
  }
}

/* 3. SMALL PHONES (<= 480px) */
@media (max-width: 480px) {
  #msb-form {
    padding: 8px 8px 14px;
  }

  .msb-step-card {
    padding: 9px 8px;
  }

  .msb-type-toggle-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .msb-vehicle-picker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .msb-veh-card {
    padding: 6px 7px;
  }

  .msb-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .msb-grid>label {
    grid-column: 1 / -1;
  }

  /* Seat Grid Optimization */
  .msb-grid-20 {
    gap: 3px;
    max-width: 100%;
  }

  .msb-seat-box {
    height: 32px;
    min-width: 24px;
  }

  .msb-sb-num {
    font-size: 8.5px;
  }

  /* Modals */
  .msb-modal-overlay {
    padding: 8px !important;
  }

  .msb-modal-dialog {
    border-radius: 12px !important;
    max-height: calc(100vh - 16px) !important;
  }

  .msb-modal-header {
    padding: 12px 14px !important;
  }

  .msb-modal-body {
    padding: 10px 12px !important;
  }

  .msb-modal-title {
    font-size: 15px !important;
  }
}

/* 4. EXTRA SMALL PHONES (<= 360px) */
@media (max-width: 360px) {
  .msb-vehicle-picker-grid {
    grid-template-columns: 1fr;
  }

  .msb-member-grid {
    grid-template-columns: 1fr;
  }

  .msb-member-grid .msb-field-col {
    grid-column: 1 / -1 !important;
  }
}

/* Payment Step Pulse Highlight Animation */
@keyframes msbPulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 99, 23, 0.6);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(25, 99, 23, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(25, 99, 23, 0);
  }
}

.msb-pulse-highlight {
  animation: msbPulseHighlight 1.2s ease-in-out;
  border-color: #196317 !important;
}