/* =========================================================
   Cleaner Network — "Managing Your Bookings" page
   Every rule is scoped under .cleaner-bookings-page so nothing
   here can collide with the project's existing global styles,
   header or footer. Swap the --cbp-* tokens below for the
   project's real brand variables if they differ.
   ========================================================= */

.cleaner-bookings-page {
  --cbp-green-700: #146a43;
  --cbp-green-600: #16804f;
  --cbp-green-100: #e3f3ea;
  --cbp-green-bg: #f0f8f4;
  --cbp-navy: #0d2635;
  --cbp-gray-600: #5b6b73;
  --cbp-gray-400: #8a97a0;
  --cbp-border: #e4e9ec;
  --cbp-white: #ffffff;
  --cbp-radius-lg: 20px;
  --cbp-radius-md: 14px;
  --cbp-radius-sm: 10px;
  --cbp-shadow-sm: 0 1px 2px rgba(13, 38, 53, 0.06);
  --cbp-shadow-md: 0 8px 24px rgba(13, 38, 53, 0.08);

  color: var(--cbp-navy);
  padding: 28px 0 72px;
}

.cleaner-bookings-page * { box-sizing: border-box; }
.cleaner-bookings-page img { max-width: 100%; display: block; }
.cleaner-bookings-page a { text-decoration: none; color: inherit; }
.cleaner-bookings-page ul { list-style: none; margin: 0; padding: 0; }
.cleaner-bookings-page h1,
.cleaner-bookings-page h2,
.cleaner-bookings-page h3 { color: var(--cbp-navy); margin: 0; }
.cleaner-bookings-page p { margin: 0; }

.cbp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cbp-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cleaner-bookings-page a:focus-visible,
.cleaner-bookings-page button:focus-visible {
  outline: 2px solid var(--cbp-green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   Buttons + badge
   ========================================================= */
.cbp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.cbp-btn--primary { background: var(--cbp-green-600); color: var(--cbp-white); }
.cbp-btn--primary:hover { background: var(--cbp-green-700); }
.cbp-btn--outline { background: transparent; border-color: var(--cbp-green-600); color: var(--cbp-green-600); }
.cbp-btn--outline:hover { background: var(--cbp-green-600); color: var(--cbp-white); }
.cbp-btn--block { width: 100%; }

.cbp-badge {
  display: inline-block;
  background: var(--cbp-green-100);
  color: var(--cbp-green-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.cbp-breadcrumb {
  padding: 0 0 18px;
  font-size: 0.85rem;
  color: var(--cbp-gray-600);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.cbp-breadcrumb a:hover { color: var(--cbp-green-600); }
.cbp-breadcrumb .sep { margin: 0 8px; color: var(--cbp-gray-400); }
.cbp-breadcrumb .current { color: var(--cbp-navy); font-weight: 600; }

/* =========================================================
   Layout: two columns
   ========================================================= */
.cbp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.cbp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* =========================================================
   Hero
   ========================================================= */
.cbp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}
.cbp-hero__title {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 12px;
}
.cbp-hero__sub {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.cbp-hero__desc {
  color: var(--cbp-gray-600);
  line-height: 1.65;
  max-width: 54ch;
  margin: 0 0 18px;
}
.cbp-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--cbp-gray-600);
}
.cbp-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.cbp-hero__meta i { color: var(--cbp-green-600); }

.cbp-hero__media { position: relative; }
.cbp-hero__image {
  border-radius: var(--cbp-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
}
.cbp-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.cbp-hero__note {
  position: absolute;
  right: -8px;
  top: -16px;
  background: var(--cbp-green-bg);
  color: var(--cbp-green-700);
  padding: 18px 22px;
  border-radius: var(--cbp-radius-md);
  box-shadow: var(--cbp-shadow-md);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.35;
  max-width: 175px;
  transform: rotate(-2deg);
  z-index: 2;
}
.cbp-hero__note .rule { width: 28px; border-top: 2px solid var(--cbp-green-600); margin-top: 8px; }

/* =========================================================
   Section shell + numbered heading
   ========================================================= */
.cbp-section { margin-bottom: 44px; }
.cbp-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.cbp-section__number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cbp-green-600);
  color: var(--cbp-white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.cbp-section__head-text h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.cbp-section__desc { color: var(--cbp-gray-600); line-height: 1.6; max-width: 62ch; }

/* Feature card grids */
.cbp-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cbp-feature-card {
  background: var(--cbp-green-bg);
  border-radius: var(--cbp-radius-md);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cbp-feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cbp-white);
  color: var(--cbp-green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
  box-shadow: var(--cbp-shadow-sm);
}
.cbp-feature-card__title { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.cbp-feature-card__desc { font-size: 0.86rem; color: var(--cbp-gray-600); line-height: 1.5; }

.cbp-feature-card--sm { padding: 20px 16px; }
.cbp-feature-card--sm .cbp-feature-card__icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 10px; }
.cbp-feature-card--sm .cbp-feature-card__title { font-size: 0.9rem; }
.cbp-feature-card--sm .cbp-feature-card__desc { font-size: 0.82rem; }

/* Section 1: cards + dashboard image */
.cbp-section1__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.cbp-section1__media { border-radius: var(--cbp-radius-lg); overflow: hidden; border: 1px solid var(--cbp-border); box-shadow: var(--cbp-shadow-sm); }
.cbp-section1__media img { width: 100%; height: 100%; object-fit: cover; }

/* Section 2: checklist panel + booking details card */
.cbp-section2__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.cbp-checklist {
  background: var(--cbp-green-bg);
  border-radius: var(--cbp-radius-md);
  padding: 24px 26px;
}
.cbp-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.94rem;
  line-height: 1.4;
}
.cbp-checklist__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--cbp-green-600);
}
.cbp-checklist__icon svg { width: 100%; height: 100%; }

.cbp-booking-card {
  background: var(--cbp-white);
  border: 1px solid var(--cbp-border);
  border-radius: var(--cbp-radius-md);
  padding: 22px;
  box-shadow: var(--cbp-shadow-sm);
}
.cbp-booking-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cbp-booking-card__head h3 { font-size: 1rem; font-weight: 800; }
.cbp-booking-card__status {
  background: var(--cbp-green-100);
  color: var(--cbp-green-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.cbp-booking-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--cbp-border);
}
.cbp-booking-card__row:last-of-type { border-bottom: none; }
.cbp-booking-card__row i { color: var(--cbp-green-600); width: 16px; margin-top: 2px; flex-shrink: 0; }
.cbp-booking-card__note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cbp-border);
  font-size: 0.86rem;
  font-style: italic;
  color: var(--cbp-gray-600);
  line-height: 1.5;
}

