/* Cleaning Booking Plugin - Frontend Styles (lightweight, responsive, accessible) */
/* Cache Bust: v2.5.1-20251204-thankyou-fix */
:root {
  --cbp-primary: #0f766e;
  --cbp-muted: #6b7280;
  --cbp-border: #e5e7eb;
  --cbp-bg: #ffffff;
  --cbp-card: #ffffff;
  --cbp-radius: 10px;
  --cbp-shadow: 0 2px 14px rgba(0,0,0,.08);
  --cbp-gap: 16px;
}

/* Global mobile-friendly base styles */
* {
  box-sizing: border-box;
}

.cbp-wizard,
.cbp-wizard * {
  box-sizing: border-box;
  max-width: 100%;
}

/* Prevent horizontal overflow */
.cbp-wizard-grid,
.cbp-step-box,
.cbp-items-grid,
.cbp-card {
  overflow-x: hidden;
  word-wrap: break-word;
}

.cbp-button,
.cbp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cbp-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.cbp-button--primary,
.cbp-btn--primary { background: var(--cbp-primary); color: #fff; }
.cbp-btn--ghost { background: transparent; color: var(--cbp-primary); border: 1px solid var(--cbp-primary); }

.cbp-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--cbp-gap);
  align-items: center;
  margin: 24px auto;
}
.cbp-hero__media img { width: 100%; height: auto; border-radius: var(--cbp-radius); box-shadow: var(--cbp-shadow); }
.cbp-hero__title { margin: 0 0 8px; }
.cbp-hero__intro { margin: 0 0 16px; color: var(--cbp-muted); }

.cbp-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; margin: 24px 0 48px; }
.cbp-layout__right { position: sticky; top: 24px; }

.cbp-items__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--cbp-gap); }
.cbp-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: var(--cbp-card); border: 1px solid var(--cbp-border); border-radius: var(--cbp-radius); padding: 12px; }
.cbp-item__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cbp-item__title { font-weight: 600; }
.cbp-item__desc { color: var(--cbp-muted); font-size: .95rem; }

/* Item Groups (NEW) - Normal display without toggle */
.cbp-groups-container { margin-bottom: 24px; }
.cbp-group-box { margin-bottom: 24px; }
.cbp-group-header { padding: 0 0 12px 0; border-bottom: 1px solid var(--cbp-border); margin-bottom: 16px; }
.cbp-group-title { margin: 0; font-size: 1rem; font-weight: 600; color: #1e293b; }
.cbp-group-body { padding: 0; }
.cbp-group-body .cbp-items-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cbp-item__price { font-weight: 600; margin-top: 4px; }

.cbp-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--cbp-gap); }
.cbp-related__card { display: block; border: 1px solid var(--cbp-border); border-radius: var(--cbp-radius); padding: 8px; text-decoration: none; color: inherit; background: var(--cbp-card); box-shadow: var(--cbp-shadow); }
.cbp-related__card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.cbp-related__title { display: block; margin-top: 8px; font-weight: 600; }

/* Wizard */
.cbp-wizard {
  background: var(--cbp-bg);
  border-radius: var(--cbp-radius);
  box-shadow: var(--cbp-shadow);
  border: 1px solid var(--cbp-border);
  max-width: 100%;
  overflow: hidden;
}

.cbp-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cbp-border);
}

.cbp-step {
  height: 3px;
  background: #e5e7eb;
  border-radius: 999px;
  position: relative;
}

.cbp-step.is-active,
.cbp-step.is-done {
  background: var(--cbp-primary);
}

/* Wizard Grid: Two-column layout (left content + right summary) */
.cbp-wizard-grid {
  display: grid;
  grid-template-columns: 1fr 380px; /* Left: flexible, Right: 380px fixed */
  gap: 24px;
  padding: 16px;
  align-items: start;
  max-width: 100%;
}

/* Ensure summary is always visible on desktop (fixes Service Configuration tab) */
@media (min-width: 1201px) {
  .cbp-summary {
    display: block !important;
    visibility: visible !important;
  }
}

