/* =====================================================
   CERAH TAXI BOOKING — CONSOLIDATED STYLESHEET
   ===================================================== */

/* --- Variables --- */
:root {
  --cerah-button-bg: #f4d30c;
  --cerah-button-text: #111111;
  --cerah-button-border: #111111;
  --cerah-button-hover-bg: #111111;
  --cerah-button-hover-text: #ffffff;
  --cerah-button-hover-border: #111111;
  --cerah-field-radius: 14px;
  --cerah-button-radius: 999px;
  --cerah-datetime-accent: #f4d30c;
}


/* --- Base wrap & form layout --- */
.cerah-taxi-booking-wrap {
  max-width: 760px;
  width: 100%;
  min-height: 640px;
}
.cerah-taxi-booking-wrap,
.cerah-taxi-booking-wrap * { box-sizing: border-box; }

.cerah-taxi-booking-form {
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.cerah-taxi-step,
.cerah-taxi-step[hidden],
.cerah-conditional[hidden],
[hidden] { display: none !important; }

.cerah-taxi-step.is-active {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  min-height: 560px;
}
.cerah-taxi-step.is-active .cerah-taxi-grid {
  flex: none;
  align-content: start;
}

/* Ensure dropdowns/pickers are never clipped */
.cerah-taxi-form-wrap,
.cerah-taxi-step,
.cerah-taxi-grid,
.cerah-taxi-field { overflow: visible !important; }


/* --- Grid system --- */
.cerah-taxi-grid { display: grid; gap: 16px; }
.cerah-taxi-grid-top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-bottom: 20px;
}
.cerah-taxi-grid-mid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.cerah-taxi-grid-customer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.cerah-taxi-span-full { grid-column: 1 / -1; }
.cerah-grid-mid-compact { margin-top: -14px; }


/* --- Fields --- */
.cerah-taxi-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cerah-taxi-field > label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.cerah-taxi-field input,
.cerah-taxi-field textarea,
.cerah-taxi-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: var(--cerah-field-radius);
  background: #ffffff;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: none;
}
.cerah-taxi-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 18px 18px;
}
.cerah-time-wrap select { max-width: 100%; }
.cerah-taxi-field textarea { min-height: 130px; resize: vertical; }
.cerah-taxi-field input:focus,
.cerah-taxi-field textarea:focus,
.cerah-taxi-field select:focus { outline: none; border-color: #111827; }
.cerah-taxi-field input[type="date"],
.cerah-taxi-field input[type="time"] { accent-color: var(--cerah-datetime-accent); }
.cerah-taxi-field input[type="date"]::-webkit-calendar-picker-indicator,
.cerah-taxi-field input[type="time"]::-webkit-calendar-picker-indicator { opacity: .9; }

.cerah-taxi-field-helper { display: flex; align-items: center; gap: 6px; min-height: 0; }
.cerah-pickup-wrap .cerah-taxi-field-helper { margin-top: 0; min-height: 0; }
.cerah-taxi-status { min-height: 18px; color: #6b7280; font-size: 13px; }


/* --- Buttons --- */
.cerah-taxi-btn {
  appearance: none;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--cerah-button-radius);
  border: 1px solid var(--cerah-button-border);
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.cerah-taxi-btn-primary {
  background: var(--cerah-button-bg);
  color: var(--cerah-button-text);
  border-color: var(--cerah-button-border);
}
.cerah-taxi-btn-primary:hover,
.cerah-taxi-btn-primary:focus,
.cerah-taxi-btn-secondary:hover,
.cerah-taxi-btn-secondary:focus {
  background: var(--cerah-button-hover-bg);
  color: var(--cerah-button-hover-text);
  border-color: var(--cerah-button-hover-border);
}


/* --- Actions bar --- */
.cerah-taxi-actions {
  margin-top: auto !important;
  padding-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
}
.cerah-taxi-actions-between { justify-content: space-between; }


/* --- Action / toggle links --- */
.cerah-taxi-location-btn,
#cerah-add-stop,
.cerah-taxi-toggle-btn.cerah-taxi-location-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin-top: 20px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #000 !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  cursor: pointer;
}
.cerah-taxi-location-btn:hover,
.cerah-taxi-toggle-btn.cerah-taxi-location-btn:hover,
#cerah-add-stop:hover {
  background: transparent !important;
  color: #000 !important;
}
#cerah-add-stop { margin-top: 8px; margin-bottom: 24px; }
#cerah-add-stop[disabled],
#cerah-add-stop.maxed { cursor: default !important; pointer-events: none !important; }