/* Section 3: feature cards + phone image */
.cbp-section3__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.cbp-section3__media { border-radius: var(--cbp-radius-lg); overflow: hidden; border: 1px solid var(--cbp-border); box-shadow: var(--cbp-shadow-sm); max-width: 320px; margin: 0 auto; }
.cbp-section3__media img { width: 100%; height: 100%; object-fit: cover; }

/* Section 4: feature cards + image */
.cbp-section4__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.cbp-section4__media { border-radius: var(--cbp-radius-lg); overflow: hidden; border: 1px solid var(--cbp-border); box-shadow: var(--cbp-shadow-sm); }
.cbp-section4__media img { width: 100%; height: 100%; object-fit: cover; }

/* Section 5: 4-up small cards + tip bar */
.cbp-section5__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.cbp-tip-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cbp-green-bg);
  border-radius: var(--cbp-radius-md);
  padding: 16px 20px;
}
.cbp-tip-bar__icon { color: var(--cbp-green-600); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.cbp-tip-bar p { font-size: 0.9rem; line-height: 1.55; color: var(--cbp-navy); }
.cbp-tip-bar strong { font-weight: 700; }

/* Prev / Next navigation */
.cbp-pagenav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--cbp-border);
}
.cbp-pagenav .cbp-btn { flex: 1 1 auto; }
.cbp-pagenav__prev { justify-content: flex-start; }
.cbp-pagenav__next { justify-content: center; margin-left: auto; }

/* =========================================================
   Sidebar cards (shared)
   ========================================================= */
.cbp-card {
  background: var(--cbp-white);
  border: 1px solid var(--cbp-border);
  border-radius: var(--cbp-radius-lg);
  padding: 24px;
  box-shadow: var(--cbp-shadow-sm);
}
.cbp-card--tint { background: var(--cbp-green-bg); border-color: transparent; }
.cbp-card--support { background: #f5f7f8; border-color: transparent; }
.cbp-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }

