/* ============================================================
   Cleaning Booking Form - Styles
   ============================================================ */

:root {
  --cbf-primary: #4CAF82;
  --cbf-primary-dark: #3a9a6e;
  --cbf-primary-light: #e8f5ee;
  --cbf-accent: #2c5f4a;
  --cbf-text: #1a2b22;
  --cbf-muted: #6b7c74;
  --cbf-border: #d8e6df;
  --cbf-bg: #f4f9f6;
  --cbf-white: #ffffff;
  --cbf-error: #e53e3e;
  --cbf-warning: #f6ad55;
  --cbf-radius: 12px;
  --cbf-shadow: 0 2px 12px rgba(44, 95, 74, 0.08);
}

* {
  box-sizing: border-box;
}

#cbf-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 40px auto;
  background: var(--cbf-white);
  border-radius: var(--cbf-radius);
  box-shadow: 0 4px 30px rgba(44, 95, 74, 0.12);
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--cbf-text);
}

/* ---- Progress Bar ---- */
.cbf-progress {
  grid-column: 1 / -1;
  background: var(--cbf-accent);
  padding: 20px 30px;
}

.cbf-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.cbf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.cbf-step.active {
  opacity: 1;
}

.cbf-step.completed {
  opacity: 0.8;
}

.cbf-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s;
}

.cbf-step.active .cbf-step-circle {
  background: var(--cbf-primary);
  border-color: var(--cbf-primary);
}

.cbf-step.completed .cbf-step-circle {
  background: var(--cbf-primary);
  border-color: var(--cbf-primary);
}

.cbf-step span {
  color: white;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.cbf-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 12px;
  min-width: 40px;
}

/* ---- Form Body ---- */
.cbf-form-body {
  padding: 30px;
  background: var(--cbf-bg);
  overflow-y: auto;
}

.cbf-step-content {
  display: none;
}

.cbf-step-content.active {
  display: block;
}

.cbf-step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cbf-accent);
  margin: 0 0 24px;
}

/* ---- Tariff ---- */
.cbf-tariff-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cbf-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cbf-tariff-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cbf-tariff-btn {
  padding: 8px 18px;
  border: 2px solid var(--cbf-border);
  border-radius: 30px;
  background: var(--cbf-white);
  color: var(--cbf-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cbf-tariff-btn:hover {
  border-color: var(--cbf-primary);
  color: var(--cbf-primary);
}

.cbf-tariff-btn.active {
  background: var(--cbf-primary);
  border-color: var(--cbf-primary);
  color: white;
}

/* ---- DateTime Grid ---- */
.cbf-datetime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.cbf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cbf-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cbf-required {
  color: var(--cbf-error);
}

/* ---- Calendar ---- */
.cbf-calendar-wrapper {
  background: var(--cbf-white);
  border: 2px solid var(--cbf-border);
  border-radius: var(--cbf-radius);
  overflow: hidden;
}

.cbf-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--cbf-accent);
  color: white;
}

.cbf-cal-nav {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cbf-cal-nav:hover {
  opacity: 1;
}

#cbf-month-label {
  font-weight: 600;
  font-size: 15px;
}

.cbf-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--cbf-primary-light);
}

.cbf-calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cbf-accent);
  padding: 8px 2px;
  text-transform: uppercase;
}

.cbf-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--cbf-border);
  padding: 0;
}

.cbf-cal-day {
  background: var(--cbf-white);
  text-align: center;
  padding: 10px 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
  width: 100%;
}

.cbf-cal-day:hover:not(.disabled):not(.empty) {
  background: var(--cbf-primary-light);
  color: var(--cbf-primary-dark);
  font-weight: 600;
}

.cbf-cal-day.selected {
  background: var(--cbf-primary);
  color: white;
  font-weight: 700;
}

.cbf-cal-day.today {
  font-weight: 700;
  color: var(--cbf-primary);
}

.cbf-cal-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--cbf-bg);
}

.cbf-cal-day.empty {
  background: var(--cbf-bg);
  cursor: default;
}

