:root {
  --booking-ink: #111315;
  --booking-muted: #6d7175;
  --booking-line: #dcdede;
  --booking-soft: #f7f7f6;
  --booking-dark: #151719;
  --booking-dark-soft: #292c2e;
}

.booking-preview-body {
  margin: 0;
  background: #fff;
  color: var(--booking-ink);
  overflow: auto;
  min-height: 100vh;
}

.booking-preview-body .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.booking-preview-page {
  min-height: calc(100vh - 84px);
  background: #fff;
}

.preview-banner {
  padding: 9px 24px;
  background: #eee;
  border-bottom: 1px solid #d8d8d8;
  text-align: center;
  font-size: 11px;
  color: #555;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 118px);
  background: #fff;
}

.booking-main {
  padding: 30px clamp(26px, 4vw, 62px) 56px;
  min-width: 0;
}

.booking-brandline {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--booking-line);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.025em;
}

.booking-intro {
  padding: 22px 0 12px;
}

.booking-intro h1 {
  margin: 0 0 6px;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.035em;
}

.booking-intro p {
  margin: 0;
  color: var(--booking-muted);
  font-size: 13px;
}

.booking-flow {
  display: grid;
}

.flow-step {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  column-gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #ededed;
}

.flow-step[hidden] {
  display: none !important;
}

.flow-step-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--booking-dark);
  color: #fff;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.step-label {
  padding-top: 3px;
  font-size: 14px;
  font-weight: 650;
}

.step-hint {
  margin-top: 7px;
  color: var(--booking-muted);
  font-size: 12px;
  line-height: 1.45;
}

.flow-step-content {
  min-width: 0;
}

.step-complete-row {
  display: none;
  min-height: 54px;
  border: 1px solid var(--booking-line);
  border-radius: 10px;
  padding: 11px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fbfbfa;
}

.flow-step.is-complete .step-live {
  display: none;
}

.flow-step.is-complete .step-complete-row {
  display: flex;
}

