:root {
  --primary: #111827;
  --accent: #cf2e2a;
  --accent-dark: #b91c1c;
  --accent-soft: rgba(207, 46, 42, 0.08);
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #047857;
  --error: #b91c1c;
  --info: #1d4ed8;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, #f6f7f9 48%, #eef1f5 100%);
}
button, input, textarea { font: inherit; }
a { color: inherit; }

.booking-page {
  min-height: 100vh;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.booking-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 150px;
  height: 48px;
  text-decoration: none;
}
.brand-mark img,
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 850;
  background: #fff;
}
.back-link:hover { border-color: rgba(207, 46, 42, 0.35); color: var(--accent); }

.intro-block {
  padding: 20px 0 16px;
}
.intro-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 950;
}
.intro-block h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}
.page-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.message-box {
  margin: 0 0 12px;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  border: 1px solid transparent;
  font-size: 0.92rem;
}
.message-box.hidden { display: none; }
.message-box.info { background: #eff6ff; color: var(--info); border-color: #bfdbfe; }
.message-box.success { background: #ecfdf5; color: var(--success); border-color: #a7f3d0; }
.message-box.error { background: #fef2f2; color: var(--error); border-color: #fecaca; }

.selected-offer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
  border: 1px solid #efdca9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  margin-bottom: 16px;
}
.selected-offer-box.hidden { display: none; }
.selected-offer-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr;
  gap: 8px 18px;
  align-items: center;
}
.selected-offer-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.selected-offer-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.selected-offer-main strong {
  font-size: 1.08rem;
  line-height: 1.2;
  white-space: nowrap;
}
.selected-offer-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: var(--accent-soft);
}
.selected-offer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.selected-offer-details span {
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.selected-offer-details small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  margin-bottom: 2px;
}
.selected-offer-details strong {
  display: block;
  font-size: 0.9rem;
}
.selected-offer-note,
.selected-offer-copy h2 { display: none; }
.selected-offer-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.82fr);
  gap: 16px;
  align-items: start;
}
.booking-main,
.booking-sidebar { min-width: 0; }

.booking-step,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.032);
}
.booking-step {
  padding: 16px 18px;
  margin-bottom: 12px;
}
.booking-step:last-child { margin-bottom: 0; }
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  flex: 0 0 auto;
}
.step-header h2 {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: -0.045em;
}
.step-header p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.92rem;
}

.date-input,
.booking-form input,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
  transition: 0.16s ease;
}
.date-input:focus,
.booking-form input:focus,
.booking-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 46, 42, 0.10);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}
.slot-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  min-height: 72px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.16s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.05;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}
.slot-button:hover {
  transform: translateY(-1px);
  border-color: rgba(207, 46, 42, 0.45);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}
.slot-button.selected {
  background: linear-gradient(135deg, var(--accent), #ef4444);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 16px 30px rgba(207, 46, 42, 0.22);
}
.muted-text { margin: 0; color: var(--muted); }

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.booking-form label { display: grid; gap: 6px; }
.booking-form label span {
  font-size: 0.86rem;
  font-weight: 850;
  color: #374151;
}
.booking-form textarea {
  min-height: 52px;
  resize: vertical;
}

.summary-card {
  padding: 18px;
  position: sticky;
  top: 18px;
}
.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.summary-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.045em;
}
.summary-icon { font-size: 1.05rem; }
.summary-rows { display: grid; gap: 0; margin-bottom: 12px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.summary-row dt { color: #374151; font-weight: 800; }
.summary-row dd { margin: 0; text-align: right; font-weight: 900; }
.summary-row .price-value { color: var(--accent); }

.notice-stack { display: grid; gap: 8px; margin: 10px 0 12px; }
.notice-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 15px;
  background: #fffaf7;
  border: 1px solid #f4e4db;
}
.notice-icon { font-size: 1rem; line-height: 1; }
.notice-card strong { display: block; margin-bottom: 2px; font-size: 0.93rem; }
.notice-card p { margin: 0; color: var(--muted); line-height: 1.35; font-size: 0.86rem; }

.submit-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
  transition: 0.18s ease;
}
.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(207, 46, 42, 0.22);
}
.submit-button:disabled { cursor: not-allowed; opacity: 0.5; box-shadow: none; }
.policy-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.summary-benefits {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}
.summary-benefits span {
  position: relative;
  padding-left: 20px;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 800;
}
.summary-benefits span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 950;
}

@media (min-width: 1090px) and (max-height: 820px) {
  .booking-page { padding: 12px; }
  .booking-shell { padding: 18px 20px; }
  .intro-block { padding: 14px 0 12px; }
  .intro-block h1 { font-size: clamp(2rem, 3.1vw, 3.1rem); }
  .selected-offer-box { padding: 12px 14px; margin-bottom: 12px; }
  .booking-step { padding: 13px 16px; margin-bottom: 10px; }
  .step-header { margin-bottom: 9px; }
  .step-header h2 { font-size: 1.2rem; }
  .step-header p { font-size: 0.86rem; }
  .date-input, .booking-form input, .booking-form textarea { padding: 9px 12px; }
  .booking-form { gap: 9px 12px; }
  .booking-form textarea { min-height: 46px; height: 46px; }
  .slot-button { padding: 8px 8px; }
  .summary-card { padding: 15px; }
  .summary-row { padding: 7px 0; font-size: 0.92rem; }
  .notice-card { padding: 9px 10px; }
  .notice-card p { font-size: 0.8rem; }
  .submit-button { min-height: 44px; }
  .summary-benefits { display: none; }
}

