/* v3.8.0 */
/* ═══ Senders Booking Widget — sbw-widget.css v6.0 ═══════════════════════
   Fresh rewrite. Brand: Navy #002496 | Yellow #FFD41C | Font: DM Sans/Inter
   ════════════════════════════════════════════════════════════════════════ */

/* ── Google Places autocomplete ──────────────────────────────────────────── */
.pac-container {
  z-index: 9999999 !important;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,36,150,0.15);
  border: 1.5px solid #d6e4f7;
  font-family: 'DM Sans','Inter',sans-serif;
  overflow: hidden;
}
.pac-item { padding: 10px 16px; font-size: 13.5px; cursor: pointer; }
.pac-item:hover { background: #eef3ff; }
.pac-item-query { font-weight: 700; color: #111827; }
.pac-matched { color: #002496; }

/* ── Base container ──────────────────────────────────────────────────────── */

/* ── Elementor container overrides — force full-width layout ── */
.elementor-element-sbw-book-sec {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  min-height: 100vh !important;
}
.elementor-element-sbw-book-sec > .elementor-widget-container,
.elementor-element-sbw-book-wgt > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}
/* ── Outer wrapper: constrain widget width, center on wide screens ── */
.sbw-outer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'DM Sans','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  -webkit-font-smoothing: antialiased;
  background: transparent;
}

.sbw-root {
  width: 100%;
  background: #f0f4fb;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,36,150,0.10);
}

/* ── Page system ─────────────────────────────────────────────────────────── */
.sbw-page {
  display: none;
  flex-direction: column;
}
.sbw-page.sbw-active { display: flex; }

/* ── Step progress bar ───────────────────────────────────────────────────── */
.sbw-steps {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e8edf5;
}
.sbw-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sbw-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
}
.sbw-step-num svg { width: 13px; height: 13px; }
.sbw-step span {
  font-size: 12px; font-weight: 500;
  color: #94a3b8; white-space: nowrap;
}
.sbw-step.s-active .sbw-step-num { background: #002496; color: #fff; box-shadow: 0 0 0 4px rgba(0,36,150,0.12); }
.sbw-step.s-active span          { color: #002496; font-weight: 700; }
.sbw-step.s-done .sbw-step-num  { background: #002496; color: #fff; }
.sbw-step.s-done span            { color: #002496; }
.sbw-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  border-radius: 2px;
  transition: background 0.25s;
}
.sbw-step-line.s-done { background: #002496; }

/* ── Scroll body ─────────────────────────────────────────────────────────── */
.sbw-body {
  padding: 20px 16px;
  overflow-y: visible;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.sbw-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0,36,150,0.06);
  padding: 18px 16px;
  margin-bottom: 14px;
}
.sbw-card-label {
  font-size: 11px; font-weight: 700;
  color: #9ca3af; letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Address rows ────────────────────────────────────────────────────────── */
.sbw-addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.sbw-addr-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sbw-addr-icon svg { width: 18px; height: 18px; }
.sbw-addr-icon.pickup { background: #eef2ff; }
.sbw-addr-icon.drop   { background: #f0fdf4; }
.sbw-addr-field { flex: 1; min-width: 0; }
.sbw-addr-label {
  font-size: 10px; font-weight: 700;
  color: #9ca3af; letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.sbw-addr-input {
  width: 100%;
  border: none; outline: none;
  font-size: 14.5px; font-weight: 500;
  color: #111827; background: transparent;
  padding: 0; font-family: inherit;
}
.sbw-addr-input::placeholder { color: #c4cad6; font-weight: 400; }

/* ── Pin button ──────────────────────────────────────────────────────────── */
.sbw-pin-btn {
  display: flex; align-items: center; gap: 5px;
  background: #f0f4fb;
  border: 1.5px solid #d1d9f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px; font-weight: 600;
  color: #002496; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  align-self: center;
  transition: background 0.15s;
  font-family: inherit;
}
.sbw-pin-btn svg { width: 12px; height: 12px; }
.sbw-pin-btn:hover { background: #dde6f8; }

/* ── Divider / swap ──────────────────────────────────────────────────────── */
.sbw-divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.sbw-divider-line {
  flex: 1; height: 1px;
  background: #f1f5f9;
}
.sbw-swap-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #f0f4fb;
  border: 1.5px solid #d1d9f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
  font-family: inherit;
}
.sbw-swap-btn svg { width: 13px; height: 13px; color: #002496; }
.sbw-swap-btn:hover { background: #dde6f8; }

/* ── Package / Payment choice grid ──────────────────────────────────────── */
.sbw-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sbw-choice {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 14px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.sbw-choice svg { width: 20px; height: 20px; color: #94a3b8; transition: color 0.2s; }
.sbw-choice-name { font-size: 13px; font-weight: 700; color: #374151; }
.sbw-choice-sub  { font-size: 11px; color: #9ca3af; }
.sbw-choice.s-active {
  border-color: #002496;
  background: #eef2ff;
}
.sbw-choice.s-active svg        { color: #002496; }
.sbw-choice.s-active .sbw-choice-name { color: #002496; }
.sbw-choice:hover:not(.s-active) { border-color: #a5b4fc; }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.sbw-field { margin-bottom: 14px; }
.sbw-field-label {
  font-size: 12px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
  display: block;
}
.sbw-field-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  color: #111827; background: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.sbw-field-input:focus { border-color: #002496; }
.sbw-field-input::placeholder { color: #c4cad6; font-weight: 400; }
.sbw-notes { resize: none; min-height: 64px; }

/* ── Phone row (input + send OTP button side by side) ────────────────────── */
.sbw-phone-row {
  display: flex; gap: 8px; align-items: stretch;
}
.sbw-phone-input { flex: 1; }
.sbw-otp-send-btn {
  padding: 0 16px;
  background: #002496; color: #fff;
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: opacity 0.2s;
  flex-shrink: 0;
}
.sbw-otp-send-btn:hover { opacity: 0.88; }
.sbw-otp-send-btn:disabled { opacity: 0.5; cursor: default; }

/* ── OTP panel ───────────────────────────────────────────────────────────── */
.sbw-otp-panel { display: none; }
.sbw-otp-card { border: 2px solid #FFD41C !important; }
.sbw-otp-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.sbw-otp-icon {
  width: 40px; height: 40px;
  background: #FFD41C;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sbw-otp-icon svg { width: 18px; height: 18px; }
.sbw-otp-title { font-size: 14px; font-weight: 700; color: #002496; }
.sbw-otp-sub   { font-size: 12px; color: #6b7280; margin-top: 2px; }
.sbw-otp-row {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.sbw-otp-input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 22px; font-weight: 700;
  letter-spacing: 6px; text-align: center;
  font-family: inherit; outline: none;
  color: #111827;
  transition: border-color 0.2s;
}
.sbw-otp-input:focus { border-color: #002496; }
.sbw-otp-verify-btn {
  padding: 0 18px;
  background: #002496; color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.2s;
}
.sbw-otp-verify-btn:hover { opacity: 0.88; }
.sbw-otp-resend {
  background: none; border: none;
  font-size: 12px; color: #002496;
  font-weight: 600; cursor: pointer;
  font-family: inherit; padding: 0;
  text-decoration: underline;
}

/* ── Bottom bar ──────────────────────────────────────────────────────────── */
.sbw-bottom-bar {
  background: #fff;
  border-top: 1px solid #e8edf5;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sbw-fare-info { flex: 1; }
.sbw-fare-label { font-size: 11px; color: #9ca3af; font-weight: 500; }
.sbw-fare-row   { display: flex; align-items: baseline; gap: 8px; }
.sbw-fare-amount{ font-size: 24px; font-weight: 800; color: #002496; line-height: 1; }
.sbw-fare-dist  { font-size: 13px; font-weight: 600; color: #6b7280; }
.sbw-fare-note  { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.sbw-bottom-two { justify-content: space-between; }

/* ── CTA button ──────────────────────────────────────────────────────────── */
.sbw-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #002496; color: #fff;
  border: none; border-radius: 12px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.2s; white-space: nowrap;
}
.sbw-cta-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sbw-cta-btn:hover { opacity: 0.88; }
.sbw-cta-btn:disabled { opacity: 0.55; cursor: default; }

/* ── Back button ─────────────────────────────────────────────────────────── */
.sbw-back-btn {
  display: flex; align-items: center; gap: 6px;
  background: #f0f4fb; color: #002496;
  border: 1.5px solid #d1d9f0;
  border-radius: 12px; padding: 14px 18px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.sbw-back-btn svg { width: 15px; height: 15px; }
.sbw-back-btn:hover { background: #dde6f8; }

/* ── Review page ─────────────────────────────────────────────────────────── */
.sbw-review-route { padding: 4px 0; }
.sbw-rr-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 6px 0;
}
.sbw-rr-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0; margin-top: 3px;
}
.sbw-rr-dot.pickup { background: #002496; }
.sbw-rr-dot.drop   { background: #16a34a; }
.sbw-rr-vline {
  width: 2px; height: 20px;
  background: #e2e8f0;
  margin-left: 5px; margin-right: 17px;
  border-radius: 2px;
}
.sbw-rr-text { font-size: 14px; font-weight: 500; color: #111827; line-height: 1.4; }
.sbw-review-rows { display: flex; flex-direction: column; gap: 0; }
.sbw-rv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}
.sbw-rv-row span   { color: #6b7280; }
.sbw-rv-row strong { color: #111827; font-weight: 600; text-align: right; max-width: 60%; }
.sbw-rv-fare span, .sbw-rv-fare strong { font-size: 16px; font-weight: 800; color: #002496; }

/* ── Success page ────────────────────────────────────────────────────────── */
.sbw-success-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px; gap: 16px; text-align: center;
}
.sbw-success-icon {
  width: 72px; height: 72px;
  background: #002496;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(0,36,150,0.1);
}
.sbw-success-icon svg { width: 34px; height: 34px; }
.sbw-success-title { font-size: 22px; font-weight: 800; color: #111827; }
.sbw-success-id    {
  background: #FFD41C; color: #002496;
  font-size: 18px; font-weight: 800;
  padding: 8px 20px; border-radius: 10px;
  letter-spacing: 1px;
}
.sbw-success-msg   { font-size: 14px; color: #6b7280; line-height: 1.5; max-width: 280px; }

/* ── Map modal ───────────────────────────────────────────────────────────── */
.sbw-map-modal {
  position: fixed;
  inset: 0; z-index: 99999;
  background: #fff;
  display: none;
  flex-direction: column;
}
.sbw-map-modal.sbw-open { display: flex; }
.sbw-map-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #002496;
  flex-shrink: 0;
}
.sbw-map-title {
  font-size: 15px; font-weight: 700; color: #fff;
}
.sbw-map-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.sbw-map-close svg { width: 16px; height: 16px; color: #fff; }
.sbw-map-container {
  flex: 1;
  width: 100%;
  min-height: 200px;
}
.sbw-map-bottombar {
  background: #fff;
  padding: 14px 16px;
  border-top: 1px solid #e8edf5;
  flex-shrink: 0;
}
.sbw-map-addr {
  font-size: 14px; font-weight: 500; color: #374151;
  margin-bottom: 12px; line-height: 1.4;
  min-height: 20px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .sbw-choice-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sbw-choice { padding: 12px 6px; }
  .sbw-cta-btn { padding: 13px 16px; font-size: 14px; }
  .sbw-fare-amount { font-size: 20px; }
  .sbw-addr-input { font-size: 14px; }
}

@media (min-width: 640px) {
  .sbw-body { padding: 24px 24px; }
  .sbw-bottom-bar { padding: 16px 24px; }
  .sbw-steps { padding: 16px 24px; }
  .sbw-choice-grid { grid-template-columns: repeat(4,1fr); }
}

/* ── Confirm button (inherits sbw-cta-btn) ── */
.sbw-confirm-btn { background: #002496; }