.cbf-selected-date {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--cbf-primary-light);
  border-radius: 8px;
  font-size: 13px;
  color: var(--cbf-accent);
  font-weight: 500;
}

/* ---- Time Grid ---- */
.cbf-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 8px;
  background: var(--cbf-white);
  border: 2px solid var(--cbf-border);
  border-radius: var(--cbf-radius);
  padding: 14px;
}

.cbf-time-slot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 10px;
  min-height: 48px;
  border: 2px solid var(--cbf-border);
  border-radius: 8px;
  background: var(--cbf-white);
  font-size: 14px;
  font-weight: 600;
  color: var(--cbf-accent);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  box-sizing: border-box;
}

.cbf-time-slot:hover {
  border-color: var(--cbf-primary);
  color: var(--cbf-primary);
  background: var(--cbf-primary-light);
}

.cbf-time-slot.selected {
  background: var(--cbf-primary);
  border-color: var(--cbf-primary);
  color: white;
  font-weight: 700;
}

/* ---- Sections ---- */
.cbf-section {
  margin-bottom: 28px;
}

.cbf-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cbf-accent);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cbf-border);
}

/* ---- Rooms Grid ---- */
.cbf-rooms-grid,
.cbf-extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.cbf-room-card,
.cbf-extra-card {
  background: var(--cbf-white);
  border: 2px solid var(--cbf-border);
  border-radius: var(--cbf-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.cbf-room-card.has-items,
.cbf-extra-card.has-items {
  border-color: var(--cbf-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 130, 0.15);
}

.cbf-room-icon,
.cbf-extra-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.cbf-room-info,
.cbf-extra-info {
  flex: 1;
  min-width: 0;
}

.cbf-room-name,
.cbf-extra-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cbf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cbf-room-time,
.cbf-extra-time {
  font-size: 11px;
  color: var(--cbf-muted);
  white-space: nowrap;
}

/* ---- Counter ---- */
.cbf-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.cbf-counter-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 8px !important;
  border: none !important;
  background: #B7F37B !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  font-family: Arial, sans-serif !important;
  line-height: normal !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--cbf-accent) !important;
  transition: all 0.15s ease;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  vertical-align: middle;
}

.cbf-counter-btn:hover {
  background: var(--cbf-primary-dark);
  transform: scale(1.1);
}

.cbf-counter-btn:active {
  transform: scale(0.95);
}

.cbf-counter-val {
  font-size: 16px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--cbf-accent);
}

/* ---- Toggle ---- */
.cbf-toggle-group {
  display: flex;
  border: 2px solid var(--cbf-border);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  min-width: 100px;
}

.cbf-toggle {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--cbf-muted);
  transition: all 0.2s;
  text-align: center;
  border-radius: 0;
  margin: 0;
  outline: none;
}

.cbf-toggle.active {
  background: var(--cbf-accent);
  color: white;
}

/* ---- Dirt Selector ---- */
.cbf-dirt-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cbf-dirt-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--cbf-border);
  border-radius: var(--cbf-radius);
  background: var(--cbf-white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--cbf-muted);
}

.cbf-dirt-btn:hover {
  border-color: var(--cbf-primary);
  color: var(--cbf-primary);
}

.cbf-dirt-btn.active[data-level="light"] {
  background: #c8f5d0;
  border-color: #4caf50;
  color: #2e7d32;
}

.cbf-dirt-btn.active[data-level="medium"] {
  background: #fff3cd;
  border-color: #f6ad55;
  color: #b7700d;
}

.cbf-dirt-btn.active[data-level="heavy"] {
  background: #fde8e8;
  border-color: #e53e3e;
  color: #c53030;
}

.cbf-dirt-note {
  font-size: 12px;
  color: var(--cbf-muted);
  font-style: italic;
}

/* ---- Options ---- */
.cbf-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--cbf-border);
  gap: 12px;
}

.cbf-option-row:last-child {
  border-bottom: none;
}