.cerah-stop-instructions { margin-bottom: 10px; }


/* --- Checkbox & consent --- */
.cerah-taxi-checkline,
.cerah-taxi-checkbox-inline,
.cerah-taxi-consent {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  text-align: left !important;
}
.cerah-taxi-checkline { align-items: flex-start !important; }

.cerah-taxi-checkbox-inline input,
.cerah-taxi-consent input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}
.cerah-checkbox-box {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  border-radius: 4px !important;
  border: 2px solid #111111 !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.cerah-checkbox-mark {
  font-size: 11px !important;
  line-height: 1 !important;
  color: #111111 !important;
  opacity: 0;
}
.cerah-taxi-checkbox-inline input:checked + .cerah-checkbox-box,
.cerah-taxi-consent input:checked + .cerah-checkbox-box { background: var(--cerah-button-bg) !important; }

.cerah-taxi-checkbox-inline input:checked + .cerah-checkbox-box .cerah-checkbox-mark,
.cerah-taxi-consent input:checked + .cerah-checkbox-box .cerah-checkbox-mark { opacity: 1 !important; }

.cerah-checkbox-text {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  line-height: 1.4;
}
.cerah-taxi-consent > .cerah-checkbox-text { flex-wrap: wrap !important; gap: 0.25em !important; }
.cerah-taxi-consent a { margin-right: 0.2em !important; }


/* --- Address field with clear button --- */
.cerah-address-input-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}
.cerah-address-with-clear { position: relative; }
.cerah-address-input-wrap > input,
.cerah-address-with-clear input { padding-right: 48px !important; }

.cerah-address-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(209, 213, 219, 0.85);
}
.cerah-address-clear:hover { color: #111827; }
.cerah-address-clear[hidden] { display: none !important; }
.cerah-address-clear > * { pointer-events: none; }

.cerah-readonly-like { pointer-events: none !important; opacity: 1 !important; }
#pickup_address.cerah-readonly-like,
#dropoff_address.cerah-readonly-like { cursor: default !important; }


/* --- Inline location / passenger rows --- */
.cerah-inline-location-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(140px, 2fr);
  gap: 12px;
  align-items: start !important;
}
.cerah-inline-passenger-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  justify-content: flex-start;
}
.cerah-inline-passenger-wrap label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.cerah-inline-passenger-wrap input { margin-top: 0 !important; }
.cerah-inline-under-field { margin-top: 4px; }

.cerah-step2-funeral .cerah-inline-location-row,
.cerah-step2-wedding .cerah-inline-location-row {
  grid-template-columns: minmax(0, 3fr) minmax(160px, 2fr);
  align-items: start !important;
}
.cerah-step2-funeral #service_location,
.cerah-step2-funeral .cerah-inline-location-row > .cerah-inline-passenger-wrap:first-child {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}


/* --- Phone row --- */
.cerah-phone-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
}
.cerah-phone-code-select select { min-height: 56px; }


/* --- Overlay / stacking context --- */
.pac-container,
.cerah-custom-select-panel,
.cerah-custom-date-panel { z-index: 1000 !important; }

.pac-container {
  background: #fff !important;
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto !important;
}
body.cerah-hide-pac .pac-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.cerah-custom-select-panel,
.cerah-custom-date-panel { background: #fff !important; opacity: 1 !important; }


/* --- Custom select --- */
.cerah-native-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}
.cerah-custom-select,
.cerah-custom-select * { box-sizing: border-box; }
.cerah-custom-select { position: relative; width: 100%; z-index: 30; }
.cerah-custom-select.is-open,
.cerah-custom-date.is-open { z-index: 1000 !important; }

button.cerah-custom-select-trigger {
  width: 100%;
  min-height: 56px;
  border: 1px solid #d1d5db;
  border-radius: var(--cerah-field-radius);
  background: #fff;
  padding: 14px 30px 14px 16px;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
  position: relative;
}
.cerah-custom-select-trigger-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cerah-custom-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, .12);
  padding: 10px;
  display: none;
  isolation: isolate;
}
.cerah-custom-select.is-open .cerah-custom-select-panel { display: block; }