.cbp-wizard-left {
  overflow: visible;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

.cbp-step-box {
  background: #fff;
  border: 1px solid var(--cbp-border);
  border-radius: var(--cbp-radius);
  padding: 16px;
  box-shadow: var(--cbp-shadow);
  overflow: visible;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

.cbp-input { width: 100%; padding: 10px 12px; border: 1px solid var(--cbp-border); border-radius: 8px; }
.cbp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cbp-field { display: grid; gap: 6px; }
.cbp-label { font-weight: 600; color: #111827; }

.cbp-map {
  width: 100%;
  height: 360px;
  border-radius: var(--cbp-radius);
  border: 1px solid var(--cbp-border);
  overflow: hidden;
  margin-top: 12px;
  position: relative; /* overlay helper */
}
.cbp-map-note {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -140%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  pointer-events: none;
  z-index: 2;
}

.cbp-calendar { margin-bottom: 12px; }
.cbp-slots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.cbp-slot { padding: 10px; border: 1px solid var(--cbp-border); border-radius: 10px; background: #fff; cursor: pointer; }
.cbp-slot.is-active { outline: 2px solid var(--cbp-primary); }
.cbp-slot.is-disabled { opacity: .5; cursor: not-allowed; }

.cbp-actions { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px 16px; border-top: 1px solid var(--cbp-border); }

.cbp-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

/* Ensure full-width cards in all contexts */
.cbp-items-grid .cbp-card {
  width: 100%;
  max-width: 100%;
}

.cbp-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  border: 1px solid var(--cbp-border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--cbp-shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cbp-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cbp-card-title {
  font-weight: 600;
  word-break: break-word;
}

.cbp-card-desc {
  color: var(--cbp-muted);
  font-size: .92rem;
  margin-top: 4px;
  word-break: break-word;
}

.cbp-card-price {
  margin-top: 6px;
  font-weight: 600;
}

.cbp-card-ctrl {
  display: grid;
  align-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.cbp-qty {
  width: 64px;
  text-align: center;
}

.cbp-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--cbp-border);
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.cbp-summary { position: sticky; top: 100px; z-index: 50; } /* Header + gap to stay visible */
.cbp-summary-box { border: 1px solid var(--cbp-border); border-radius: 12px; background: #fff; padding: 12px; box-shadow: var(--cbp-shadow); }
.cbp-summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cbp-summary-line { display: flex; justify-content: space-between; gap: 8px; }
.cbp-summary-line.is-strong { font-weight: 700; }

.cbp-muted { color: var(--cbp-muted); }

/* Services grid shortcode */
.cbp-services { display: grid; gap: 16px; }
.cbp-services[class*="cbp-cols-"] { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cbp-services.cbp-cols-1 { grid-template-columns: 1fr; }
.cbp-services.cbp-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cbp-services.cbp-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cbp-card__thumb img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.cbp-card__body { padding: 8px; }
.cbp-card__title { margin: 0 0 6px; }
.cbp-card__excerpt { color: var(--cbp-muted); margin: 0 0 10px; }
.cbp-card__meta { display: flex; justify-content: space-between; align-items: center; }

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Tablet & Below (1200px) - Summary sidebar goes below */
@media (max-width: 1200px) {
  .cbp-layout {
    grid-template-columns: 1fr;
  }

  .cbp-wizard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
  }

  .cbp-summary-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
  }

  .cbp-wizard-left {
    order: 1;
  }

  .cbp-hero {
    grid-template-columns: 1fr;
  }

  .cbp-items__list {
    grid-template-columns: 1fr;
  }

  .cbp-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Compact Packages on Tablet */
  .cbp-package-card {
    padding: 10px 12px;
    gap: 4px;
  }

  .cbp-package-name {
    font-size: 13px;
  }

  .cbp-package-desc {
    font-size: 11px;
  }

  .cbp-package-footer {
    gap: 6px;
  }

  .cbp-package-select-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  /* Summary stays on right side even on tablet - sticky behavior disabled */
  .cbp-summary {
    position: relative;
    top: 0;
  }
}

/* Mobile Landscape & Below (768px) */
@media (max-width: 768px) {
  /* Typography adjustments */
  .cbp-wizard-title {
    font-size: 14px;
    margin: 4px 0 6px;
  }

  /* Wizard layout */
  .cbp-wizard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .cbp-wizard-left {
    width: 100%;
    overflow: visible;
  }

  .cbp-step-box {
    padding: 12px;
    width: 100%;
  }

  /* Wizard container */
  .cbp-wizard {
    margin: 0;
    width: 100%;
  }

  /* Form improvements */
  .cbp-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cbp-input,
  .cbp-select,
  .cbp-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }

  /* Items grid - full width cards */
  .cbp-items-grid {
    gap: 10px;
  }

  .cbp-card {
    grid-template-columns: 60px 1fr auto;
    gap: 10px;
    padding: 10px;
  }

  .cbp-thumb {
    width: 60px;
    height: 60px;
  }

  .cbp-card-title {
    font-size: 14px;
  }

  .cbp-card-desc {
    font-size: 12px;
  }

  /* Slots grid */
  .cbp-slots {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cbp-slot {
    padding: 12px;
    font-size: 14px;
  }

  /* Actions buttons */
  .cbp-actions {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 10px;
  }

  .cbp-btn,
  .cbp-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Summary box - Always visible on mobile */
  .cbp-summary {
    display: block !important;
    position: relative !important;
    width: 100%;
    margin-top: 16px;
  }

  .cbp-summary-box {
    padding: 12px;
    margin-bottom: 16px;
    width: 100%;
  }

  .cbp-summary-line {
    font-size: 14px;
  }

  /* Related services */
  .cbp-related__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Services grid */
  .cbp-services[class*="cbp-cols-"] {
    grid-template-columns: 1fr !important;
  }

  /* Service details page */
  .cbp-item {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .cbp-item__thumb {
    width: 50px;
    height: 50px;
  }

  .cbp-item__title {
    font-size: 14px;
  }

  .cbp-item__desc {
    font-size: 12px;
  }

  /* Map */
  .cbp-map {
    height: 250px;
  }

  /* Hero banner */
  .cbp-hero--banner .cbp-hero__text {
    justify-content: center;
    text-align: center;
  }

  .cbp-hero--banner .cbp-hero__title {
    font-size: clamp(18px, 6vw, 28px);
  }

  /* Notification */
  .cbp-notification {
    right: 10px !important;
    left: 10px !important;
    min-width: auto !important;
  }

  /* Team grid */
  .cbp-team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .cbp-team-card {
    padding: 12px;
  }

  .cbp-team-image {
    width: 60px;
    height: 60px;
  }

  .cbp-team-name {
    font-size: 14px;
  }

  .cbp-team-job {
    font-size: 12px;
  }

  /* Team selection grid */
  .cbp-team-selection-grid {
    gap: 12px;
  }

  .cbp-team-selection-card {
    padding: 12px;
    width: 48%; /* 2 cards on mobile */
    min-width: 140px;
  }

  .cbp-team-selection-photo {
    width: 70px;
    height: 70px;
  }

  .cbp-team-carousel-wrapper {
    padding: 0 40px; /* More space for arrows */
  }

  .cbp-team-nav-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    z-index: 10;
  }

  .cbp-team-nav-btn.prev {
    left: 0 !important;
  }

  .cbp-team-nav-btn.next {
    right: 0 !important;
  }

  /* Packages already vertical by default */

  .cbp-days-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Number of Cleaners/Hours - Better mobile layout */
  .cbp-pricing-options {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .cbp-option-btn {
    width: 100%;
    min-width: auto;
    padding: 10px 8px;
    font-size: 14px;
    text-align: center;
  }

  /* Cleaning Materials - Stack on mobile */
  .cbp-materials-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cbp-material-option {
    width: 100%;
  }

  /* Compact Packages on Mobile */
  .cbp-package-card {
    padding: 10px 12px;
    gap: 4px;
  }

  .cbp-package-name {
    font-size: 13px;
  }

  .cbp-package-desc {
    font-size: 11px;
    line-height: 1.2;
  }

  .cbp-package-benefits li {
    font-size: 10px;
    padding-left: 14px;
  }

  .cbp-package-select-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .cbp-discount-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  /* Even more compact spacing */
  .cbp-wizard {
    border-radius: 8px;
  }

  .cbp-wizard-grid {
    padding: 8px;
    gap: 10px;
  }

  .cbp-step-box {
    padding: 10px;
    border-radius: 8px;
  }

  /* Steps indicator */
  .cbp-steps {
    gap: 4px;
    padding: 8px 10px;
  }

  .cbp-step {
    height: 3px;
  }

  /* Typography */
  .cbp-wizard-title {
    font-size: 13px;
  }

  .cbp-label {
    font-size: 13px;
  }

  /* Cards even more compact */
  .cbp-card {
    grid-template-columns: 50px 1fr auto;
    gap: 8px;
    padding: 8px;
  }

  .cbp-thumb {
    width: 50px;
    height: 50px;
  }

  .cbp-card-title {
    font-size: 13px;
  }

  .cbp-card-desc {
    font-size: 11px;
    line-height: 1.3;
  }

  .cbp-card-price {
    font-size: 13px;
  }

  /* Quantity controls */
  .cbp-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .cbp-qty {
    width: 50px;
    font-size: 14px;
  }

  /* Summary */
  .cbp-summary-box {
    padding: 10px;
  }

  .cbp-summary-line {
    font-size: 13px;
  }

  /* Actions */
  .cbp-actions {
    padding: 8px;
  }

  .cbp-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Map smaller */
  .cbp-map {
    height: 200px;
  }

  /* Form fields */
  .cbp-input,
  .cbp-select,
  .cbp-textarea {
    padding: 10px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  /* Item groups */
  .cbp-group-box {
    margin-bottom: 16px;
  }

  .cbp-group-title {
    font-size: 14px;
  }

  /* Touch-friendly tap targets */
  .cbp-btn,
  .cbp-button,
  .cbp-qty-btn,
  .cbp-slot,
  .cbp-card {
    min-height: 44px; /* iOS recommended tap target */
  }

  /* Better text readability */
  body {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }

  /* Prevent text overflow */
  .cbp-card-title,
  .cbp-card-desc,
  .cbp-label {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Calendar full width */
  .cbp-calendar {
    width: 100%;
  }

  /* Better spacing for readability */
  .cbp-field {
    margin-bottom: 12px;
  }

  /* Larger checkboxes and radios */
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  /* Number of Cleaners/Hours - 2 columns on very small screens */
  .cbp-pricing-options {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Team carousel - Keep arrows visible on mobile */
  .cbp-team-carousel-wrapper {
    padding: 0;
    overflow: visible;
    position: relative;
  }

  .cbp-team-nav-btn {
    display: none !important; /* Mobile: hide arrows */
  }

  .cbp-team-nav-btn.prev {
    left: -8px !important;
  }

  .cbp-team-nav-btn.next {
    right: -8px !important;
  }

  .cbp-team-selection-grid {
    /* Mobile: simple grid with 2 cards per row */
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100%;
    transform: none !important;
    transition: none !important;
  }

  .cbp-team-selection-card {
    display: block !important;
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* === CBP Booking – Visual refresh to match reference UI (chips, progress, sticky next) === */
:root {

  --cbp-accent: #ea580c; /* Orange NEXT button like reference */
  --cbp-info: #0ea5e9;
  --cbp-pill: #e2e8f0;
  --cbp-pill-text: #0f172a;
}

/* Title + progress - Compact design */
.cbp-wizard-title {
  text-align: center;
  font-size: 16px; /* Reduced from 18px */
  font-weight: 600;
  margin: 6px 0 8px; /* Reduced margins */
}

.cbp-steps {
  margin: 0 auto 10px; /* Reduced bottom margin */
  max-width: 760px;
  grid-template-columns: repeat(5, 1fr); /* Updated to 5 steps */
  gap: 8px; /* Reduced gap */
}
.cbp-step {
  height: 4px; /* Reduced from 6px */
  border-radius: 999px;
  background: #e5e7eb;

/* Small tablets / landscape mobile: 4 cards per row, no carousel */
@media (min-width: 481px) and (max-width: 768px) {
  .cbp-team-nav-btn { display: none !important; }
  .cbp-team-selection-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100%;
    transform: none !important;
    transition: none !important;
  }
  .cbp-team-selection-card {
    display: block !important;
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

}
.cbp-step.is-active,
.cbp-step.is-done {
  background: var(--cbp-primary);
}

/* Layout refinements - Better proportions on larger screens */
@media (min-width: 1201px) {
  .cbp-wizard-grid {
    grid-template-columns: 1.6fr 1fr; /* Left: 1.6 parts, Right: 1 part */
    padding-top: 8px;
    align-items: start;
  }
}

/* Search with clear button */
.cbp-search { position: relative; margin-bottom: 16px; }
.cbp-search .cbp-input { padding-right: 34px; }
.cbp-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid var(--cbp-border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

/* Service Header (Title + Rating) - Above Pills */
.cbp-service-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cbp-border);
}

.cbp-service-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.cbp-service-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cbp-rating-text {
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cbp-rating-text strong {
  color: #1e293b;
  font-weight: 700;
}

.cbp-rating-count {
  color: var(--cbp-muted);
  font-weight: 400;
}

/* Pricing Configuration Section - Compact Design (NO ANIMATION) */
.cbp-pricing-sections-container {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cbp-border);
}

.cbp-pricing-section {
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid var(--cbp-border);
  border-radius: 8px;
  /* NO animation here */
}

.cbp-pricing-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.cbp-button-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cbp-option-btn {
  min-width: 50px;
  padding: 8px 14px;
  border: 2px solid var(--cbp-border);
  border-radius: 25px; /* Rounded/pill-shaped */
  background: #fff;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cbp-option-btn:hover {
  border-color: var(--cbp-primary);
  background: #ecfeff;
  transform: scale(1.05);
}

.cbp-option-btn.is-active {
  border-color: var(--cbp-primary);
  background: var(--cbp-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.cbp-pricing-info {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--cbp-muted);
  font-weight: 500;
}

/* Comment/Special Instructions Section */
.cbp-comment-section {
  margin-top: 24px;
  padding: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}

.cbp-comment-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.cbp-comment-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #0ea5e9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

.cbp-comment-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Category chips/pills - Premium Sliding Design with Arrows */
.cbp-pills-wrapper {
  position: sticky;
  top: 90px;
  background: #fff;
  z-index: 100;
  margin: 12px 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbp-pills-arrow {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1.5px solid #46966b !important;
  border-radius: 50%;
  background: #fff;
  color: #46966b !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(70,150,107,0.1);
}
.cbp-pills-arrow:hover {
  background: #f0fdf4 !important;
  border-color: #3d8560 !important;
  color: #3d8560 !important;
  box-shadow: 0 2px 8px rgba(70,150,107,0.2);
}
.cbp-pills-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}
.cbp-pills-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.cbp-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 4px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cbp-pills::-webkit-scrollbar {
  display: none;
}

/* Premium Pill Design - HORIZONTAL Icon + Text Side by Side */
.cbp-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 5px 16px 5px 5px !important;
  border: 1.5px solid #d1d9e0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
  min-height: 42px !important;
}
.cbp-pill:hover {
  border-color: #46966b !important;
  background: #f0fdf4 !important;
  box-shadow: 0 3px 10px rgba(70, 150, 107, 0.15) !important;
}
.cbp-pill.is-active {
  background: linear-gradient(135deg, #46966b 0%, #3d8560 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(70, 150, 107, 0.4) !important;
}
.cbp-pill.is-active .cbp-pill-icon {
  background: rgba(255,255,255,0.3) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

/* Circular Icon Container - INLINE with text */
.cbp-pill-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  border: 2px solid #e2e8f0 !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}
.cbp-pill-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Text styling - INLINE */
.cbp-pill-text {
  display: inline !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

/* Item card tweaks (closer to reference) */
.cbp-card { grid-template-columns: 88px 1fr auto; }
.cbp-thumb { width: 88px; height: 88px; }
.cbp-card-title { font-size: 16px; }
.cbp-card-price { font-weight: 700; }

/* Sticky bottom action bar with orange NEXT */
.cbp-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--cbp-border);
  box-shadow: 0 -6px 12px rgba(0,0,0,.04);
  z-index: 3;
}
.cbp-btn--accent { background: var(--cbp-accent); color: #fff; }
.cbp-btn--accent:hover { filter: brightness(0.95); }

/* Summary headings and success banner */
.cbp-summary-box h3 { margin: 0 0 8px; }
.cbp-alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}
.cbp-alert--success {
  background: #e6f9f2;
  color: #065f46;
  border: 1px solid #99f6e4;
}

@media (max-width: 1024px) {
  .cbp-actions { position: sticky; bottom: 0; }
}
/* === CBP Booking – Card hover + stepper controls (match reference UI) === */
.cbp-card { align-items: center; transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease; }
.cbp-card:hover { border-color: var(--cbp-primary); box-shadow: 0 8px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.cbp-card-body { display: grid; gap: 4px; align-content: center; }
.cbp-card-title { font-weight: 700; }
.cbp-card-desc { color: var(--cbp-muted); }
.cbp-card-price { font-weight: 700; }

/* Inline qty controls on the card's right (ADD -> stepper) */
.cbp-ctrl-inline { display: inline-flex; align-items: center; gap: 10px; }
.cbp-qty-btn--circle {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--cbp-border); background: #fff;
  color: var(--cbp-primary); font-size: 18px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.cbp-qty-btn--circle:hover { border-color: var(--cbp-primary); background: #ecfeff; }
.cbp-qty-out { min-width: 20px; text-align: center; font-weight: 700; }

.cbp-btn--add {
  background: transparent; color: var(--cbp-primary);
  border: 1px solid var(--cbp-primary); border-radius: 8px;
  padding: 8px 12px; font-weight: 700;
}
.cbp-btn--add:hover { background: #ecfeff; }

/* Summary: discount badge style like reference */
.cbp-summary-line.is-discount span:last-child {
  background: #fff1e6;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

/* === Google Maps Autocomplete Styling === */
.cbp-autocomplete-wrap {
  position: relative;
  margin-bottom: 16px;
}

.cbp-autocomplete-input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.2s;
}

.cbp-autocomplete-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.cbp-autocomplete-clear {
  transition: all 0.2s;
}

.cbp-autocomplete-clear:hover {
  background: #d1d5db !important;
}

/* Google Maps autocomplete dropdown styling */
.pac-container {
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  font-family: inherit;
}

.pac-item {
  padding: 10px 12px;
  border-top: 1px solid #f3f4f6;
  cursor: pointer;
  font-size: 14px;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover {
  background: #f9fafb;
}

.pac-item-selected {
  background: #f3f4f6;
}

.pac-icon {
  margin-right: 8px;
}

.pac-item-query {
  font-weight: 600;
  color: #1f2937;
}

.pac-matched {
  font-weight: 700;
  color: #0f766e;
}

/* Map container */
#cbp-address-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Powered by Google badge positioning */
.gm-style .gm-style-cc {
  bottom: 0 !important;
}

.gm-style a[href^="https://maps.google.com/maps"] {
  display: inline-block !important;
}

/* Emphasize sticky NEXT button */
.cbp-actions .cbp-btn--accent { padding: 14px 24px; font-weight: 700; font-size: 16px; }
/* === Polish: compact title/desc like reference card (Bangla feedback fix) === */
.cbp-items-grid { gap: 10px; }

.cbp-card { grid-template-columns: 64px 1fr auto; padding: 12px; }
.cbp-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }

.cbp-card-title { margin: 0; font-size: 15px; line-height: 1.2; font-weight: 700; color: #1e293b; }
.cbp-card-desc {
  font-size: 13px; line-height: 1.4; color: var(--cbp-muted);
  /* 2-line clamp so ডেসক্রিপশন লম্বা দেখায় না */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
}
.cbp-card-price { margin-top: 6px; font-weight: 700; font-size: 14px; }

/* Inline controls compact */
.cbp-ctrl-inline .cbp-btn--add { padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.cbp-qty-btn--circle { width: 30px; height: 30px; font-size: 16px; }

/* Subtle chip style so হেডিং/কার্ড ফোকাস থাকে */
.cbp-pill { padding: 5px 12px; font-size: 13px; }
.cbp-search .cbp-input { height: 38px; }

/* Card hover subtle */
.cbp-card:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.06); }
/* === Tight layout to match marked reference (title/description too big fix) === */
/* Card content: compact, single-line title with ellipsis, 2-line desc clamp */
.cbp-card { padding: 10px 12px; }
.cbp-thumb { width: 56px; height: 56px; }
.cbp-card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cbp-card-desc {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--cbp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.7em; /* ~2 lines */
}
.cbp-card-desc p { margin: 0; }

/* Right controls centered */
.cbp-card-ctrl { align-content: center; }

/* Wizard heading compact and balanced */
.cbp-wizard-title { font-size: 18px; } /* Reduced from 22px for compact look */

/* Summary text slightly smaller */
.cbp-summary-list { font-size: 14px; }
/* === Fix: কার্ডের রাইট-সাইড ফাঁকা জায়গা রিমুভ — গ্রিড থেকে ফ্লেক্সে === */
.cbp-card {
  display: flex;               /* grid -> flex: কনটেন্ট পুরো কার্ড জুড়ে */
  align-items: center;
  gap: 12px;
  width: 100%;
}
.cbp-card-body {
  flex: 1 1 auto;              /* টেক্সট অংশ বাকি পুরো স্পেস নেবে */
  min-width: 0;                /* ইলিপসিস/ক্ল্যাম্প ঠিকমতো কাজ করার জন্য */
}
.cbp-card-ctrl {
  margin-left: auto;           /* কন্ট্রোলকে একেবারে ডানদিকে পুশ */
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Thumbnail ছোট ও সেন্টারড */
.cbp-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

/* Title/Desc কমপ্যাক্ট */
.cbp-card-title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cbp-card-desc {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--cbp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* ২ লাইনে ক্ল্যাম্প */
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.7em;
}

/* কন্ট্রোলগুলো রাউন্ড ও কমপ্যাক্ট */
.cbp-qty-btn--circle { width: 30px; height: 30px; font-size: 16px; }
.cbp-btn--add { padding: 6px 12px; border-radius: 999px; }
/* === Full-width banner hero with overlay title (per feedback) === */
.cbp-hero--banner { display: block; margin: 16px 0 24px; }
.cbp-hero--banner .cbp-hero__banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--cbp-shadow);
}
.cbp-hero--banner .cbp-hero__img {
  width: 100%;
  height: clamp(160px, 24vw, 280px);
  object-fit: cover;
  /* Slight blur so title pops on top of image */
  filter: blur(1.5px) brightness(0.94) saturate(1.05);
  transform: scale(1.03); /* compensate blur crop */
}
.cbp-hero--banner .cbp-hero__overlay {
  position: absolute; inset: 0;
  /* left-to-right dark gradient for better text contrast */
  background: linear-gradient(90deg, rgba(15,23,42,.60) 0%, rgba(15,23,42,.35) 45%, rgba(15,23,42,.05) 100%);
  pointer-events: none;
}
.cbp-hero--banner .cbp-hero__text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; /* center the title horizontally */
  padding: clamp(16px, 3vw, 36px);
  text-align: center; /* center text lines */
}
.cbp-hero--banner .cbp-hero__text > * { max-width: min(720px, 90%); }
.cbp-hero--banner .cbp-hero__title {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(20px, 3.2vw, 36px);
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.cbp-hero--banner .cbp-hero__intro {
  margin: 0 0 12px;
  color: rgba(255,255,255,.92);
  font-size: clamp(14px, 1.2vw, 18px);
}
.cbp-hero--banner .cbp-hero__cta { align-self: flex-start; }

/* Removed - merged into main responsive section above */
/* Hide CBP booking buttons globally per request.
   - Hides Elementor Service Button output
   - Leaves wizard/action buttons (cbp-btn) unaffected */
.cbp-el-button-wrap,
.cbp-hero .cbp-button[href*="#cbp-booking"] {
  display: none !important;
}
/* Hide "Related Services" section globally per request */

/* === Google Maps Location Link Input (No API needed) === */
.cbp-help {
  line-height: 1.6;
}

.cbp-help code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
}

.cbp-help strong {
  color: #0f766e;
}

.cbp-location-status {
  animation: slideDown 0.3s ease-out;
  font-size: 14px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cbp-location-status small {
  font-size: 12px;
  opacity: 0.9;
}

.cbp-map-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}

.cbp-map-error ul {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

/* Search button styling */
.cbp-btn--search {
  background: var(--cbp-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cbp-btn--search:hover {
  filter: brightness(1.1);
  transform: translateY(-50%) scale(1.02);
}

.cbp-btn--search:active {
  transform: translateY(-50%) scale(0.98);
}

/* Location result hover effects */
.cbp-location-result {
  transition: all 0.2s ease;
}

.cbp-location-result:hover {
  background: #e3f2fd !important;
  border-color: #64b5f6 !important;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cbp-location-result:active {
  transform: translateX(2px) scale(0.99);
}
.cbp-related { display: none !important; }

/* === Notification/Toast Styles === */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.cbp-notification {
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cbp-notification.hiding {
  animation: slideOutRight 0.3s ease-out;
}

/* Removed - merged into main responsive section above */

/* === Team Member Cards === */
.cbp-team-section {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--cbp-border);
}

.cbp-team-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111;
}

.cbp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cbp-team-card {
  background: #f9fafb;
  border: 1px solid var(--cbp-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cbp-team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cbp-team-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cbp-team-image--placeholder {
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbp-team-info {
  margin-top: 12px;
}

.cbp-team-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.cbp-team-job {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.cbp-team-rating {
  font-size: 14px;
  color: #fbbf24;
  margin-bottom: 8px;
}

.cbp-team-skills {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

/* Mobile responsive - moved to main responsive section */

/* Team Member Selection in Service Configuration */
.cbp-team-selection-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cbp-border);
  /* NO animation on section load */
  overflow: hidden; /* Prevent overflow */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Team Members Carousel Container */
.cbp-team-carousel-wrapper {
  position: relative;
  overflow: hidden; /* Hide members beyond 4 */
  padding: 0 35px; /* Reduced space for smaller navigation arrows */
  width: 100%; /* Full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box; /* Include padding in width calculation */
}

.cbp-team-selection-grid {
  display: flex; /* Use flexbox instead of grid */
  flex-wrap: nowrap; /* Keep all members in one row */
  gap: 16px;
  /* Smooth transition ONLY when arrow buttons are clicked */
  transition: transform 0.5s ease-in-out;
  width: 100%; /* Full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Navigation Arrows - Better visibility and clickability */
.cbp-team-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px !important;
  height: 36px !important;
  background: var(--cbp-primary);
  color: #fff;
  border: none;
  border-radius: 50% !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px !important;
  font-weight: bold;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 100 !important;
  padding: 0 !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  pointer-events: auto !important;
}

.cbp-team-nav-btn:hover {
  background: #0d5f58;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.cbp-team-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.cbp-team-nav-btn.prev {
  left: 4px;
}

.cbp-team-nav-btn.next {
  right: 4px;
}

.cbp-team-selection-card {
  position: relative;
  padding: 16px;
  border: 2px solid var(--cbp-border);
  border-radius: 12px;
  background: var(--cbp-card);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  /* Fixed width for carousel - show exactly 4 cards */
  flex: 0 0 auto; /* Don't grow or shrink */
  width: 23%; /* Approximately 4 cards (23% × 4 = 92%, leaving 8% for gaps) */
  min-width: 180px; /* Minimum width */
}

.cbp-team-selection-card:hover {
  border-color: var(--cbp-primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
  transform: translateY(-2px);
}

.cbp-team-selection-card.is-selected {
  border-color: var(--cbp-primary);
  background: #f0fdfa;
  box-shadow: 0 0 0 2px var(--cbp-primary);
}

.cbp-team-selection-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--cbp-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.cbp-team-selection-photo {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbp-team-selection-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbp-team-selection-info {
  font-size: 14px;
}

.cbp-team-selection-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbp-team-selection-job {
  color: var(--cbp-muted);
  font-size: 13px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbp-team-selection-rating {
  font-size: 12px;
  color: #f59e0b;
  margin-top: 4px;
}

/* Responsive adjustments - moved to main responsive section above */
@media (max-width: 1024px) {
  .cbp-team-selection-card {
    width: 31%; /* 3 cards on tablets */
    min-width: 160px;
  }
}

/* Frequency Packages Section - Redesigned to match reference */
.cbp-frequency-section {
  margin-bottom: 12px;
  padding: 0;
}

.cbp-packages-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column - vertical stack */
  gap: 10px;
  margin-bottom: 12px;
}

.cbp-package-card {
  position: relative;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid var(--cbp-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbp-package-card:hover {
  border-color: var(--cbp-primary);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.15);
  transform: translateY(-2px);
}

.cbp-package-card.is-selected {
  border-color: var(--cbp-primary);
  background: rgba(15, 118, 110, 0.05);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.2);
}

.cbp-package-card.is-popular {
  border-color: #f59e0b;
  background: #fffbeb;
}

.cbp-package-card.is-popular.is-selected {
  background: rgba(245, 158, 11, 0.1);
}

.cbp-popular-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #f59e0b;
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.cbp-package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cbp-package-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cbp-package-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbp-package-desc {
  margin: 0;
  font-size: 12px;
  color: var(--cbp-muted);
  line-height: 1.3;
}

.cbp-package-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbp-package-benefits li {
  font-size: 11px;
  color: #475569;
  padding-left: 16px;
  position: relative;
}

.cbp-package-benefits li:before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--cbp-primary);
  font-weight: bold;
}

.cbp-package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--cbp-border);
  gap: 8px;
}

.cbp-discount-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cbp-package-select-btn {
  padding: 6px 14px;
  background: var(--cbp-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cbp-package-select-btn:hover {
  background: #0d5f58;
  transform: scale(1.05);
}

.cbp-package-card.is-selected .cbp-package-select-btn {
  background: #10b981;
}

.cbp-package-card.is-selected .cbp-package-select-btn:after {
  content: ' ✓';
}

/* Days Selection */
.cbp-days-selection {
  padding: 12px;
  background: #f9fafb;
  border: 1px solid var(--cbp-border);
  border-radius: 6px;
}

.cbp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cbp-day-checkbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: #fff;
  border: 2px solid var(--cbp-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.cbp-day-checkbox:hover {
  border-color: var(--cbp-primary);
}

.cbp-day-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.cbp-day-checkbox input[type="checkbox"]:checked + span {
  color: var(--cbp-primary);
}

.cbp-day-checkbox:has(input:checked) {
  border-color: var(--cbp-primary);
  background: rgba(15, 118, 110, 0.05);
}

/* Tablet landscape: keep two columns between 1025px and 1200px for better UX */
@media (min-width: 992px) and (max-width: 1200px) {
  .cbp-wizard-grid {
    display: grid !important;
    grid-template-columns: 1fr 320px; /* Right: 320px fixed for this range */
    gap: 20px;
    padding: 12px 16px;
    align-items: start;
  }
  .cbp-summary {
    display: block !important;
    position: sticky !important;
    top: 100px; /* Align with header spacing */
  }
}


/* Frequency cards: compact, radio-style selection (match reference screenshot) */
.cbp-frequency-section .cbp-package-footer { display: none; }
.cbp-frequency-section .cbp-package-card { padding: 12px 44px 12px 14px; }
.cbp-frequency-section .cbp-package-card::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
}
.cbp-frequency-section .cbp-package-card.is-selected::after {
  border-color: var(--cbp-primary);
}
.cbp-frequency-section .cbp-package-card.is-selected::before {
  content: '';
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cbp-primary);
}


/* Enforce two-column layout for >=992px regardless of earlier tablet rules */
@media (min-width: 992px) {
  .cbp-wizard-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 340px !important; /* Left flexible, right fixed */
    gap: 20px !important;
    align-items: start !important;
  }
  .cbp-summary {
    display: block !important;
    position: sticky !important;
    top: 100px !important;
  }
}