.cbf-option-row span {
  font-size: 14px;
  color: var(--cbf-text);
}

.cbf-option-row em {
  color: var(--cbf-primary-dark);
  font-size: 12px;
}

/* ---- Personal Info ---- */
.cbf-personal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.cbf-full-width {
  grid-column: 1 / -1;
}

.cbf-input,
.cbf-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--cbf-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--cbf-text);
  background: var(--cbf-white);
  transition: border-color 0.2s;
  font-family: inherit;
}

.cbf-input:focus,
.cbf-textarea:focus {
  outline: none;
  border-color: var(--cbf-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 130, 0.15);
}

.cbf-textarea {
  resize: vertical;
}

/* ---- Promo ---- */
.cbf-promo-row {
  margin-bottom: 20px;
}

.cbf-promo-input {
  display: flex;
  gap: 8px;
}

.cbf-promo-input .cbf-input {
  flex: 1;
}

/* ---- Payment ---- */
.cbf-payment-section {
  margin-bottom: 20px;
}

.cbf-payment-note {
  background: var(--cbf-primary-light);
  border-left: 4px solid var(--cbf-primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--cbf-accent);
  margin: 0;
}

/* ---- Terms ---- */
.cbf-terms {
  margin-bottom: 24px;
}

.cbf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cbf-muted);
  cursor: pointer;
}

.cbf-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--cbf-primary);
}

.cbf-checkbox-label a {
  color: var(--cbf-primary);
}

/* ---- Navigation ---- */
.cbf-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--cbf-border);
}

.cbf-btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cbf-btn-primary {
  background: var(--cbf-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(76, 175, 130, 0.4);
}

.cbf-btn-primary:hover {
  background: var(--cbf-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(76, 175, 130, 0.5);
}

.cbf-btn-secondary {
  background: var(--cbf-white);
  color: var(--cbf-accent);
  border: 2px solid var(--cbf-border);
}

.cbf-btn-secondary:hover {
  border-color: var(--cbf-accent);
}

.cbf-btn-submit {
  min-width: 200px;
}

/* Hide EOT-only extras from the grid — managed via Step 1 toggle */
.cbf-extra-card[data-extra="hoover_mop"],
.cbf-extra-card[data-extra="end_of_tenancy"] {
  display: none !important;
}

/* End of Tenancy row */
.cbf-eot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0faf5;
  border: 1.5px solid #b2dfc7;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 14px 0 0;
}

.cbf-eot-row.cbf-eot-active {
  background: #e6f7ef;
  border-color: #4CAF82;
  box-shadow: 0 0 0 3px rgba(76, 175, 130, 0.12);
}

.cbf-eot-label {
  font-size: 14px;
  color: #2a4a38;
  line-height: 1.5;
}

.cbf-eot-link {
  color: #2d6a4f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(45, 106, 79, 0.4);
  margin: 0 4px;
}

.cbf-eot-link:hover {
  text-decoration-color: #2d6a4f;
}

.cbf-eot-price {
  color: #e74c3c;
  font-weight: 700;
  font-style: normal;
  margin-left: 2px;
}

.cbf-eot-toggle-group {
  flex-shrink: 0;
}

/* Locked dirt level when EOT active */
.cbf-dirt-btn.cbf-dirt-locked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cbf-dirt-btn.cbf-dirt-locked.active {
  opacity: 1;
  pointer-events: none;
}

.cbf-dirt-locked-note {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #e74c3c;
  font-weight: 600;
}

/* When sidebar hidden on step 1 — form stretches full width */
#cbf-wrapper.cbf-no-sidebar {
  grid-template-columns: 1fr;
}

/* Center step 0 content vertically in the white rectangle */
#cbf-wrapper.cbf-no-sidebar #cbf-step-0 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

/* ---- Stripe Payment ---- */
.cbf-stripe-test-banner {
  background: #fff8e6;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92600a;
  margin-bottom: 14px;
}

.cbf-prb-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--cbf-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.cbf-prb-divider::before,
.cbf-prb-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--cbf-border);
}