.cerah-custom-select-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.cerah-custom-select-options {
  max-height: 252px;
  overflow: auto;
  display: grid;
  gap: 6px;
  background: #fff !important;
}
.cerah-custom-select-option {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 10px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}
.cerah-custom-select-option:hover,
.cerah-custom-select-option.is-selected { background: #f3f4f6; }
.cerah-custom-select-option[hidden] { display: none !important; }


/* --- Custom date picker --- */
.cerah-native-date-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}
.cerah-custom-date { position: relative; width: 100%; }
.cerah-custom-date-trigger {
  width: 100%;
  min-height: 56px;
  border: 1px solid #d1d5db;
  border-radius: var(--cerah-field-radius);
  background: #fff;
  padding: 14px 52px 14px 16px;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
  position: relative;
}
.cerah-custom-date-trigger-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 2.5V5.5M14 2.5V5.5M3 8.5H17M5 4.5H15C16.1046 4.5 17 5.39543 17 6.5V15.5C17 16.6046 16.1046 17.5 15 17.5H5C3.89543 17.5 3 16.6046 3 15.5V6.5C3 5.39543 3.89543 4.5 5 4.5Z' stroke='%23111827' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cerah-custom-date-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px !important;
  max-width: min(360px, calc(100vw - 24px)) !important;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, .12);
  padding: 12px;
  display: none;
}
.cerah-custom-date.is-open .cerah-custom-date-panel { display: block; }