@media (max-width: 1080px) {
  .booking-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 760px) {
  .booking-page { padding: 10px; }
  .booking-shell { padding: 16px; border-radius: 22px; }
  .page-header { padding-bottom: 12px; }
  .brand-mark { width: 142px; height: 44px; }
  .back-link { min-height: 36px; padding: 0 12px; font-size: 0.84rem; }
  .intro-block { padding: 16px 0 14px; }
  .intro-block h1 { font-size: 2.25rem; }
  .selected-offer-box { flex-direction: column; align-items: stretch; }
  .selected-offer-copy { grid-template-columns: 1fr; }
  .selected-offer-main strong { white-space: normal; }
  .selected-offer-back { width: 100%; }
  .selected-offer-details span { min-width: 0; flex: 1 1 calc(50% - 6px); }
  .booking-form { grid-template-columns: 1fr; }
}

/* Confirmation page */
.confirmation-shell {
  max-width: 1120px;
}
.confirmation-hero {
  padding: 26px 0 22px;
  text-align: center;
}
.success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 1.7rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(21, 128, 61, 0.12);
}
.confirmation-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}
.confirmation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}
.confirmation-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
  padding: 22px;
}
.confirmation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f7;
}
.confirmation-card-head h2 {
  margin: 4px 0 0;
  font-size: 2rem;
  letter-spacing: -0.06em;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.9rem;
  font-weight: 900;
}
.confirmation-service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #eef2f7;
}
.confirmation-service strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}
.confirmation-service p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.confirmation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.confirmation-details div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfcfd;
}
.confirmation-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 5px;
}
.confirmation-details dd {
  margin: 0;
  font-weight: 900;
  color: var(--text);
}
.confirmation-actions {
  position: sticky;
  top: 18px;
}
.confirmation-actions h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}
.confirmation-actions > p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.secondary-action.light {
  background: #fff;
  color: #374151;
  border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .confirmation-layout {
    grid-template-columns: 1fr;
  }
  .confirmation-actions {
    position: static;
  }
}
@media (max-width: 640px) {
  .confirmation-hero {
    text-align: left;
  }
  .success-mark {
    margin-left: 0;
  }
  .confirmation-card-head {
    flex-direction: column;
  }
  .confirmation-details {
    grid-template-columns: 1fr;
  }
}


.slot-start {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}
.slot-end {
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.slot-button.selected .slot-end {
  color: rgba(255, 255, 255, 0.82);
}


/* Booking Core presentation reused; DEV catalog selection and disabled steps. */
.brand-wordmark { width: auto; min-width: 190px; gap: 8px; line-height: 1.1; font-weight: 900; font-size: 0.9rem; letter-spacing: -0.045em; }
.brand-wordmark strong { color: var(--accent); }
.brand-initial { flex: 0 0 auto; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 1.2rem; }
.selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.field-label { display: grid; gap: 7px; color: #374151; font-size: 0.86rem; font-weight: 850; min-width: 0; }
.field-label select { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); padding: 11px 13px; font: inherit; font-weight: 650; }
.field-label select:focus-visible { outline: 3px solid rgba(207,46,42,.18); outline-offset: 1px; border-color: var(--accent); }
.field-label select:disabled { background: #f6f7f9; color: #768091; cursor: not-allowed; }
#vehicleField { grid-column: 1 / -1; }
#vehicleField[hidden] { display: none; }
.selected-offer-box { align-items: flex-start; margin: 10px 0; }
.selected-offer-copy { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
.selected-offer-main strong { white-space: normal; }
.price-disclaimer { font-size: 0.81rem; line-height: 1.55; }
.unavailable-step { background: #fafbfc; }
.muted-step-number { background: #aeb6c2; }
.unavailable-step .date-input, .unavailable-step input:disabled, .unavailable-step textarea:disabled { background: #f0f1f4; color: #808997; cursor: not-allowed; }
.unavailable-step .date-input { margin: 8px 0 13px; }
.selected-offer-details span { min-width: 130px; }
.message-box { margin-bottom: 16px; font-weight: 650; }
.summary-row dd { max-width: 62%; overflow-wrap: anywhere; }
@media (max-width: 760px) { .selection-grid { grid-template-columns: 1fr; } #vehicleField { grid-column: auto; } .brand-wordmark { min-width: 0; width: auto; font-size: 0.77rem; } .brand-initial { width: 34px; height: 34px; } }
@media (max-width: 410px) { .page-header { align-items: flex-start; } .brand-wordmark { max-width: 168px; } .back-link { padding: 7px 9px; text-align: center; } .booking-shell { padding: 12px; } .booking-step { padding: 14px; } }
