body:has(.booking-page:not(.is-customer-app)) { background: var(--booking-bg, #f6f8fc); }

.booking-page {
  --booking-bg: #f6f8fc;
  --booking-surface: #fff;
  --booking-surface-soft: #eef3fa;
  --booking-surface-info: #eef5ff;
  --booking-border: #e6eaf2;
  --booking-border-soft: #edf0f5;
  --booking-text: #111827;
  --booking-muted: #667085;
  --booking-subtle: #98a2b3;
  --booking-primary: var(--booking-brand-color, #0d6efd);
  --booking-primary-deep: #174ea6;
  --booking-success: #168a4a;
  --booking-shadow: 0 14px 34px rgba(15, 23, 42, .05);
  background: var(--booking-bg);
  color: var(--booking-text);
  min-height: 100vh;
  padding: 24px 0 36px;
  overflow-x: clip;
}

.booking-page.is-customer-app {
  min-height: 0;
  padding: 0 0 24px;
  overflow: visible;
  background: transparent;
}

.booking-page.is-customer-app::before,
.booking-page.is-customer-app::after { display: none; }

.booking-page.is-customer-app .booking-shell {
  max-width: none;
  padding: 0;
}

.booking-page.is-customer-app .booking-header {
  margin-bottom: 18px;
  border-radius: 9px;
}

html.dark .booking-page {
  --booking-bg: #111827;
  --booking-surface: #1f2937;
  --booking-surface-soft: #293548;
  --booking-surface-info: rgba(13, 110, 253, .14);
  --booking-border: rgba(255, 255, 255, .1);
  --booking-border-soft: rgba(255, 255, 255, .08);
  --booking-text: #f8fafc;
  --booking-muted: #aeb8c7;
  --booking-subtle: #8793a5;
  --booking-primary: #6ea8fe;
  --booking-primary-deep: #b7d4ff;
  --booking-success: #25a65a;
  --booking-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

.booking-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 18px;
}

.booking-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.booking-brand {
  align-items: center;
  color: var(--booking-text);
  display: inline-flex;
  font-size: .875rem;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.booking-brand-mark {
  align-items: center;
  background: var(--booking-primary);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.booking-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 10px 0 8px;
}

.booking-lead {
  color: var(--booking-muted);
  font-size: 1.05rem;
  margin: 0;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.booking-theme-menu {
  min-width: 11rem;
}

.booking-card {
  background: var(--booking-surface);
  border: 1px solid var(--booking-border);
  border-radius: 8px;
  box-shadow: var(--booking-shadow);
}

.booking-progress { display: flex; align-items: center; justify-content: center; max-width: 620px; margin: 0 auto 20px; padding: 12px 18px; border: 1px solid rgba(23, 32, 51, .08); border-radius: 12px; color: #697386; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(50, 50, 93, .08); }
.booking-progress-item, .booking-progress-item.is-active, .booking-progress-item.is-complete { display: grid; place-items: center; gap: 5px; min-width: 90px; padding: 0 !important; color: #697386 !important; background: transparent !important; box-shadow: none !important; font-size: .75rem; text-align: center; }
.booking-progress a.booking-progress-item,
.booking-progress button.booking-progress-item { border: 0; font-family: inherit; line-height: inherit; text-decoration: none; }
.booking-progress a.booking-progress-item,
.booking-progress button.booking-progress-item:not(:disabled) { cursor: pointer; }
.booking-progress button.booking-progress-item:disabled { cursor: default; opacity: 1; }
.booking-progress-item > span { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid #dfe2eb; border-radius: 50%; color: #697386; background: #fff; font-weight: 800; }
.booking-progress-item > strong { color: #697386; }
.booking-progress-item.is-active > span, .booking-progress-item.is-complete > span { border-color: #635bff; color: #fff; background: #635bff; }
.booking-progress-item.is-active > strong, .booking-progress-item.is-complete > strong { color: #393181; }
.booking-progress-line { width: 100%; height: 1px; margin: 0 -7px 22px; background: #dfe2eb; }
.booking-service-options { display: grid; gap: 8px; }
.booking-service-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--booking-border); border-radius: 9px; cursor: pointer; background: var(--booking-surface); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.booking-service-option:hover { border-color: #aaa4ff; transform: translateY(-1px); }
.booking-service-option:has(input:focus-visible) { outline: 3px solid rgba(99, 91, 255, .2); }
.booking-service-option.is-selected, .booking-service-option:has(input:checked) { border-color: var(--booking-primary); box-shadow: 0 0 0 1px var(--booking-primary); }
.booking-service-option span { display: grid; gap: 2px; min-width: 0; }
.booking-service-option strong { overflow: hidden; text-overflow: ellipsis; }
.booking-service-option small { color: var(--booking-muted); }
.booking-service-option b { flex: none; color: var(--booking-text); }
.booking-inline-choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; background: var(--booking-surface-soft); }
.booking-inline-choice > i { color: var(--booking-primary); }
.booking-inline-choice span { display: grid; }
.booking-inline-choice small { color: var(--booking-muted); }
.booking-optional { border: 1px solid var(--booking-border); border-radius: 9px; padding: 12px 14px; }
.booking-optional summary { cursor: pointer; font-weight: 700; }
.booking-optional summary span { float: right; color: var(--booking-muted); font-size: .75rem; font-weight: 600; }

.booking-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.booking-panel {
  padding: 22px;
}

.booking-step {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.booking-step-number {
  align-items: center;
  background: #0d6efd;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.booking-step-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.booking-divider {
  border-top: 1px solid var(--booking-border-soft);
  margin: 22px 0;
}

.booking-hint {
  align-items: flex-start;
  background: var(--booking-surface-info);
  border-radius: 6px;
  color: var(--booking-primary-deep);
  display: flex;
  gap: 12px;
  line-height: 1.55;
  padding: 14px;
}

.booking-timeline-header,
.booking-timeline-summary,
.booking-timeline-legend {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.booking-timeline-header {
  gap: 12px;
  margin-bottom: 12px;
}

.booking-timeline-date {
  font-weight: 800;
  text-transform: capitalize;
}

.booking-timeline-hours {
  color: var(--booking-muted);
  font-size: .8125rem;
  white-space: nowrap;
}

.booking-timeline {
  background: repeating-linear-gradient(90deg, var(--booking-surface-soft) 0, var(--booking-surface-soft) calc(8.333% - 1px), var(--booking-border) calc(8.333% - 1px), var(--booking-border) 8.333%);
  border: 1px solid var(--booking-border);
  border-radius: 7px;
  cursor: ew-resize;
  height: 64px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.booking-timeline:focus-visible {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .2);
  outline: 0;
}

.booking-timeline-segment {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .42);
  bottom: 0;
  padding: 0;
  position: absolute;
  top: 0;
}

.booking-timeline-segment.is-free {
  background: rgba(22, 138, 74, .28);
  cursor: pointer;
}

.booking-timeline-segment.is-free:hover {
  background: rgba(22, 138, 74, .45);
}

.booking-timeline-segment.is-busy {
  background: repeating-linear-gradient(135deg, rgba(102, 112, 133, .13) 0, rgba(102, 112, 133, .13) 5px, rgba(102, 112, 133, .22) 5px, rgba(102, 112, 133, .22) 10px);
}

.booking-timeline-selection {
  background: var(--booking-primary);
  border: 2px solid #fff;
  border-radius: 5px;
  bottom: 4px;
  box-shadow: 0 4px 12px rgba(13, 110, 253, .35);
  pointer-events: none;
  position: absolute;
  top: 4px;
  transition: left .12s ease, width .12s ease;
  z-index: 3;
}

.booking-timeline-selection::after {
  background: #fff;
  border: 2px solid var(--booking-primary);
  border-radius: 50%;
  content: '';
  height: 18px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
}

.booking-timeline-scale {
  color: var(--booking-muted);
  display: flex;
  font-size: .7rem;
  justify-content: space-between;
  margin-top: 5px;
}

.booking-timeline-summary {
  background: var(--booking-surface-info);
  border-radius: 6px;
  color: var(--booking-primary-deep);
  gap: 10px;
  margin-top: 13px;
  padding: 10px 12px;
}

.booking-timeline-selected-time {
  font-size: 1rem;
  font-weight: 800;
}

.booking-timeline-legend {
  color: var(--booking-muted);
  font-size: .75rem;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 10px;
}

.booking-timeline-key {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.booking-timeline-key::before {
  background: rgba(102, 112, 133, .2);
  border-radius: 2px;
  content: '';
  height: 9px;
  width: 18px;
}

.booking-timeline-key.is-free::before {
  background: rgba(22, 138, 74, .45);
}

.booking-day-options {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.booking-day-option { flex: 0 0 auto; }

.booking-details {
  margin-top: 18px;
  padding: 22px;
}

.booking-details-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.booking-submit {
  min-height: 48px;
  white-space: nowrap;
}

.booking-features {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  padding: 22px;
}

.booking-feature {
  align-items: center;
  border-right: 1px solid var(--booking-border-soft);
  display: flex;
  gap: 14px;
  padding: 0 18px;
}

.booking-feature:first-child {
  padding-left: 0;
}

.booking-feature:last-child {
  border-right: 0;
  padding-right: 0;
}

.booking-feature-icon {
  align-items: center;
  background: var(--booking-surface-soft);
  border-radius: 50%;
  color: var(--booking-primary);
  display: inline-flex;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.booking-feature-title {
  font-weight: 800;
  margin-bottom: 2px;
}

.booking-feature-text {
  color: var(--booking-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.booking-footer {
  color: var(--booking-subtle);
  font-size: .875rem;
  margin-top: 26px;
  text-align: center;
}

@media (max-width: 991.98px) {
  .booking-header {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-actions {
    justify-content: flex-start;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-details-grid,
  .booking-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-feature {
    border-right: 0;
    padding: 14px 0;
  }
}

@media (max-width: 575.98px) {
  .booking-page {
    padding-top: 16px;
  }

  .booking-shell {
    padding: 0 12px;
  }

  .booking-actions .btn {
    flex: 1 1 100%;
    white-space: normal;
  }

  .booking-panel,
  .booking-details,
  .booking-features {
    padding: 16px;
  }

  .booking-details-grid,
  .booking-features {
    grid-template-columns: 1fr;
  }
}

/* RESCA booking identity: restrained product UI instead of a generic card grid. */
.booking-page {
  --booking-bg: #f4f5f9;
  --booking-surface: #fff;
  --booking-surface-soft: #f7f7fb;
  --booking-surface-info: #f2f0ff;
  --booking-border: #dfe2eb;
  --booking-border-soft: #eceef4;
  --booking-text: #171b2e;
  --booking-muted: #666b7c;
  --booking-subtle: #9297a7;
  --booking-primary: var(--booking-brand-color, #6757ff);
  --booking-primary-deep: #5045cc;
  --booking-success: #23875c;
  --booking-navy: #101426;
  --booking-shadow: 0 1px 2px rgba(16, 20, 38, .04), 0 12px 36px rgba(16, 20, 38, .04);
  padding: 0 0 32px;
  background:
    linear-gradient(var(--booking-primary), var(--booking-primary)) top / 100% 4px no-repeat,
    var(--booking-bg);
  font-feature-settings: 'ss01' 1, 'cv02' 1;
}

.booking-shell {
  max-width: 1240px;
  padding: 0 24px;
}

.booking-header {
  position: relative;
  align-items: center;
  min-height: 164px;
  margin: 0 0 28px;
  padding: 34px 40px;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 18px 18px;
  background: var(--booking-navy);
  box-shadow: 0 10px 28px rgba(16, 20, 38, .1);
}

.booking-header::after {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -68px;
  bottom: -152px;
  border: 1px solid rgba(145, 134, 255, .35);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.booking-header > div {
  position: relative;
  z-index: 1;
}

.booking-brand {
  color: #d9dcef;
  font-size: .75rem;
  font-weight: 750;
  gap: 11px;
  letter-spacing: .08em;
}

.booking-brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-brand-mark i { display: none; }

.booking-brand-mark::before,
.booking-brand-mark::after {
  position: absolute;
  inset: 6px 15px;
  border-radius: 999px;
  background: #fff;
  content: '';
  transform: rotate(45deg);
}

.booking-brand-mark::after { transform: rotate(-45deg); }

.booking-title {
  max-width: 670px;
  margin: 17px 0 7px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.booking-lead {
  max-width: 620px;
  color: #aeb4ca;
  font-size: 1rem;
  line-height: 1.6;
}

.booking-actions {
  align-items: center;
  max-width: 360px;
}

.booking-actions .btn {
  min-height: 42px;
  border-color: rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #eef0fa;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  font-weight: 650;
}

.booking-actions .btn:hover,
.booking-actions .btn:focus {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.booking-theme-menu {
  padding: 8px;
  border: 1px solid var(--booking-border) !important;
  border-radius: 10px;
  box-shadow: var(--booking-shadow);
}

.booking-card {
  border: 1px solid var(--booking-border);
  border-radius: 12px;
  box-shadow: var(--booking-shadow);
}

.booking-grid {
  gap: 20px;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
}

.booking-panel { padding: 26px; }

.booking-grid > aside {
  align-self: start;
  border-top: 3px solid var(--booking-primary);
}

.booking-step {
  gap: 12px;
  margin-bottom: 18px;
}

.booking-step-number {
  width: auto;
  height: auto;
  min-width: 28px;
  justify-content: flex-start;
  border-radius: 0;
  color: var(--booking-primary);
  background: transparent;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.booking-step-number::before { content: '0'; }

.booking-step-title {
  color: var(--booking-text);
  font-size: .9rem;
  font-weight: 760;
  letter-spacing: .01em;
}

.booking-divider { margin: 24px 0; }

.booking-page .form-label {
  margin-bottom: 8px;
  color: #3e4355;
  font-size: .82rem;
  font-weight: 700 !important;
}

.booking-page .form-control,
.booking-page .form-select {
  min-height: 48px;
  border-color: #d8dbe5;
  border-radius: 8px;
  color: var(--booking-text);
  background-color: var(--booking-surface);
  box-shadow: 0 1px 1px rgba(16, 20, 38, .02);
  font-size: .94rem;
}

.booking-page .form-control:focus,
.booking-page .form-select:focus {
  border-color: var(--booking-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--booking-primary) 14%, transparent);
}

.booking-page .btn-primary {
  border-color: var(--booking-primary);
  border-radius: 8px;
  background: var(--booking-primary);
  box-shadow: none;
  font-weight: 700;
}

.booking-page .btn-primary:hover {
  border-color: var(--booking-primary-deep);
  background: var(--booking-primary-deep);
  transform: none;
}

.booking-page .btn-alt-secondary,
.booking-page .btn-alt-primary {
  border: 1px solid var(--booking-border);
  border-radius: 8px;
  color: #44495a;
  background: var(--booking-surface);
  box-shadow: none;
}

.booking-hint {
  border: 1px solid color-mix(in srgb, var(--booking-primary) 16%, transparent);
  border-radius: 8px;
  color: #4e4786;
  background: var(--booking-surface-info);
  font-size: .86rem;
  line-height: 1.5;
}

.booking-day-options {
  gap: 7px;
  margin-bottom: 22px;
}

.booking-day-option {
  min-width: 92px;
  padding: 9px 13px;
  border-radius: 8px !important;
  text-align: left;
}

.booking-timeline {
  height: 74px;
  border-color: #d8dbe5;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #f7f8fb 0, #f7f8fb calc(8.333% - 1px), #e4e6ed calc(8.333% - 1px), #e4e6ed 8.333%);
}

.booking-timeline-segment.is-free { background: rgba(35, 135, 92, .22); }
.booking-timeline-segment.is-free:hover { background: rgba(35, 135, 92, .38); }

.booking-timeline-selection {
  border: 2px solid #fff;
  border-radius: 6px;
  background: var(--booking-primary);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--booking-primary) 35%, transparent);
}

.booking-timeline-summary {
  border: 1px solid color-mix(in srgb, var(--booking-primary) 16%, transparent);
  border-radius: 8px;
  color: #403a73;
  background: var(--booking-surface-info);
}

.booking-details {
  margin-top: 20px;
  padding: 26px;
  border-left: 3px solid var(--booking-primary);
}

.booking-details .alert-info {
  border: 0;
  border-radius: 8px;
  color: #4f5567;
  background: var(--booking-surface-soft);
}

.booking-submit { min-width: 220px; }

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: #777c8d;
  font-size: .8rem;
}

.booking-footer::before {
  width: 10px;
  height: 10px;
  border: 2px solid var(--booking-primary);
  content: '';
  transform: rotate(45deg);
}

html.dark .booking-page {
  --booking-bg: #0c1020;
  --booking-surface: #171c2e;
  --booking-surface-soft: #1d2338;
  --booking-surface-info: #262343;
  --booking-border: #2b3248;
  --booking-border-soft: #272e43;
  --booking-text: #f4f5fa;
  --booking-muted: #a8aec2;
  --booking-subtle: #7f879d;
  --booking-primary-deep: #8c83ff;
  --booking-navy: #080b16;
}

html.dark .booking-page .form-label { color: #c9cede; }
html.dark .booking-page .form-control,
html.dark .booking-page .form-select { border-color: #353c53; color: #f4f5fa; background-color: #151a2b; }
html.dark .booking-page .btn-alt-secondary,
html.dark .booking-page .btn-alt-primary { border-color: #343b51; color: #dce0ed; background: #1c2235; }
html.dark .booking-timeline { border-color: #353c53; background: repeating-linear-gradient(90deg, #1b2134 0, #1b2134 calc(8.333% - 1px), #30374c calc(8.333% - 1px), #30374c 8.333%); }

@media (max-width: 991.98px) {
  .booking-shell { padding: 0 18px; }
  .booking-header { align-items: flex-start; min-height: 0; padding: 30px; }
  .booking-header::after { right: -180px; }
  .booking-actions { max-width: none; }
}

@media (max-width: 575.98px) {
  .booking-page { padding-top: 0; }
  .booking-shell { padding: 0 10px; }
  .booking-header { margin-bottom: 14px; padding: 25px 20px; border-radius: 0 0 8px 8px; }
  .booking-title { font-size: 2.25rem; }
  .booking-actions { width: 100%; }
  .booking-actions .btn { flex: 0 1 auto; }
  .booking-grid { gap: 12px; }
  .booking-panel, .booking-details { padding: 19px; }
  .booking-timeline-summary { align-items: flex-start; flex-direction: column; }
  .booking-submit { width: 100%; min-width: 0; }
}

/* Shared public identity: follows the customer mobile sign-in screen. */
.booking-page,
html.dark .booking-page {
  --booking-bg: #f6f8fc;
  --booking-surface: rgba(255, 255, 255, .96);
  --booking-surface-soft: #f7f8fc;
  --booking-surface-info: #f3f1ff;
  --booking-border: #dfe2eb;
  --booking-border-soft: #eceef4;
  --booking-text: #172033;
  --booking-muted: #697386;
  --booking-subtle: #8991a3;
  --booking-primary: #635bff;
  --booking-primary-deep: #7c3aed;
  --booking-navy: #172033;
  --booking-shadow: 0 18px 48px rgba(50, 50, 93, .1), 0 2px 8px rgba(31, 38, 76, .04);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #172033;
  background: #f6f8fc;
}

.booking-page::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -3;
  height: min(620px, 60vh);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, .44) 0, transparent 20%),
    radial-gradient(circle at 12% 15%, #ffcb57 0, transparent 31%),
    radial-gradient(circle at 82% 8%, #80e9ff 0, transparent 34%),
    radial-gradient(circle at 72% 78%, #635bff 0, transparent 42%),
    radial-gradient(circle at 25% 82%, #ff6bd6 0, transparent 42%),
    linear-gradient(115deg, #ff8a5c 0%, #a960ee 45%, #635bff 72%, #00d4ff 100%);
  background-size: 125% 125%, 130% 130%, 135% 135%, 130% 140%, 145% 135%, 100% 100%;
  content: '';
  animation: resca-booking-mesh 12s ease-in-out infinite alternate;
}

.booking-page::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: min(620px, 60vh);
  opacity: .2;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  background: repeating-linear-gradient(115deg, transparent 0 48px, rgba(255, 255, 255, .32) 49px, transparent 50px 96px);
  content: '';
  animation: resca-booking-stripes 18s linear infinite;
}

.booking-shell { position: relative; z-index: 1; }

.booking-header,
html.dark .booking-header {
  border: 1px solid rgba(98, 88, 140, .13);
  border-radius: 0 0 10px 10px;
  color: #172033;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 80px rgba(50, 50, 93, .16), 0 2px 8px rgba(31, 38, 76, .06);
  backdrop-filter: blur(20px);
}

.booking-header.has-background-photo,
html.dark .booking-header.has-background-photo {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(11, 16, 36, .88) 0%, rgba(11, 16, 36, .7) 48%, rgba(11, 16, 36, .42) 100%),
    var(--booking-header-photo);
  background-position: center;
  background-size: cover;
  box-shadow: 0 30px 80px rgba(26, 24, 56, .25), 0 2px 8px rgba(31, 38, 76, .08);
  backdrop-filter: none;
}

.booking-header.has-background-photo .booking-brand,
.booking-header.has-background-photo .booking-title,
html.dark .booking-header.has-background-photo .booking-brand,
html.dark .booking-header.has-background-photo .booking-title {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.booking-header.has-background-photo .booking-lead {
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

.booking-header.has-background-photo .booking-actions .btn,
html.dark .booking-header.has-background-photo .booking-actions .btn {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  background: rgba(13, 18, 38, .42);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
  backdrop-filter: blur(12px);
}

.booking-header::after { display: none; }

.booking-brand { color: #172033; }

.booking-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #635bff, #8b5cf6);
  box-shadow: 0 8px 22px rgba(99, 91, 255, .28);
}

.booking-brand-mark i { display: block; }
.booking-brand-mark::before,
.booking-brand-mark::after { display: none; }

.booking-title,
.booking-step-title,
html.dark .booking-title,
html.dark .booking-step-title {
  color: #172033 !important;
  -webkit-text-fill-color: #172033;
}

.booking-lead { color: #697386; }

.booking-actions .btn,
html.dark .booking-actions .btn {
  border-color: #d8dce7;
  color: #344054;
  background: rgba(255, 255, 255, .9);
}

.booking-loading {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: none;
  place-items: center;
  color: #393181;
  background: rgba(246, 248, 252, .72);
  backdrop-filter: blur(3px);
}
.booking-page.is-loading .booking-loading { display: grid; }
.booking-loading-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #ddd9ff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(50, 50, 93, .15);
  font-weight: 700;
}
.booking-slot-groups { display: grid; gap: 18px; }
.booking-slot-group h3 { margin: 0 0 9px; color: var(--booking-muted); font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.booking-slot-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.booking-time-button {
  min-height: 44px;
  border: 1px solid #d8dce7;
  border-radius: 8px;
  color: #2f3446;
  background: #fff;
  font-weight: 750;
}
.booking-time-button:hover { border-color: #a9a1ff; color: #4d43cc; background: #f7f5ff; }
.booking-time-button.is-selected { border-color: #635bff; color: #fff; background: #635bff; box-shadow: 0 7px 18px rgba(99, 91, 255, .22); }
.booking-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--booking-border); border-radius: 9px; }
.booking-review > div { display: flex; flex-direction: column; gap: 4px; padding: 13px 15px; border-right: 1px solid var(--booking-border-soft); border-bottom: 1px solid var(--booking-border-soft); }
.booking-review > div:nth-child(even) { border-right: 0; }
.booking-review span { color: var(--booking-muted); font-size: .78rem; }
.booking-review strong { overflow-wrap: anywhere; }
.booking-review .booking-review-price { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border: 0; font-size: 1.05rem; }
.booking-submit-row { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.booking-submit-price { font-size: 1.2rem; font-weight: 800; }
.booking-submit:disabled { opacity: .58; box-shadow: none; }

@media (max-width: 575.98px) {
  .booking-review { grid-template-columns: 1fr; }
  .booking-review > div { border-right: 0; }
  .booking-submit-row { position: sticky; bottom: 8px; z-index: 10; margin-right: -8px; margin-left: -8px; padding: 10px; border: 1px solid var(--booking-border); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 12px 36px rgba(16,20,38,.16); backdrop-filter: blur(12px); }
  .booking-submit-row .booking-submit { flex: 1; }
  .booking-submit-price { white-space: nowrap; font-size: 1rem; }
}

.booking-page.is-customer-app,
html.dark .booking-page.is-customer-app {
  min-height: 0;
  padding: 0 0 24px;
  overflow: visible;
  background: transparent;
}

.booking-page.is-customer-app::before,
.booking-page.is-customer-app::after,
html.dark .booking-page.is-customer-app::before,
html.dark .booking-page.is-customer-app::after { display: none; }

.booking-actions .btn:hover,
.booking-actions .btn:focus {
  border-color: #b9b3ff;
  color: #393181;
  background: #f5f3ff;
}

.booking-card,
html.dark .booking-card {
  border-color: rgba(98, 88, 140, .13);
  color: #172033;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--booking-shadow);
  backdrop-filter: blur(18px);
}

.booking-page .form-label,
html.dark .booking-page .form-label { color: #344054; }

.booking-page .form-control,
.booking-page .form-select,
html.dark .booking-page .form-control,
html.dark .booking-page .form-select {
  border-color: #d8dce7;
  color: #172033;
  background-color: rgba(255, 255, 255, .96);
}

.booking-page .btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #635bff, #7c3aed);
  box-shadow: 0 10px 24px rgba(99, 91, 255, .24);
}

.booking-page .btn-alt-secondary,
.booking-page .btn-alt-primary,
html.dark .booking-page .btn-alt-secondary,
html.dark .booking-page .btn-alt-primary {
  border-color: #d8dce7;
  color: #344054;
  background: rgba(255, 255, 255, .9);
}

@keyframes resca-booking-mesh {
  0% { background-position: center, 0% 0%, 100% 0%, 100% 100%, 0% 100%, center; filter: saturate(1.05) hue-rotate(0deg); }
  50% { background-position: center, 16% 12%, 88% 18%, 80% 86%, 12% 76%, center; filter: saturate(1.22) hue-rotate(5deg); }
  100% { background-position: center, 8% 22%, 76% 4%, 94% 68%, 22% 92%, center; filter: saturate(1.12) hue-rotate(-5deg); }
}

@keyframes resca-booking-stripes { to { background-position: 192px 0; } }

@media (prefers-reduced-motion: reduce) {
  .booking-page::before,
  .booking-page::after { animation: none; }
}

/* Progressive booking flow: keep one decision in focus at a time. */
.booking-grid.is-service-step { display: block; max-width: 680px; margin: 0 auto; }
.booking-step-help { margin: -7px 0 18px; color: var(--booking-muted); }
.booking-grid:not(.is-service-step) .booking-service-option:not(.is-selected) { display: none; }
.booking-grid:not(.is-service-step) .booking-service-option.is-selected { cursor: default; box-shadow: none; }
.booking-change-link { display: inline-flex; align-items: center; margin-top: 12px; font-size: .875rem; font-weight: 700; text-decoration: none; }
.booking-confirmation[data-booking-details] { display: none; grid-template-columns: minmax(0, 1fr); gap: 18px; scroll-margin-top: 16px; }
.is-details-step [data-booking-selection-step] { display: none; }
.booking-confirmation[data-booking-details].is-visible { display: none; }
.is-details-step .booking-confirmation[data-booking-details].is-visible { display: grid; animation: booking-details-in .22s ease-out; }
.booking-confirmation .booking-details { grid-column: 1 / -1; width: 100%; max-width: none; min-width: 0; margin: 0; padding: clamp(16px, 3vw, 26px); overflow: hidden; }
.booking-confirmation .booking-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 2vw, 14px); width: 100%; max-width: none; }
.booking-confirmation .booking-details-grid > * { width: 100%; min-width: 0; }
.booking-confirmation .booking-contact-card .input-group { display: grid; grid-template-columns: 7rem minmax(0, 1fr); width: 100%; min-width: 0; }
.booking-confirmation .booking-contact-card .input-group > .form-select,
.booking-confirmation .booking-contact-card .input-group > .form-control { width: 100%; min-width: 0; max-width: 100%; }
.booking-confirmation .booking-contact-card .input-group > .form-select { padding-left: .75rem; padding-right: 2rem; }
.booking-summary-card { align-self: auto; }
.booking-summary-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--booking-primary); }
.booking-payment { min-width: 0; padding: 0; border: 0; }
.booking-payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.booking-payment-option { position: relative; min-width: 0; margin: 0; cursor: pointer; }
.booking-payment-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.booking-payment-option > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 9px; min-height: 78px; padding: 13px; border: 1px solid var(--booking-border); border-radius: 9px; background: var(--booking-surface); }
.booking-payment-option i { grid-row: 1 / 3; align-self: center; color: var(--booking-primary); text-align: center; }
.booking-payment-option strong,
.booking-payment-option small { min-width: 0; overflow-wrap: anywhere; }
.booking-payment-option small { color: var(--booking-muted); }
.booking-payment-option > input:checked + span { border-color: var(--booking-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--booking-primary) 18%, transparent); }
.booking-payment-option > input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--booking-primary) 25%, transparent); outline-offset: 2px; }
@media (max-width: 767.98px) {
  .booking-progress { max-width: 100%; padding-inline: 10px; }
  .booking-progress-item, .booking-progress-item.is-active, .booking-progress-item.is-complete { min-width: 64px; }
  .booking-progress-item:last-child { min-width: 124px; }
}
@media (max-width: 575.98px) {
  .booking-confirmation { width: 100%; }
  .booking-confirmation .booking-details { border-left-width: 1px; }
  .booking-confirmation .booking-contact-card .form-control,
  .booking-confirmation .booking-contact-card .form-select { font-size: 1rem; }
  .booking-progress { padding-inline: 7px; }
  .booking-progress-item, .booking-progress-item.is-active, .booking-progress-item.is-complete { min-width: 54px; font-size: .67rem; }
  .booking-progress-item:last-child { min-width: 104px; }
  .booking-progress-line { min-width: 12px; margin-inline: -4px; }
  .booking-submit-row { flex-wrap: wrap; gap: 10px; }
  .booking-submit-price { width: 100%; text-align: center; }
}
@keyframes booking-details-in { from { opacity: 0; transform: translateY(8px); } }

.booking-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 22px; align-items: start; }
.booking-workspace-main { min-width: 0; }
.booking-workspace .booking-grid { grid-template-columns: minmax(0, 1fr); }
.booking-workspace .booking-grid.is-service-step { max-width: none; margin: 0; }
.booking-live-summary { position: sticky; top: 20px; min-width: 0; }
.booking-live-summary .booking-review { grid-template-columns: minmax(0, 1fr); }
.booking-live-summary .booking-review > div { border-right: 0; }
.booking-live-summary [hidden] { display: none; }
.booking-live-summary .booking-review-price { flex-wrap: wrap; gap: 8px; }
@media (max-width: 991.98px) {
  .booking-workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .booking-live-summary { position: static; }
}