.cbf-prb-divider:not(:empty)::before {
  margin-right: 15px;
}

.cbf-prb-divider:not(:empty)::after {
  margin-left: 15px;
}

.cbf-stripe-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0faf5;
  border: 1.5px solid #b2dfc7;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #2a4a38;
  line-height: 1.5;
}

.cbf-stripe-info strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.cbf-stripe-info-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.cbf-stripe-card-wrap {
  margin-bottom: 14px;
}

.cbf-stripe-card-element {
  border: 1.5px solid #d1d9e0;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 6px;
}

.cbf-stripe-card-element.StripeElement--focus {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.cbf-stripe-card-element.StripeElement--invalid {
  border-color: #e74c3c;
}

.cbf-stripe-card-errors {
  color: #e74c3c;
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
  margin-top: 6px;
}

.cbf-stripe-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #888;
  margin-top: 10px;
}

.cbf-charge-preview {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.cbf-charge-authorize {
  background: #f0faf5;
  border: 1.5px solid #b2dfc7;
  color: #2a4a38;
}

.cbf-charge-deposit {
  background: #fff8e6;
  border: 1.5px solid #f5c97a;
  color: #7a5000;
}

.cbf-charge-now {
  display: block;
  font-size: 14px;
}

.cbf-charge-later {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  color: #999;
}

.cbf-payment-note-manual {
  background: #f9f9f9;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #555;
}

.cbf-summary-sidebar {
  background: #f9fdf9;
  border-left: 2px solid var(--cbf-border);
  position: sticky;
  top: 0;
  height: 100%;
}

.cbf-summary-inner {
  padding: 28px 22px;
  position: sticky;
  top: 0;
}

.cbf-summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cbf-accent);
  margin: 0 0 18px;
}

.cbf-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--cbf-muted);
}

.cbf-summary-row strong {
  color: var(--cbf-text);
  font-weight: 600;
}

.cbf-summary-divider {
  border: none;
  border-top: 1px solid var(--cbf-border);
  margin: 10px 0;
}

.cbf-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--cbf-text);
}

.cbf-summary-price {
  color: var(--cbf-primary-dark);
  font-weight: 600;
  padding-top: 1px;
  padding-bottom: 6px;
}

.cbf-summary-discount {
  color: #e74c3c;
  font-weight: 600;
  padding-top: 1px;
  padding-bottom: 6px;
}

.cbf-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  border-top: 2px solid var(--cbf-accent);
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cbf-accent);
}

.cbf-summary-total strong {
  font-size: 22px;
  color: var(--cbf-primary-dark);
}

.cbf-dirt-badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* ---- Success ---- */
.cbf-success {
  text-align: center;
  padding: 60px 30px;
}

.cbf-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cbf-primary);
  color: white;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(76, 175, 130, 0.4);
}

.cbf-success h2 {
  font-size: 28px;
  color: var(--cbf-accent);
}

.cbf-success p {
  color: var(--cbf-muted);
  font-size: 15px;
}

.cbf-success-ref {
  font-size: 16px;
  color: var(--cbf-text);
}

/* ---- Min Duration Notice ---- */
.cbf-min-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e8f5ee 0%, #f0faf5 100%);
  border: 1.5px solid var(--cbf-primary);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--cbf-accent);
}

.cbf-min-notice-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.cbf-min-notice strong {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.cbf-same-day-note {
  background: #fff8e8;
  border: 1.5px solid #f6ad55;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: #8a5700;
  margin-bottom: 10px;
  display: none;
}

.cbf-time-slot.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
}

/* ---- Error Messages ---- */
.cbf-error-msg {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: var(--cbf-error);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============================================================
   Step 0 — Cleaning Type Selector
============================================================ */
.cbf-cleaning-type-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.cbf-cleaning-type-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a3d2b;
  margin: 0 0 8px;
  text-align: center;
}

.cbf-cleaning-type-subtitle {
  font-size: 15px;
  color: #667;
  text-align: center;
  margin: 0 0 36px;
}