.complete-value {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.edit-step {
  border: 0;
  padding: 6px 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: 500 12px Manrope, Arial, sans-serif;
  color: #26282a;
  cursor: pointer;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 92px;
  border: 1px solid #cfd1d2;
  border-radius: 9px;
  padding: 15px 16px;
  background: #fff;
  display: grid;
  grid-template-columns: 20px 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.service-card:hover {
  border-color: #888c8f;
}

.service-card.is-selected {
  border: 2px solid #17191b;
  padding: 14px 15px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}

.service-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-check {
  width: 19px;
  height: 19px;
  border: 1px solid #b6b9bc;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: transparent;
}

.service-card.is-selected .service-check {
  background: #17191b;
  border-color: #17191b;
  color: #fff;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 28px;
  filter: grayscale(1);
}

.service-name {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.service-price {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--booking-muted);
  line-height: 1.35;
}

.operator-callout {
  margin-top: 12px;
  border: 1px solid #d7d9da;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.45;
}

.operator-callout[hidden] {
  display: none;
}

.field-error {
  margin: 8px 0 0;
  min-height: 16px;
  color: #982f2f;
  font-size: 11px;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.field-block[hidden] {
  display: none;
}

.field-block label,
.day-field label,
.optional-panel label,
.contact-grid label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 650;
}

.counter {
  height: 47px;
  border: 1px solid #d5d7d8;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.counter button {
  height: 45px;
  border: 0;
  background: #fff;
  color: #5c6063;
  font-size: 22px;
  cursor: pointer;
}

.counter button:hover {
  background: #f5f5f4;
}

.counter output {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.compact-select,
.booking-input,
.booking-textarea {
  width: 100%;
  border: 1px solid #d5d7d8;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  color: #17191b;
  font: 13px Manrope, Arial, sans-serif;
  outline: none;
}

.compact-select,
.booking-input {
  min-height: 47px;
}

.booking-textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.compact-select:focus,
.booking-input:focus,
.booking-textarea:focus {
  border-color: #191b1d;
}

.toggle-line {
  margin-top: 14px;
  min-height: 50px;
  border: 1px solid #d5d7d8;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  font-size: 12px;
}

.toggle-line input,
.inline-check input,
.terms-line input {
  width: 17px;
  height: 17px;
  accent-color: #17191b;
  flex: 0 0 auto;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.continue-button,
.submit-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  background: #17191b;
  color: #fff;
  font: 650 12px Manrope, Arial, sans-serif;
  cursor: pointer;
}

.continue-button:hover,
.submit-button:hover {
  background: #26292c;
}

.inline-options {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 11px;
}

.inline-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}

.day-grid {
  display: grid;
  gap: 8px;
}

.day-card {
  display: grid;
  grid-template-columns: 54px 170px minmax(180px, .9fr) minmax(230px, 1.35fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #d9dbdc;
  border-radius: 9px;
  background: #fff;
}

.day-number {
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
}

.day-field {
  min-width: 0;
}

.day-field label {
  color: #44484b;
}

.shared-fields {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(240px, 1.4fr);
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d9dbdc;
  border-radius: 9px;
  background: #fafafa;
}

.consecutive-dates {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11px;
  color: #666a6d;
}

.date-chip {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f0f0ef;
}

.optional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.optional-panel {
  border: 1px solid #d8dadb;
  border-radius: 9px;
  padding: 13px;
  background: #fff;
}

.file-drop {
  border: 1px dashed #cbd0d2;
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  color: #62666a;
  font-size: 11px;
  line-height: 1.5;
}

.file-drop input {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 11px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.terms-line {
  margin-top: 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
}

.submit-row {
  display: grid;
  grid-template-columns: 1fr 235px;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.security-note {
  color: var(--booking-muted);
  font-size: 10px;
}

.submit-button {
  width: 100%;
}

.booking-summary {
  position: sticky;
  top: 84px;
  align-self: start;
  min-height: calc(100vh - 84px);
  padding: 34px 28px 42px;
  background: linear-gradient(145deg, #141719 0%, #1b1e20 100%);
  color: #fff;
}

.booking-summary h2 {
  margin: 0 0 22px;
  font-size: 25px;
  letter-spacing: -.03em;
}

.summary-status {
  padding: 14px 15px;
  border-radius: 9px;
  background: #2b2e30;
  margin-bottom: 18px;
}

.summary-eyebrow {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 10px;
  color: #d5d5d5;
}

.summary-status strong {
  font-size: 13px;
}

.summary-section {
  padding: 17px 0;
  border-top: 1px solid #474b4d;
}

.summary-heading {
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 700;
}

.summary-service {
  margin: 11px 0;
}

.summary-service-top,
.summary-pair {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.summary-service-rate,
.summary-muted {
  margin-top: 4px;
  color: #c9ccce;
  font-size: 11px;
  line-height: 1.45;
}

.summary-pair + .summary-pair {
  margin-top: 8px;
}

.summary-dates {
  color: #e4e4e4;
  font-size: 12px;
  line-height: 1.8;
}

.summary-scope {
  color: #e4e4e4;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.summary-total-label {
  color: #c9ccce;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.summary-total {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -.035em;
}

.summary-cost-note {
  margin-top: 4px;
  color: #c9ccce;
  font-size: 10px;
  line-height: 1.45;
}

.summary-warning {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 9px;
  background: #2a2d2f;
  color: #dedede;
  font-size: 11px;
  line-height: 1.5;
}

.summary-warning[hidden] {
  display: none;
}

.preview-success {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #cfd2d3;
  border-radius: 9px;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.5;
}

.preview-success[hidden] {
  display: none;
}

@media (max-width: 1050px) {
  .booking-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .flow-step {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .day-card {
    grid-template-columns: 45px 150px minmax(150px, 1fr);
  }
  .day-card .scope-field {
    grid-column: 3;
  }
}

@media (max-width: 850px) {
  .booking-preview-body .site-header {
    position: relative;
  }
  .booking-shell {
    grid-template-columns: 1fr;
  }
  .booking-summary {
    position: static;
    min-height: 0;
    order: 2;
  }
  .flow-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .crew-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .booking-main {
    padding: 22px 17px 38px;
  }
  .booking-brandline {
    font-size: 17px;
  }
  .service-grid,
  .crew-grid,
  .shared-fields,
  .optional-grid,
  .contact-grid,
  .submit-row {
    grid-template-columns: 1fr;
  }
  .day-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .day-card .day-field,
  .day-card .scope-field {
    grid-column: 2;
  }
  .inline-options {
    justify-content: flex-start;
  }
  .booking-summary {
    padding: 27px 20px 34px;
  }
}