/* Progress card */
.cbp-progress-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.cbp-ring { width: 50px; height: 50px; flex-shrink: 0; }
.cbp-ring text { font-size: 0.6rem; font-weight: 700; fill: var(--cbp-navy); }
.cbp-progress__list { display: flex; flex-direction: column; margin: 14px 0 18px; }
.cbp-progress__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--cbp-gray-600);
  border-bottom: 1px solid var(--cbp-border);
}
.cbp-progress__item:last-child { border-bottom: none; }
.cbp-progress__item.is-complete { color: var(--cbp-navy); font-weight: 600; }
.cbp-progress__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--cbp-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--cbp-white);
}
.cbp-progress__item.is-complete .cbp-progress__icon { background: var(--cbp-green-600); border-color: var(--cbp-green-600); }
.cbp-progress__icon svg { width: 12px; height: 12px; }

/* Related resources card */
.cbp-related__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--cbp-border);
}
.cbp-related__item:first-child { padding-top: 4px; }
.cbp-related__item:last-child { border-bottom: none; padding-bottom: 0; }
.cbp-related__thumb { width: 54px; height: 54px; border-radius: var(--cbp-radius-sm); overflow: hidden; flex-shrink: 0; }
.cbp-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cbp-related__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cbp-related__title { font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.cbp-related__meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--cbp-gray-600); }
.cbp-related__type {
  font-weight: 700; color: var(--cbp-green-700); background: var(--cbp-green-100);
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase; font-size: 0.63rem;
}
.cbp-related__arrow {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--cbp-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--cbp-navy);
}
.cbp-related__arrow svg { width: 11px; height: 11px; }

/* Top tips card */
.cbp-tip { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid rgba(13,38,53,0.08); }
.cbp-tip.is-last { border-bottom: none; padding-bottom: 0; }
.cbp-tip:first-child { padding-top: 14px; }
.cbp-tip__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cbp-white); color: var(--cbp-green-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem; box-shadow: var(--cbp-shadow-sm);
}
.cbp-tip__title { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.cbp-tip__desc { display: block; color: var(--cbp-gray-600); font-size: 0.83rem; line-height: 1.5; }

/* Support card */
.cbp-support__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cbp-white); box-shadow: var(--cbp-shadow-sm);
  color: var(--cbp-green-600); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 12px;
}
.cbp-support__sub { font-weight: 600; font-size: 0.9rem; margin: 2px 0 8px; }
.cbp-support__text { color: var(--cbp-gray-600); font-size: 0.86rem; line-height: 1.55; margin-bottom: 16px; }

/* =========================================================
   Responsive breakpoints
   Desktop >= 992 | Tablet 768-991 | Mobile <= 767 | Small <= 479
   ========================================================= */

@media (min-width: 576px) {
  .cbp-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .cbp-section5__grid { grid-template-columns: repeat(4, 1fr); }
  .cbp-checklist { padding: 26px 30px; }
}

@media (min-width: 768px) {
  .cbp-hero { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .cbp-section2__grid { grid-template-columns: 1.4fr 1fr; }
  .cbp-section3__grid { grid-template-columns: 1fr 260px; }
  .cbp-section3__media { margin: 0; }
  .cbp-section4__grid { grid-template-columns: 1fr 320px; }
}

@media (min-width: 992px) {
  .cbp-layout { grid-template-columns: 2.3fr 1fr; gap: 36px; }
  .cbp-section1__grid { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 767px) {
  .cleaner-bookings-page { padding: 20px 0 56px; }
  .cbp-container { padding: 0 18px; }
  .cbp-hero { margin-bottom: 32px; }
  .cbp-hero__media { order: 2; margin-top: 6px; }
  .cbp-hero__content { order: 1; }
  .cbp-hero__note {
    position: static;
    margin-top: -32px;
    margin-left: auto;
    transform: none;
    width: fit-content;
  }
  .cbp-hero__meta { row-gap: 8px; }
  .cbp-section { margin-bottom: 34px; }
  .cbp-pagenav { flex-direction: column; }
  .cbp-pagenav .cbp-btn { width: 100%; }
  .cbp-pagenav__next { margin-left: 0; }
}

@media (max-width: 479px) {
  .cbp-hero__title { font-size: 1.75rem; }
  .cbp-section__head-text h2 { font-size: 1.1rem; }
  .cbp-hero__note { padding: 14px 16px; font-size: 0.9rem; max-width: 150px; }
  .cbp-section5__grid { grid-template-columns: 1fr 1fr; }
  .cbp-card { padding: 18px; }
}