body {
  overflow-x: hidden;
  align-items: stretch;
}

/* Inline route error message (replaces alert popup) */
.route-error-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff0f0;
  border: 1px solid #fca5a5;
  color: #c0392b;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }
}

#ride-app {
  display: flex;
  width: 100%;
  max-width: 1260px;
  gap: 40px;

  margin: auto;
  padding: 90px 0;
  position: relative;
}

#map-panel {
  width: 50%;
  flex-shrink: 0;
}

#map {
  width: 100%;
  height: 100%;
}

#right-panel {
  width: 50%;
  height: 100%;
  overflow-y: auto;
  padding: 30px 54px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}

/* View 1 heading */
.booking-heading {
  font-size: 45px;
  text-align: right;
  margin-bottom: 70px;
  color: #222;
}

.booking-heading .accent {
  color: #0077FF;
  font-weight: 600;
  display: block;
}

/* Location card */
.location-card {
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 16px;
  padding: 10px 18px;
  position: relative;
  margin-bottom: 50px;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.location-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #444;
  background: transparent;
  min-width: 0;
}

.location-row input::placeholder {
  color: #aaa;
}

.location-display-text {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-icon {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}

.clock-icon {
  width: 22px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.45;
  cursor: pointer;
}

.swap-icon {
  width: 20px;
  height: auto;
  flex-shrink: 0;
  cursor: pointer;
  margin-right: 16px;
}

.location-sep {
  height: 1px;
  width: 100%;
  background: #000;
  margin: 0 0 0 30px;
}

/* Confirm button */
.btn-confirm {
  flex: 1;
  background-color: #11D99C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 30px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-confirm:hover { background-color: #0dc48a; }

/* Pill variant — used in View 3 */
.btn-confirm--pill { border-radius: 30px; }
.btn-confirm__arrow { font-size: 14px; }

/* Heading block for Customize Your Ride */
.addon-heading-block {
  text-align: center;
  margin: 20px 0 16px;
}
.chose-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1a1a2e;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}
.addon-subtitle {
  font-size: 13px;
  color: #888;
  margin: 0 0 10px;
}
.addon-heading-bar {
  width: 40px;
  height: 3px;
  background: #11D99C;
  border-radius: 4px;
  margin: 0 auto;
}

.car-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

/* Locked vehicle option */
.car-option--locked {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(60%);
}

.car-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.15s;

  border: 1.5px solid transparent;

}

.car-option:hover {
  border: 1.5px solid #e0e0e0;

}

.car-option.selected {
  border-color: #11D99C;
  background: #f0fffb;
}

.car-option img {
  width: 84px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.car-option__info {
  flex: 1;
  min-width: 0;
}

.car-option__name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.car-option__name {
  font-weight: 700;
  font-size: 15px;
  color: #222;
}

.car-option__eta {
  color: #11D99C;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.car-option__desc {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.car-option__price {
  font-weight: 700;
  font-size: 17px;
  color: #222;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Action row */
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.btn-back {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background-color: #2563eb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-back:hover { background-color: #1d4ed8; }

/* Outlined variant for Customize step */
.btn-back--outline {
  background-color: #fff;
  border: 2px solid #2563eb;
  color: #2563eb;
}
.btn-back--outline:hover {
  background-color: #eff6ff;
}



/* Agent view */
#view-3 {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.agent-icon {
  width: 64px;
  height: 64px;
  background: #11D99C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #fff;
}

.agent-card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 28px 36px;
  width: 100%;
  max-width: 440px;
  margin-bottom: 24px;
  text-align: left;
}

.agent-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.agent-card__subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.agent-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #ebebeb;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.agent-card__row:last-child {
  border-bottom: none;
}

.agent-card__label {
  color: #999;
  flex-shrink: 0;
}

.agent-card__value {
  font-weight: 600;
  color: #222;
  text-align: right;
  word-break: break-word;
}

.agent-card__total {
  border-top: 2px solid #e0e0e0;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
}

.agent-card__total .agent-card__value {
  color: #11D99C;
  font-size: 20px;
}

#btn-new-booking {
  max-width: 340px;
}

/* Loading overlay */
#loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 50;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

#loading-overlay.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #11D99C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile */
@media (max-width: 768px) {
  #ride-app {
    flex-direction: column-reverse;
    height: auto;

    padding: 20px;
  }


  .btn-confirm {
    font-size: 24px;
    max-width: 226px;
    padding: 12px;
  }

  #map-panel {
    width: 100%;
    height: 38vh;
    flex-shrink: 0;
  }

  #right-panel {
    width: 100%;
    height: auto;
    overflow-y: visible;

    padding: 0;
  }

  .booking-heading {
    font-size: 30px;
    margin-bottom: 24px;
    text-align: center;
  }

  #view-3 {
    height: auto;
    padding: 20px 0;
  }

  .agent-card {
    padding: 22px 20px;
  }

  #btn-new-booking {
    max-width: 100%;
  }
}