.cbf-cleaning-type-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.cbf-cleaning-card {
  background: #fff;
  border: 2.5px solid #dde8da;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.cbf-cleaning-card:hover {
  border-color: #8dc63f;
  box-shadow: 0 6px 24px rgba(141, 198, 63, 0.15);
  transform: translateY(-2px);
}

.cbf-cleaning-card.selected {
  border-color: #2d6a4f;
  box-shadow: 0 6px 28px rgba(45, 106, 79, 0.18);
}

.cbf-cleaning-card-img {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbf-cleaning-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cbf-cleaning-card-icon {
  font-size: 52px;
  opacity: 0.35;
  display: none;
}

.cbf-cleaning-card-img img[style*="display:none"]+.cbf-cleaning-card-icon,
.cbf-cleaning-card-img img[style*="display: none"]+.cbf-cleaning-card-icon {
  display: flex;
}

.cbf-cleaning-card-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cbf-cleaning-card-body h4 {
  font-size: 18px;
  font-weight: 800;
  color: #1a3d2b;
  margin: 0 0 14px;
}

.cbf-cleaning-card-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cbf-cleaning-card-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.cbf-cleaning-card-body ul li::before {
  content: '✓';
  color: #8dc63f;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cbf-cleaning-card-select {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  background: #2d6a4f;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  min-width: 90px;
  writing-mode: horizontal-tb;
}

.cbf-cleaning-card.selected .cbf-cleaning-card-select {
  display: flex;
}

.cbf-cleaning-check {
  background: #8dc63f;
  color: #1a3d2b;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.cbf-cleaning-type-footer {
  text-align: center;
}

.cbf-cleaning-type-footer .cbf-btn {
  padding: 16px 48px;
  font-size: 17px;
  opacity: 0.4;
  cursor: not-allowed;
  transition: opacity 0.2s;
}

.cbf-cleaning-type-footer .cbf-btn:not([disabled]) {
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cbf-cleaning-type-footer .cbf-btn {
    width: 100%;
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 30px;
  }
}

@media (max-width: 768px) {

  /* Card layout */
  .cbf-cleaning-card {
    flex-direction: row;
    height: auto;
    min-height: 0;
    border-radius: 14px;
    border-width: 2px;
    overflow: hidden;
    align-items: stretch;
  }

  /* Left image panel — square-ish, like the reference */
  .cbf-cleaning-card-img {
    width: 80px;
    min-width: 80px;
    flex-shrink: 0;
    align-self: stretch;
    background: linear-gradient(135deg, #d4edda 0%, #b8dfc4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .cbf-cleaning-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .cbf-img-holiday img {
    object-position: center 20%;
  }

  /* Selected indicator on the side */
  .cbf-cleaning-card-select {
    flex-direction: column;
    padding: 0 7px;
    min-width: 39px;
    font-size: 7px;
    gap: 3px;
    align-self: stretch;
    writing-mode: horizontal-tb;
  }

  .cbf-cleaning-check {
    width: 12px;
    height: 12px;
    font-size: 8px;
  }

  /* Card text content */
  .cbf-cleaning-card-body {
    padding: 10px 9px;
    overflow: visible;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
  }

  .cbf-cleaning-card-body h4 {
    font-size: 9px;
    font-weight: 800;
    color: #1a3d2b;
    margin: 0 0 6px;
    line-height: 1.2;
  }

  .cbf-cleaning-card-body ul {
    gap: 3px;
  }

  .cbf-cleaning-card-body ul li {
    font-size: 9px;
    line-height: 1.35;
    color: #3a3a3a;
  }

  .cbf-cleaning-card-body ul li::before {
    color: #6dbf67;
    font-size: 9px;
    margin-top: 1px;
  }

  /* Wrapper & typography */
  .cbf-cleaning-type-wrap {
    padding: 14px 9px 20px;
  }

  .cbf-cleaning-type-title {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .cbf-cleaning-type-subtitle {
    font-size: 9px;
    margin-bottom: 13px;
  }

  .cbf-cleaning-type-grid {
    gap: 15px;
  }
}

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

/* ============================================================
   Holiday Rental Specific Styles
============================================================ */
.cbf-holiday-counter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cbf-holiday-counter-card {
  background: var(--cbf-white);
  border: 2px solid var(--cbf-border);
  border-radius: var(--cbf-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cbf-holiday-counter-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.cbf-holiday-counter-info {
  flex: 1;
  min-width: 0;
}

.cbf-holiday-counter-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--cbf-accent);
  margin-bottom: 4px;
}

.cbf-holiday-counter-time {
  font-size: 13px;
  color: var(--cbf-muted);
}

.cbf-holiday-counter-card .cbf-counter-btn {
  /* Inherits global 46px square style */
}

.cbf-counter-value {
  font-size: 18px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  color: var(--cbf-accent);
}

.cbf-holiday-extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cbf-holiday-extra-card {
  background: var(--cbf-white);
  border: 2px solid var(--cbf-border);
  border-radius: var(--cbf-radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s;
}

.cbf-holiday-extra-card.active {
  border-color: var(--cbf-primary);
  background: var(--cbf-primary-light);
}

.cbf-holiday-extra-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.cbf-holiday-extra-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cbf-holiday-extra-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--cbf-text);
  flex: 1;
}

.cbf-holiday-extra-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--cbf-primary);
  margin-left: auto;
  padding-right: 12px;
}

