.booking-shell { width: min(980px, 100%); margin: 0 auto; }

.booking-heading { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.booking-heading h1 { margin-bottom: 14px; font-size: clamp(2.35rem, 5vw, 4rem); }
.booking-heading p { margin: 0 auto; color: var(--muted); font-size: 1.06rem; }

.booking-progress {
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}
.booking-progress span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.booking-progress b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--mint); font-size: .7rem; }
.booking-progress span:first-child b { color: #fff; background: var(--green); }
.booking-progress i { width: clamp(14px, 5vw, 62px); height: 1px; background: var(--line); }

.booking-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 28px;
  padding: 0;
  overflow: hidden;
}
.booking-summary > div { position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 12px; min-height: 98px; padding: 20px; }
.booking-summary > div:not(:last-child) { border-right: 1px solid var(--line); }
.booking-summary .summary-icon { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--mint); font-size: 1rem; font-weight: 850; }
.booking-summary > div > span:not(.summary-icon) { align-self: end; color: var(--muted); font-size: .75rem; font-weight: 700; }
.booking-summary strong { align-self: start; font-size: .97rem; line-height: 1.3; }

.booking-form { display: grid; gap: 18px; }
.booking-form .card { margin: 0; }
.form-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: clamp(22px, 4vw, 34px); }
.form-step::after { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; border-radius: 18px 0 0 18px; background: linear-gradient(var(--green), #35a57f); opacity: .85; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(11, 107, 82, .18); font-size: 1.05rem; font-weight: 850; }
.step-content { min-width: 0; }
.step-content h2 { margin: 4px 0 7px; }
.step-help { margin: 0 0 24px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { margin-bottom: 17px; }
.field > label { display: block; margin-bottom: 6px; }
.field small { display: block; margin-top: 5px; color: var(--muted); }
.checkbox-field { display: flex; align-items: flex-start; gap: 8px; padding: 13px 14px; border-radius: 10px; background: #f8faf9; }
.checkbox-field label { margin: 0; font-weight: 550; }

.document-type-panel { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.document-type-panel > h3 { margin-bottom: 17px; }
.capture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.capture-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #f9fbfa; transition: border-color .18s ease, box-shadow .18s ease; }
.capture-card.captured { border-color: #6fc4a3; background: #f6fcf9; box-shadow: 0 0 0 3px rgba(11, 107, 82, .08); }
.capture-preview-wrap { height: 220px; display: grid; place-items: center; overflow: hidden; margin-bottom: 13px; border: 2px dashed #afc4ba; border-radius: 12px; color: var(--muted); background: linear-gradient(145deg, #edf3f0, #e4ece8); font-weight: 750; }
.capture-preview-wrap img { width: 100%; height: 100%; object-fit: contain; background: #21312b; }
.camera-button { width: 100%; }
.capture-complete { display: block; margin-top: 9px; color: var(--green); font-size: .86rem; font-weight: 800; text-align: center; }

.camera-requirements { position: relative; display: grid; gap: 3px; margin-top: 20px; padding: 15px 16px 15px 50px; border: 1px solid #b9dfce; border-radius: 12px; background: var(--mint); }
.camera-requirements::before { content: "◎"; position: absolute; top: 16px; left: 17px; width: 24px; height: 24px; display: grid; place-items: center; color: var(--green); font-weight: 900; }
.camera-requirements span { color: var(--ink-soft); font-size: .85rem; }
.submit-booking { min-width: 220px; min-height: 52px; margin-top: 8px; font-size: 1rem; }
.camera-form-error { margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; color: var(--danger); background: var(--danger-pale); font-weight: 800; }

.camera-modal { position: fixed; z-index: 1000; inset: 0; overflow: auto; padding: 18px; background: rgba(4, 15, 12, .94); backdrop-filter: blur(8px); }
.camera-modal[hidden] { display: none; }
.camera-dialog { width: min(760px, 100%); margin: auto; padding: 19px; border: 1px solid #385148; border-radius: 22px; color: #fff; background: #101b17; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.camera-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.camera-dialog-head h2 { margin: 3px 0 14px; color: #fff; }
.camera-close { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #14251f; background: #fff; font-size: 1.8rem; cursor: pointer; }
.camera-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; background: #000; }
.camera-stage video { width: 100%; height: 100%; object-fit: cover; }
.document-frame { position: absolute; top: 20%; right: 7%; left: 7%; aspect-ratio: 1.586 / 1; border: 3px solid #fff; border-radius: 13px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.document-frame::before, .document-frame::after { content: ""; position: absolute; width: 38px; height: 38px; }
.document-frame::before { top: -4px; left: -4px; border-top: 5px solid #50e3b5; border-left: 5px solid #50e3b5; }
.document-frame::after { right: -4px; bottom: -4px; border-right: 5px solid #50e3b5; border-bottom: 5px solid #50e3b5; }
.document-frame span { position: absolute; right: 0; bottom: -40px; left: 0; font-weight: 750; text-align: center; text-shadow: 0 1px 3px #000; }
.camera-status { min-height: 48px; margin: 0; padding: 11px 0; color: #d6e6e0; }
.camera-status.error { color: #ff9b9b; }
.camera-actions { display: flex; justify-content: flex-end; gap: 12px; }
.camera-shutter { min-width: 190px; }
.camera-open { overflow: hidden; }

.queue-badge { color: #76500a; background: #fff2cc; }
.queue-grid { display: grid; gap: 20px; }
.queue-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); gap: 28px; padding: 28px; }
.queue-customer { min-width: 0; }
.queue-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.queue-total { color: var(--ink); font-size: 1.05rem; font-weight: 850; }
.queue-card h2 { margin: 18px 0 13px; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.contact-chips a { padding: 7px 11px; border: 1px solid #b9dfce; border-radius: 99px; color: var(--green-dark); background: var(--mint); font-size: .79rem; font-weight: 750; text-decoration: none; }
.queue-facts { display: grid; grid-template-columns: 100px 1fr; margin-bottom: 8px; }
.queue-facts dt, .queue-facts dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.queue-facts dd { margin: 0; }
.queue-documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.queue-document { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); background: #f7faf8; text-decoration: none; }
.queue-document img { width: 100%; height: 150px; display: block; object-fit: contain; background: #26352f; }
.queue-document small { display: block; padding: 7px 9px; font-weight: 700; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.queue-reject { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.queue-reject textarea { min-height: 74px; }
.queue-empty { padding: 45px; text-align: center; }
.history-heading { margin-top: 52px; }

@media (max-width: 800px) {
  .booking-summary, .form-grid.two, .form-grid.three, .capture-grid, .queue-card { grid-template-columns: 1fr; }
  .booking-summary > div:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
  .booking-summary > div { min-height: 86px; }
  .form-step { grid-template-columns: 1fr; }
  .form-step::after { width: 100%; height: 4px; border-radius: 15px 15px 0 0; }
  .step-number { width: 36px; height: 36px; border-radius: 11px; }
  .queue-reject { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .booking-progress { justify-content: space-between; gap: 4px; font-size: .68rem; }
  .booking-progress span { display: grid; justify-items: center; gap: 3px; }
  .booking-progress i { min-width: 8px; }
  .capture-preview-wrap { height: 190px; }
  .camera-modal { padding: 0; }
  .camera-dialog { min-height: 100dvh; border: 0; border-radius: 0; }
  .camera-stage { aspect-ratio: 3 / 4; }
  .document-frame { top: 31%; right: 4%; left: 4%; }
  .camera-actions .button { flex: 1; padding-inline: 12px; }
  .queue-card { padding: 20px; }
  .queue-documents { grid-template-columns: 1fr; }
  .queue-topline { align-items: flex-start; flex-direction: column; }
}