.cerah-custom-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cerah-date-nav {
  border: 0;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.cerah-custom-date-title { font-weight: 700; font-size: 14px; }
.cerah-custom-date-weekdays,
.cerah-custom-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px !important;
}
.cerah-custom-date-weekdays {
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}
.cerah-custom-date-day,
.cerah-custom-date-empty { min-height: 40px !important; }
.cerah-custom-date-day {
  width: 40px !important;
  height: 40px !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
.cerah-custom-date-day:hover { background: #f3f4f6; }
.cerah-custom-date-day.is-selected {
  border-radius: 999px;
  background: var(--cerah-datetime-accent);
  color: #111;
  font-weight: 700;
}
.cerah-custom-date-day[disabled] { opacity: .35; cursor: not-allowed; }


/* --- Tour search --- */
.cerah-tour-search-wrap { position: relative; }
.cerah-tour-search-wrap input { padding-right: 56px; }
.cerah-tour-search-wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 19px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* --- Multi-stop rows --- */
.cerah-multi-stops { display: grid; gap: 12px; }
.cerah-stop-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}
.cerah-stop-row.is-dragging { opacity: .45; }
.cerah-stop-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-size: 18px;
  cursor: move;
  user-select: none;
  color: #6b7280;
}
.cerah-stop-remove {
  min-height: 56px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.cerah-stop-badge {
  position: relative !important;
  width: 28px !important;
  height: 38px !important;
  flex: 0 0 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.cerah-stop-badge::before,
.cerah-stop-badge::after { content: none !important; display: none !important; background: none !important; }
.cerah-stop-badge-letter {
  position: absolute !important;
  left: 50% !important;
  top: 42% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}


/* --- Messages & validation --- */
.cerah-taxi-booking-message { min-height: 20px; margin-top: 12px; font-size: 14px; }
.cerah-taxi-booking-message.is-success { color: #0a7f38; }
.cerah-taxi-booking-message.is-error { color: #b42318; }
.cerah-error { border-color: #b42318 !important; }
.cerah-warning-fade { transition: opacity .2s ease; }


/* --- Booking summary --- */
#cerah-booking-summary {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  background: transparent !important;
}
.cerah-booking-summary {
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: grid;
  gap: 10px;
}
.cerah-booking-summary-empty { margin: 0; color: #6b7280; font-size: 14px; }
.cerah-booking-summary-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.cerah-booking-summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cerah-booking-summary-label { font-weight: 700; color: #111827; }
.cerah-booking-summary-value { color: #374151; line-height: 1.45; }


/* --- Payment options (general) --- */
.cerah-payment-options { display: flex; gap: 12px; flex-wrap: wrap; }
.cerah-payment-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.cerah-payment-option input { margin: 0; }
.cerah-payment-option:has(input:checked) { border-color: #111827; background: #fff8cc; }


/* --- Step 5 (review) --- */
.cerah-taxi-step[data-step="5"] .cerah-booking-summary {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  gap: 0 !important;
}
.cerah-taxi-step[data-step="5"] .cerah-booking-summary-row {
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 8px !important;
  padding: 8px 0 !important;
}
.cerah-taxi-step[data-step="5"] .cerah-booking-summary-label,
.cerah-taxi-step[data-step="5"] .cerah-booking-summary-value { font-size: 14px; }
.cerah-taxi-step[data-step="5"] .cerah-booking-summary-value { line-height: 1.3; }
.cerah-taxi-step[data-step="5"] .cerah-taxi-field > label { font-size: 14px; margin-bottom: 8px; }

/* Step 5 consent — grid layout */
.cerah-taxi-step[data-step="5"] .cerah-taxi-consent,
.cerah-taxi-field.cerah-taxi-span-full .cerah-taxi-consent {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  width: 100% !important;
}
.cerah-taxi-step[data-step="5"] .cerah-taxi-consent input,
.cerah-taxi-field.cerah-taxi-span-full .cerah-taxi-consent input { grid-column: 1; grid-row: 1; }

.cerah-taxi-step[data-step="5"] .cerah-taxi-consent .cerah-checkbox-box,
.cerah-taxi-field.cerah-taxi-span-full .cerah-taxi-consent .cerah-checkbox-box {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0 !important;
  align-self: center !important;
}
.cerah-taxi-step[data-step="5"] .cerah-taxi-consent .cerah-checkbox-text,
.cerah-taxi-field.cerah-taxi-span-full .cerah-taxi-consent .cerah-checkbox-text {
  grid-column: 2;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 18px;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* Step 5 payment options */
.cerah-taxi-step[data-step="5"] .cerah-payment-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border-top: 1px solid #e5e7eb !important;
}
.cerah-taxi-step[data-step="5"] .cerah-payment-option {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 12px 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.cerah-taxi-step[data-step="5"] .cerah-payment-option input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0;
  border: 2px solid #bfc5cd;
  border-radius: 999px;
  background: #ffffff;
  position: relative;
  cursor: pointer;
}
.cerah-taxi-step[data-step="5"] .cerah-payment-option input[type="radio"]:checked { border-color: #111111; }
.cerah-taxi-step[data-step="5"] .cerah-payment-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px !important;
  border-radius: 999px;
  background: #111111;
}


/* --- Success modal --- */
.cerah-booking-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}
.cerah-booking-success-modal[hidden] { display: none !important; }
.cerah-booking-success-modal__dialog {
  width: min(100%, 420px);
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.18);
  text-align: center;
}
.cerah-booking-success-modal__title { margin: 0 0 8px; font-size: 24px; line-height: 1.2; }
.cerah-booking-success-modal__message { margin: 0 0 18px; color: #4b5563; line-height: 1.5; }
body.cerah-booking-modal-open { overflow: hidden; }


/* --- Responsive --- */
@media (max-width: 767px) {
  .cerah-taxi-grid-top,
  .cerah-taxi-grid-mid,
  .cerah-taxi-grid-customer { grid-template-columns: 1fr; }
  .cerah-taxi-span-full { grid-column: auto; }
  .cerah-inline-location-row,
  .cerah-phone-row,
  .cerah-stop-row { grid-template-columns: 1fr; }
  .cerah-booking-summary-row { grid-template-columns: 1fr; gap: 4px; }
  .cerah-payment-options { flex-direction: column; }
  .cerah-taxi-step[data-step="5"] .cerah-booking-summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px 0;
  }
  .cerah-taxi-step[data-step="5"] .cerah-payment-options { gap: 12px; }
}
/* =============================================================================
   Map pin modal
   ============================================================================= */

.cerah-map-pin-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cerah-map-pin-modal[hidden] {
  display: none !important;
}

.cerah-map-pin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.cerah-map-pin-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  width: min(680px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cerah-map-pin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cerah-map-pin-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.cerah-map-pin-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.cerah-map-pin-modal__close:hover {
  background: #f3f4f6;
  color: #111;
}

.cerah-map-pin-modal__hint {
  margin: 0;
  padding: 10px 20px 0;
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}

.cerah-map-pin-container {
  flex: 1 1 auto;
  min-height: 340px;
  width: 100%;
}

.cerah-map-pin-modal__footer {
  padding: 14px 20px 18px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cerah-map-pin-address-preview {
  margin: 0 0 12px;
  font-size: 13px;
  color: #374151;
  min-height: 18px;
  font-style: italic;
}

.cerah-map-pin-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Pin on map button — sits alongside "Use my location" */
.cerah-pin-map-btn {
  margin-left: 4px;
}

@media (max-width: 520px) {
  .cerah-map-pin-container { min-height: 260px; }
  .cerah-map-pin-modal__actions { flex-direction: column-reverse; }
  .cerah-map-pin-modal__actions .cerah-taxi-btn { width: 100%; }
}