.cbf-holiday-note {
  background: var(--cbf-primary-light);
  border-left: 4px solid var(--cbf-primary);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: 14px;
  color: var(--cbf-accent);
  line-height: 1.6;
}

.cbf-holiday-note strong {
  font-weight: 700;
}

/* Toggle Switch (Holiday Flow) */
.cbf-toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.cbf-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cbf-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.cbf-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cbf-toggle-switch input:checked+.cbf-toggle-slider {
  background-color: var(--cbf-primary);
}

.cbf-toggle-switch input:checked+.cbf-toggle-slider:before {
  transform: translateX(24px);
}

/* Duration Grid */
.cbf-holiday-duration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cbf-holiday-duration-card {
  background: var(--cbf-white);
  border: 2px solid var(--cbf-border);
  border-radius: var(--cbf-radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cbf-holiday-duration-card:hover {
  border-color: var(--cbf-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 130, 0.15);
}

.cbf-holiday-duration-card.selected {
  border-color: var(--cbf-primary);
  background: var(--cbf-primary-light);
  box-shadow: 0 0 0 3px rgba(76, 175, 130, 0.15);
}

.cbf-holiday-duration-hours {
  font-size: 32px;
  font-weight: 800;
  color: var(--cbf-accent);
  margin-bottom: 6px;
}

.cbf-holiday-duration-label {
  font-size: 13px;
  color: var(--cbf-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .cbf-holiday-counter-card {
    padding: 16px 18px;
  }

  .cbf-holiday-counter-icon {
    font-size: 26px;
  }

  .cbf-holiday-counter-label {
    font-size: 14px;
  }

  .cbf-holiday-counter-time {
    font-size: 12px;
  }

  .cbf-holiday-extra-card {
    padding: 14px 16px;
  }

  .cbf-holiday-extra-icon {
    font-size: 24px;
  }

  .cbf-holiday-extra-label {
    font-size: 13px;
  }

  .cbf-holiday-extra-price {
    font-size: 13px;
  }

  .cbf-holiday-duration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cbf-holiday-duration-hours {
    font-size: 26px;
  }

  .cbf-holiday-duration-label {
    font-size: 12px;
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #cbf-wrapper {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0;
    padding-bottom: 100px;
  }

  /* Center step 0 content on mobile */
  #cbf-wrapper.cbf-no-sidebar #cbf-step-0 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 20px 0;
  }

  .cbf-summary-sidebar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .cbf-progress-steps .cbf-step span {
    display: none;
  }

  .cbf-personal-grid {
    grid-template-columns: 1fr;
  }

  .cbf-rooms-grid,
  .cbf-extras-grid {
    grid-template-columns: 1fr;
  }

  /* Push content above the fixed drawer */
  .cbf-form-body,
  .cbf-form-layout {
    padding-bottom: 100px !important;
  }

  /* Remove duplicate rule below */
  .cbf-form-main {
    padding-bottom: 100px !important;
  }

  /* Make step nav buttons larger and easier to tap */
  .cbf-step-nav {
    margin-top: 24px;
    padding-top: 16px;
    gap: 10px;
  }

  .cbf-btn {
    padding: 14px 22px;
    font-size: 15px;
    flex: 1;
    text-align: center;
  }
}

/* ============================================================
   Mobile Summary Drawer
============================================================ */
.cbf-mobile-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  transform: translateY(calc(100% - 72px));
  max-height: 85vh;
}

.cbf-mobile-drawer.cbf-drawer-open {
  transform: translateY(0);
}

.cbf-mobile-drawer-handle {
  padding: 12px 20px 14px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.cbf-drawer-handle-bar {
  width: 40px;
  height: 4px;
  background: #dde8da;
  border-radius: 3px;
  margin: 0 auto 12px;
}

.cbf-drawer-chevron {
  position: absolute;
  top: 14px;
  right: 20px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.cbf-drawer-open .cbf-drawer-chevron {
  transform: rotate(180deg);
}

.cbf-mobile-drawer-peek {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cbf-drawer-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a3d2b;
}

.cbf-drawer-total {
  font-size: 18px;
  font-weight: 800;
  color: #2d6a4f;
}

.cbf-mobile-drawer-body {
  overflow-y: auto;
  max-height: calc(85vh - 72px);
  padding: 0 20px 32px;
  border-top: 1.5px solid #eef4ee;
}

.cbf-mobile-summary-inner {
  padding-top: 16px;
}

/* Show drawer only on mobile, hidden on step 1 by default */
@media (max-width: 768px) {
  .cbf-mobile-drawer {
    display: none;
  }

  /* Add padding to bottom of page so drawer doesn't cover submit button */
  .cbf-form-body,
  .cbf-form-layout {
    padding-bottom: 100px !important;
  }
}

/* ---- Admin Styles ---- */
.cbf-admin-stats {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.cbf-stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  border: 2px solid #e2e8f0;
  min-width: 120px;
}

.cbf-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #2d3748;
}

.cbf-stat-label {
  font-size: 13px;
  color: #718096;
}

.cbf-stat-pending .cbf-stat-num {
  color: #dd6b20;
}

.cbf-stat-confirmed .cbf-stat-num {
  color: #276749;
}

.cbf-dirt-tag {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.cbf-dirt-light {
  background: #c6f6d5;
  color: #276749;
}

.cbf-dirt-medium {
  background: #feebc8;
  color: #c05621;
}

.cbf-dirt-heavy {
  background: #fed7d7;
  color: #c53030;
}

/* ============================================================
   Step 1 Substep Navigation (Mobile vs Desktop)
   ============================================================ */
@media (min-width: 769px) {
  #cbf-step-1 {
    display: block;
  }

  #cbf-step-1 .cbf-substep {
    display: block !important;
    margin-bottom: 24px;
  }

  /* Navigation handling on desktop */
  #cbf-step-1-part-1 .cbf-step-nav,
  #cbf-step-1-part-2 .cbf-step-nav {
    display: none !important;
  }

  #cbf-step-1-part-3 .cbf-step-nav {
    display: flex !important;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cbf-border);
    justify-content: space-between;
    width: 100%;
  }

  /* Make sure buttons show up correctly */
  #cbf-back-1-to-p2,
  #cbf-next-1-to-step-2 {
    display: inline-block !important;
    flex: 0 1 auto;
  }
}

@media (max-width: 768px) {
  #cbf-step-1 .cbf-substep {
    border: none;
    padding: 0;
  }
}