.pac-container {
  z-index: 9999 !important;
}
/* ═══════════════════════════════════════════════════════════════
   MODULE 3 — Add-ons, Contact, Summary/OTP, Success
   ═══════════════════════════════════════════════════════════════ */

/* Add-on card */
.addon-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  padding: 0 20px;
  margin-bottom: 16px;
}
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
  gap: 12px;
}
.addon-row:last-child { border-bottom: none; }

/* Icon container — subtle green tinted circle */
.addon-row__info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.addon-icon-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(17, 217, 156, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.addon-icon { font-size: 17px; color: #11D99C; }

/* Label block */
.addon-row__label { flex: 1; min-width: 0; text-align: left; }
.addon-row__name { font-size: 15px; font-weight: 600; color: #1a1a2e; line-height: 1.3; text-align: left; }
.addon-row__note { font-size: 12px; color: #999; margin-top: 3px; text-align: left; }

/* Fee badge — pill style */
.addon-fee-badge {
  display: inline-block;
  background: rgba(17, 217, 156, 0.13);
  color: #0aaa77;
  font-size: 12px; font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.2px;
}

/* Counter buttons */
.counter-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.counter-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #11D99C; background: transparent;
  color: #11D99C; font-size: 20px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0; transition: background .18s, color .18s;
}
.counter-btn:hover { background: #11D99C; color: #fff; }
.counter-val { font-size: 16px; font-weight: 700; color: #1a1a2e; min-width: 24px; text-align: center; }

/* ── View 4: selected car summary row ────────────────────────────────────── */
.v4-car-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #11D99C;
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff;
}
.v4-car-img {
  width: 90px;
  object-fit: contain;
  flex-shrink: 0;
}
.v4-car-info { flex: 1; min-width: 0; }
.v4-car-name-row { display: flex; align-items: center; gap: 8px; }

/* ── Addon dropdown pills (Figma design) ──────────────────────────────────── */
.addon-dropdown-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.addon-dd {
  position: relative;
  flex: 1;
  min-width: 0;
  isolation: isolate;
}
/* Proportional flex — scales with any panel width */
#dd-pass      { flex: 0.7; min-width: 88px;  }
#dd-pet       { flex: 0.8; min-width: 72px;  }
#dd-carseat   { flex: 1.1; min-width: 100px; }
#dd-meetgreet { flex: 1.5; min-width: 120px; }

.addon-dd__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 14px 14px;
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  transition: border-color .15s;
}
.addon-dd__btn:hover,
.addon-dd.open .addon-dd__btn {
  border-color: #11D99C;
  color: #11D99C;
}
.addon-dd--active .addon-dd__btn {
  border-color: #11D99C;
  background: #f0fdf8;
  color: #0aab7a;
}
.addon-dd__arrow {
  width: 12px; height: 8px;
  flex-shrink: 0;
  transition: transform .2s;
}
.addon-dd.open .addon-dd__arrow { transform: rotate(180deg); }

.addon-dd__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.addon-dd__menu {
  position: fixed;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  list-style: none;
  margin: 0; padding: 6px 0;
  z-index: 9999;
  min-width: 120px;
  display: none;
}
.addon-dd.open .addon-dd__menu { display: block; }

.addon-dd__menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.addon-dd__menu li:hover { background: #f0fdf8; color: #0aab7a; }
.addon-dd__menu li.is-selected {
  background: #e8fdf5;
  border-left: 3px solid #11D99C;
  color: #0aab7a;
  font-weight: 600;
}
.addon-dd__menu li:not(.is-selected) { border-left: 3px solid transparent; }
.addon-dd__menu li.is-selected .dd-opt-price {
  background: #d0f7eb;
  border-color: #11D99C;
  color: #0aab7a;
}
.addon-dd__menu li.is-selected:hover { background: #d8faf1; }

.dd-opt-main { font-weight: 500; }
.dd-opt-price {
  font-size: 12px;
  font-weight: 600;
  color: #11D99C;
  background: #f0fdf8;
  border: 1px solid #b2f0dc;
  border-radius: 20px;
  padding: 1px 8px;
  flex-shrink: 0;
}
.dd-opt-note {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  font-weight: 400;
  width: 100%;
}
.addon-dd__menu li { flex-wrap: wrap; }

/* Toggle switch */
.toggle-switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #ddd;
  border-radius: 28px; cursor: pointer; transition: .3s;
}
.toggle-slider:before {
  content: ''; position: absolute;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  left: 4px; top: 4px; transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: #11D99C; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* Capacity warning */
.capacity-warning {
  background: #fff8e1; border: 1px solid #ffcc02;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #7a5900;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}

/* Add-on total card */
.addon-total-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  padding: 16px 20px;
  margin-bottom: 16px;
  gap: 0;
}
.addon-total-left {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.addon-total-label {
  font-size: 11px; font-weight: 700; color: #999;
  letter-spacing: 1px; text-transform: uppercase;
}
.addon-total-price { font-size: 26px; font-weight: 800; color: #1a1a2e; letter-spacing: -1px; }
.addon-total-divider {
  width: 1px; background: #eee; align-self: stretch; margin: 0 18px;
}
.addon-total-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.addon-total-tag-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(17,217,156,.15);
  display: flex; align-items: center; justify-content: center;
  color: #11D99C; font-size: 15px; flex-shrink: 0;
}
.addon-total-usd { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.addon-total-tax { font-size: 11px; color: #aaa; margin-top: 2px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 13px; font-weight: 600; color: #555; }
.form-label-optional { font-size: 11px; font-weight: 400; color: #999; }
.form-input {
  border: 1px solid #ddd; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: #11D99C; }
.form-error {
  background: #fff0f0; border: 1px solid #ffcccc; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #c0392b;
  margin-bottom: 12px;
}

/* Payment button group */
.payment-options { display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap; }
.payment-btn {
  flex: 1; min-width: 90px; padding: 10px 8px;
  border: 1.5px solid #002350; border-radius: 12px;
  background: #fff; color: #222;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.payment-btn.active {
  background: #11D99C; border-color: #11D99C; color: #fff;
}
.payment-btn:hover:not(.active) { border-color: #11D99C; color: #11D99C; }

/* Terms of service row */
.terms-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0 6px;
}
.terms-checkbox { width: 16px; height: 16px; accent-color: #11D99C; flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.terms-label { font-size: 13px; color: #555; cursor: pointer; }
.terms-label a { color: #11D99C; text-decoration: underline; }

/* Summary card (view 5 & 6) */
.summary-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 4px 16px; margin-bottom: 14px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0; gap: 8px;
}
.summary-row:last-child { border-bottom: none; }
.summary-divider { height: 1px; background: #11D99C; opacity: .4; margin: 4px 0; }
.summary-label { font-size: 13px; color: #888; white-space: nowrap; }
.summary-val { font-size: 13px; color: #222; font-weight: 500; text-align: right; word-break: break-all; overflow-wrap: anywhere; }
.summary-total .summary-label { font-weight: 700; color: #222; font-size: 15px; }
.summary-total .summary-val { font-weight: 700; color: #11D99C; font-size: 18px; }

/* OTP section */
.otp-section { margin-bottom: 16px; text-align: center; }
.otp-instruction { font-size: 13px; color: #555; margin-bottom: 12px; }
.otp-instruction strong { word-break: break-all; overflow-wrap: anywhere; }
.otp-input-group { display: flex; justify-content: center; margin-bottom: 10px; }
.otp-input {
  font-size: 28px; font-weight: 700; letter-spacing: 14px; text-align: center;
  text-indent: 14px; /* compensate trailing letter-spacing so text stays centered */
  width: 150px; padding: 12px 8px;
  border: 2px solid #ddd; border-radius: 10px;
  outline: none; font-family: monospace;
}
.otp-input:focus { border-color: #11D99C; }
.btn-resend {
  background: none; border: none; color: #11D99C;
  font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0;
}

/* Success view */
.success-body { font-size: 15px; color: #222; margin: 0 0 12px; line-height: 1.5; }
.confirm-number-row {
  font-size: 14px; font-weight: 600; color: #555;
  margin: 8px 0 16px;
}
.success-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 20px; }
.btn-manage-reservation {
  display: block; text-align: center;
  background: #0077ff; color: #fff;
  border-radius: 30px; padding: 16px 20px;
  font-size: 16px; font-weight: 800; text-decoration: none;
  border: none; cursor: pointer; letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}
.btn-manage-reservation:hover { background: #0062cc; color: #fff; }

/* ── Schedule a Ride field ───────────────────────────────────────────────── */
.schedule-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #0066cc;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  outline: none;
}
.schedule-icon {
  width: 18px;
  height: 18px;
  color: #0066cc;
  flex-shrink: 0;
}
/* View display helpers */
#view-3, #view-4, #view-5, #view-6 { padding: 0 0 16px; }

@media (max-width: 768px) {
  .form-row-2col { grid-template-columns: 1fr; }
  .otp-input { width: 160px; font-size: 22px; letter-spacing: 6px; }
}
