/* ───────────────────────── Booking Modal ───────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,7,15,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 760px; height: 88vh; max-height: 88vh;
  background: #0f1929;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #131f37 0%, #0f1929 100%);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.modal-head .title {
  display: flex; flex-direction: column; gap: 2px;
}
.modal-head .title .small {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-dim);
}
.modal-head .title .big {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; color: #fff;
}
.modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-mute);
  transition: all 0.2s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.modal-stepper {
  padding: 22px 32px;
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  overflow-x: auto;
}
.step-pill {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: max-content;
}
.step-pill .step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 13px; font-weight: 700;
  transition: all 0.25s;
  flex-shrink: 0;
}
.step-pill .step-label {
  font-size: 13px; font-weight: 500; color: var(--text-mute);
  white-space: nowrap;
  transition: color 0.25s;
}
.step-pill.active .step-circle {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.step-pill.active .step-label { color: #fff; }
.step-pill.done .step-circle {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.step-pill.done .step-label { color: #cfd9eb; }
.step-connector {
  height: 1.5px; background: var(--line-strong);
  flex: 0 1 40px; min-width: 24px;
  transition: background 0.25s;
}
.step-connector.done { background: var(--blue); }

.wizard {
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden; min-height: 0;
}
.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,0.35) transparent;
}
.modal-body::-webkit-scrollbar {
  width: 4px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,0.35);
  border-radius: 100px;
  transition: background 0.2s;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(59,130,246,0.7);
}
.step-pane { display: none; }
.step-pane.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-pane h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; color: #fff;
  margin-bottom: 8px;
}
.step-pane .step-sub {
  font-size: 13px; color: var(--text-mute); margin-bottom: 28px;
}

.row { display: grid; gap: 16px; margin-bottom: 16px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 2fr 1fr 1fr; }

.modal .field { margin-bottom: 0; }
.modal .input, .modal .textarea, .modal .select {
  background: #0a1224;
  border-color: var(--line-strong);
}
.input-suffix {
  position: relative;
}
.input-suffix .suffix {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px; color: var(--text-dim);
  font-weight: 500; letter-spacing: 0.05em;
  pointer-events: none;
}
.input-suffix .input { padding-right: 50px; }
.checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #cfd9eb; cursor: pointer;
  padding: 10px 0;
  user-select: none;
}
.checkbox input { display: none; }
.checkbox .box {
  width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: #0a1224;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.checkbox input:checked ~ .box {
  background: var(--blue); border-color: var(--blue);
}
.checkbox .box i {
  font-size: 11px; color: #fff;
  opacity: 0; transform: scale(0.6);
  transition: all 0.15s;
}
.checkbox input:checked ~ .box i { opacity: 1; transform: scale(1); }

.char-counter {
  font-size: 11px; color: var(--text-dim);
  text-align: right; margin-top: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Pallet selector */
.pallet-group {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pallet-btn {
  padding: 12px 16px;
  background: #0a1224;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.pallet-btn:hover { color: #fff; border-color: var(--text-mute); }
.pallet-btn.active {
  background: rgba(37,99,235,0.15);
  border-color: var(--blue-bright);
  color: #fff;
}

/* Number stepper */
.num-stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #0a1224;
}
.num-stepper button {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #cfd9eb;
  font-size: 16px;
  transition: background 0.15s;
}
.num-stepper button:hover { background: rgba(59,130,246,0.15); color: #fff; }
.num-stepper input {
  width: 70px; text-align: center;
  background: transparent; border: none; color: #fff;
  font-size: 15px; font-weight: 600;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  -moz-appearance: textfield;
}
.num-stepper input::-webkit-outer-spin-button,
.num-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* LDM bar */
.ldm-card {
  background: #0a1224;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 18px;
}
.ldm-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.ldm-label { font-size: 13px; color: var(--text-mute); }
.ldm-value {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; color: #fff;
}
.ldm-value .unit { font-size: 13px; color: var(--blue-bright); margin-left: 4px; }
.ldm-bar {
  height: 8px; border-radius: 100px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.ldm-bar .fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 100%);
  border-radius: 100px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
}
.ldm-foot {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  background: rgba(10,18,36,0.5);
  transition: all 0.2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--blue-bright);
  background: rgba(37,99,235,0.06);
}
.dropzone i {
  font-size: 24px; color: var(--blue-bright);
  margin-bottom: 10px;
}
.dropzone .dz-text { font-size: 14px; color: #cfd9eb; }
.dropzone .dz-sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.dz-files {
  display: grid; gap: 6px; margin-top: 10px;
}
.dz-file {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 6px;
  font-size: 12px; color: #cfd9eb;
}
.dz-file i { color: var(--blue-bright); }
.dz-file .rm {
  margin-left: auto; color: var(--text-dim);
  cursor: pointer; padding: 2px 6px;
}
.dz-file .rm:hover { color: #ef4444; }

/* Summary */
.summary-card {
  background: #0a1224;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.summary-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-block:last-child { border-bottom: none; }
.summary-block .sb-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--blue-bright); font-weight: 600;
  margin-bottom: 6px;
}
.summary-block .sb-content {
  font-size: 14px; color: #d8dfee; line-height: 1.55;
}
.summary-block .sb-content .muted { color: var(--text-dim); }

.info-box {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 10px;
  margin: 20px 0;
}
.info-box i {
  color: var(--blue-bright); font-size: 18px; margin-top: 2px;
}
.info-box .ib-text { font-size: 13px; color: #cfd9eb; line-height: 1.55; }

.modal-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px;
  background: #0c1424;
  flex-shrink: 0;
}
.modal-footer .left, .modal-footer .right { display: flex; gap: 10px; }
.modal-footer .progress-text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.1em;
  align-self: center;
}

/* Success */
.success-screen {
  padding: 48px 32px; text-align: center;
}
.success-check {
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(34,197,94,0.1);
  border: 2px solid rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-check i { font-size: 40px; color: #22c55e; }
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.success-screen h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 30px; color: #fff;
  margin-bottom: 12px;
}
.success-screen p {
  color: var(--text-mute); font-size: 15px;
  max-width: 460px; margin: 0 auto 28px;
}
.order-num {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: #cfd9eb;
  margin-bottom: 28px;
}
.order-num strong { color: var(--blue-bright); }

@media (max-width: 768px) {
  .modal-backdrop { padding: 0; }
  .modal { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .modal-head, .modal-body, .modal-footer, .modal-stepper { padding-left: 20px; padding-right: 20px; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .step-pill .step-label { display: none; }
  .step-connector { flex: 1; }
}
