
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --opv-blue: #0080FF;
  --opv-blue-accent: #00D1FF;
  --opv-mid-gray: #7D7D7D;
  --opv-light-gray: #D9D9D9;
  --bg: #0B0B0B;
  --surface: #141416;
  --surface-elev: #1E1E22;
  --border: #2A2A2A;
  --text: #FFFFFF;
  --muted: #AFAFB3;
  --accent-warm: #FF6A3D;
  --accent-cyan: #00D1FF;
  --success: #3CC47A;
  --danger: #FF4D4D;
}

/* Accessibility / Utils */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
.form-title { 
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.6rem;
  margin: 0 0 12px 15px;
}

.card-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.2rem;
  /* Merged from testing formats */
  padding: 5px 10px;
  background: rgba(0, 219, 255, 0.22);
  width: 100%;
  text-align: left;
  border-radius: 5px;
  box-sizing: border-box;
}

.per-day { font-size: 0.75rem; }

/* =========================================
   3. SHARED INPUT STYLES
   ========================================= */
/* Unified aesthetics for all text inputs and selects */
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card input[type="tel"],
.enterflight input[type="text"],
.enterairline select,
.promo-row input[type="text"],
#step2 .vehicle-field input[type="text"],
#step2 .vehicle-field input[type="tel"],
#step2 .vehicle-field select,
#opv-tip-dialog .opv-tip-select {
 background: #252528;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  min-width: 0;
}

/* Unified Focus State */
.contact-card input:focus, 
.enterflight input:focus,
.enterairline select:focus,
.promo-row input:focus,
#step2 .vehicle-field input:focus,
#step2 .vehicle-field select:focus {
  outline: none;
  border-color: rgba(75, 164, 253, 0.4);
  box-shadow: 0 0 0 4px rgba(0,128,255,0.06);
}

/* Unified Placeholders */
input::placeholder, select::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Input Error States */
.input-error {
  border: 1px solid orangered !important;
  box-shadow: 0 0 0 4px rgba(255,69,0,0.06);
  outline: none;
}
#s1Error, #s2Error {
  color: orangered;
  font-size: 0.95rem;
  margin-top: 6px;
  line-height: 1.2;
}

/* =========================================
   4. LAYOUT & CARDS
   ========================================= */
.res-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px auto 3em auto;
  width: 92%;
  max-width: 1000px;
  box-sizing: border-box;
  color: var(--text);
}

/* Base Card Style (Background & Shape) */
.date-card1, .date-card2, .contact-card,
.review-card, .vehicle-card, .park-card, .upgrade-card,
#step2 .vehicle-card {
  border-radius: 8px;
  background-color: var(--surface-elev);
  padding: 15px;
  box-sizing: border-box;
}

/* Flex Column Cards */
.date-card1, .date-card2, .contact-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
/* Specifically tighter gap for contact card overrides */
.contact-card { gap: 22px; }

/* Wrapper Columns */
.dates-wrapper { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }

/* Contact Card Specifics */
.contact-card .field {
  display: flex; flex-direction: column; gap: 6px; width: 100%; box-sizing: border-box;
}
.contact-card label,
#step2 .vehicle-field label {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--opv-blue-accent);
  letter-spacing: 0.06em;
  display: block;
  width: 100%;
  text-align: left;
  margin-left: 8px;
}

/* =========================================
   5. DATE & TIME PICKER (jQuery UI + Custom)
   ========================================= */
/* jQuery UI Overrides */
.ui-datepicker {
  font-family: 'Work Sans', 'Open Sans', sans-serif;
  font-size: 18px;
  border: 1px solid #dcdcdc;
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  width: auto !important;
  z-index:1040 !important;
  
 /* transition: all 0.2s ease; */
}
.ui-datepicker-header { background: none; border: none; padding-bottom: 6px; text-align: center; }
.ui-datepicker-title { font-weight: 600; font-size: 15px; color: #333; }
.ui-datepicker-prev, .ui-datepicker-next {
  top: 0; width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1;
  color: #333; text-align: center; line-height: 30px; transition: background 0.2s ease;
}
.ui-datepicker-prev:hover, .ui-datepicker-next:hover { background: #e4e4e4; }
.ui-datepicker-prev span, .ui-datepicker-next span { font-size: 18px; display: block; margin: 6px auto; }
.ui-datepicker th { font-weight: 500; text-transform: uppercase; font-size: 11px; color: #535353; padding: 6px 4px; }
.ui-datepicker td { padding: 2px; }
.ui-datepicker td a {
  display: block; padding: 8px; text-align: center; border-radius: 6px;
  color: #222; text-decoration: none; transition: background 0.2s ease;
}
.ui-datepicker td a:hover { background: #e0f0ff; }
.ui-datepicker-today a { background-color: #f6f6f6 !important; color: #454545 !important; border: 1px solid #dcdcdc; font-weight: bold; }
.ui-datepicker td .ui-state-active { background-color: #007bff; color: white; }
.ui-datepicker-unselectable span { color: #ccc; padding: 8px !important; background: transparent; border-radius: 6px; cursor: not-allowed; opacity: 0.5; }
.ui-state-highlight, .ui-widget-content .ui-state-highlight { border: 1px solid #c5c5c5 !important; }

/* Custom Date/Time Inputs */
#idatepicker, #odatepicker { min-width: 140px; }
.datetime-label i { vertical-align: middle; margin-right: 6px; color: #0F118C; }

/* Time Picker Container & Logic */
.time-picker-container {
  position: relative; display: flex; align-items: center; gap: 8px;
  flex: 0 0 190px; width: 190px; box-sizing: border-box; margin-left: 0;
  padding-left: 10px;
}
.entertime { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }

.date-row { display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; }
.enterdate { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding-right: 0; }
.enterdate input[type="text"], .time-picker-container .entertime input[type="text"] {
  flex: 1 1 auto; min-width: 0; background: none; border: none; color: var(--text);
  padding: 6px 0; outline: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.time-picker-container .entertime input[type="text"] { flex: 0 0 100px; max-width: 100px; min-width: 64px; }

/* Icons / Buttons in Inputs */
.time-picker-container .cal-btn, 
.enterdate .cal-btn,
.enterairline .plane-icon {
  width: 18px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: none; background: transparent; cursor: pointer; color: var(--opv-blue-accent);
}
.enterairline .plane-icon { width: 36px; flex: 0 0 18px; font-size: 18px; line-height: 1; }
.time-picker-container .cal-btn i, .cal-btn i { font-size: 18px; line-height: 1; color: var(--opv-blue-accent); }

/* Time Dropdown */
.time-dropdowns {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 2000;
  background: #ffffff; color: #111; padding: 12px; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35); gap: 12px; align-items: flex-start;
  min-width: 220px; box-sizing: border-box; white-space: nowrap; max-width: min(420px, calc(100vw - 32px));
}
.time-dropdowns[aria-hidden="false"] { display: flex; }
.time-dropdowns .dropdown { position: relative; min-width: 74px; flex: 0 0 auto; }

.dropdown-display {
  padding: 6px 10px; border-radius: 4px; background: #f3f3f3; border: 1px solid #ddd;
  cursor: pointer; text-align: center; font-weight: 600; color: #151515; user-select: none;
}
.dropdown-options {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; width: 100%; max-height: 300px;
  overflow-y: auto; background: #ffffff; border: 1px solid #ddd; border-radius: 4px;
  margin: 0; padding: 0; list-style: none; z-index: 2100; font-size: 1.1rem; text-align: center;
}
.dropdown.open .dropdown-options { display: block; }
.dropdown-options li { padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.dropdown-options li:hover { background: #eee; }

.confirm-time-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: #28a745; color: #fff; font-weight: 700; cursor: pointer; margin-top: 5px;
}

/* Accessibility Focus */
.dropdown-display:focus, .cal-btn:focus, .confirm-time-btn:focus {
  outline: 2px solid rgba(0,209,255,0.15); outline-offset: 2px;
}

/* =========================================
   6. AIRLINE & FLIGHT FIELDS
   ========================================= */
.airline-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.airline-row .enterairline, .airline-row .enterflight { flex: 1 1 0; }
.enterairline { display: flex; align-items: center; gap: 8px; min-width: 0; position: relative; padding-right: 8px; }
.enterairline select { 
  background: #252528; /* Specific override if needed, otherwise inherits generic input style */
  appearance: none; -webkit-appearance: none; -moz-appearance: none; 
}

/* =========================================
   7. VEHICLE & UPGRADE (Step 2)
   ========================================= */
.park-card, .upgrade-card { margin-top: 18px; }

#step2 .vehicle-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start;
  width: 100%; box-sizing: border-box; margin-top: 18px;
}
#step2 .vehicle-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; box-sizing: border-box; }

/* Awesomplete */
.awesomplete { width: 100%; box-sizing: border-box; }
.awesomplete ul {
  background: #1E1E22; border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); margin-top: 4px; z-index: 1000;
}
.awesomplete li { padding: 10px 14px; cursor: pointer; }
.awesomplete li[aria-selected="true"], .awesomplete li:hover { background-color: var(--opv-blue-accent); color: #000; }
.awesomplete mark { background: none !important; color: inherit; font-weight: inherit; padding: 0 !important; margin: 0 !important; }






/* Park Options (Radio Buttons as Cards) */
.park-card .park-options { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 18px; }
.park-card .park-options input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.park-card .park-option {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 18px; border-radius: 10px; background: rgba(255,255,255,0.03); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.04); font-weight: 700; cursor: pointer; user-select: none;
  min-width: 120px; flex: 1 1 0; text-align: center; box-sizing: border-box;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.park-card .park-option:hover { transform: translateY(-2px); }
.park-card .park-options input[type="radio"]:checked + .park-option,
.park-card .park-option.selected {
  background: var(--opv-blue-accent); color: #000; border-color: var(--opv-blue-accent); box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.park-card .park-options input[type="radio"]:focus + .park-option { outline: 3px solid rgba(0,209,255,0.14); outline-offset: 3px; }
.park-card .park-option .park-price, .park-card .park-option span.price {
  font-size: 0.9rem; font-weight: 600; color: inherit; line-height: 1; margin-top: 0px; padding-bottom: 5px;
}

/* Upgrade Options */
.upgrade-fieldset { border: none; padding: 0; margin-bottom: 15px; }
.upgrade-fieldset legend {
  font-size: 1rem; color: #020202; margin-bottom: 18px; font-weight: 600; letter-spacing: 0.05em;
  margin-top: 18px; padding: 10px 15px; min-width: 150px; max-width: 200px; text-align: center;
  background: #b1ea14; border-radius: 55px;
}
.upgrade-options { display: flex; flex-direction: column; gap: 12px; width: 100%; position: relative; }
.upgrade-options input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; opacity: 0; pointer-events: none; border: 0; }

.option-row { display: flex; align-items: center; gap: 8px; position: relative; }
.option-row > .upgrade-option { flex: 0 0 85%; }

.upgrade-option {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.95rem; transition: all 0.2s ease; cursor: pointer;
}
.upgrade-option .opt-title { font-weight: 500; }
.upgrade-option .opt-price { font-weight: 600; font-size: 0.95rem; color: var(--text); }

/* Upgrade Checked State */
.upgrade-options input[type="radio"]:checked + .upgrade-option {
  background: var(--opv-blue); color: #fff; border-color: var(--opv-blue-accent);
}
.upgrade-options input[type="radio"]:checked + .upgrade-option .opt-price { color: #fff; }

/* "None" Option Specifics */
#wash_none:checked + .upgrade-option, #ev_none:checked + .upgrade-option {
  background-color: #2A2A2A; color: var(--muted); border-color: #3e3e3e;
}
#wash_none:checked + .upgrade-option .opt-price, #ev_none:checked + .upgrade-option .opt-price { color: var(--muted); }

.info-btn {
  width: 44px; height: 44px; border-radius: 8px; padding: 6px 8px; font-weight: 600; cursor: pointer;
  line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: none; background: none;
}
.info-btn::before { font-weight: 700; font-family: sans-serif; color: #151515; }
input.no-info + label.upgrade-option + .info-btn { display: none; }

/* =========================================
   8. SUMMARY SECTIONS (Review/Contact/Trip)
   ========================================= */
#reviewSummary .review-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.95rem; color: var(--muted); gap: 12px; }
#reviewSummary .review-row > strong { flex: 1 1 auto; text-align: left; font-weight: 600; }
#reviewSummary .rev_right { flex: 0 0 120px; margin-left: 12px; font-weight: 600; min-width: 80px; text-align: right; }
#reviewSummary .review-total { font-size: 1.05rem; color: var(--text); margin-top: 6px; font-weight: 700; }

.tnc-row { padding-top: 0px;max-width:350px; }
.tnc-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 0px; accent-color: var(--opv-blue); }
.tnc-row .tnc-link { color: var(--opv-blue-accent); text-decoration: none; }
.tnc-row .tnc-error { margin-top: 6px; color: var(--danger, #ff6b6b); font-size: 0.85rem; }
/* Target the label when JS adds aria-invalid="true" to the checkbox */
.tnc-control input[type="checkbox"][aria-invalid="true"] + label {
  border-bottom: 2px solid #ff4500; /* Red-Orange line */
  padding-bottom: 0px;
  color: #b22222; 
  transition: all 0.3s ease;
}

/* Optional: remove the styling if the user checks the box after the error appears */
.tnc-control input[type="checkbox"]:checked + label {
  border-bottom: 2px solid transparent;
  color: var(--muted);
}

/* Contact Summary & Trip Summary Shared Box Styles */
#contact-summary, #trip-summary {
  display: flex; width: 100%; box-sizing: border-box; padding: 6px 0;
}
#contact-summary { flex-direction: column; gap: 20px; align-items: stretch; justify-content: center; color: #fff; }
#trip-summary { flex-direction: row; gap: 20px; align-items: stretch; justify-content: center; }

/* Individual Info Boxes */
#contact-summary > div, #trip-summary > div {
  flex: 1 1 100%; min-width: 0; box-sizing: border-box; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.01);
  display: flex; flex-direction: column; gap: 6px; text-align: left;
}
#trip-summary > div { flex: 1 1 360px; gap: 10px; }

/* Data lines inside summaries */
#fname-sum, #make-sum { font-weight: 600; font-size: 1rem; }
#phone-sum, #email-sum, #model-sum { color: var(--muted, rgba(255,255,255,0.65)); font-size: 0.95rem; line-height: 1.2; word-wrap: break-word; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#idate-sum, #odate-sum { font-weight: normal; font-size: 0.95rem; margin-top: 10px; color: #eee; }
#iflight-sum, #oflight-sum { color: var(--muted, rgba(255,255,255,0.65)); font-size: 0.95rem; color: #eee; }
#itime-sum, #otime-sum { font-size: 1.5em; color: #eee; }
#trip-summary > div > div { white-space: normal; overflow: hidden; text-overflow: ellipsis; }
#contact-summary #user-icon, #contact-summary #car-icon { display: none; }

/* =========================================
   9. BUTTONS
   ========================================= */
.form-nav { display: flex; justify-content: right; margin-top: 24px; }

.btn-next, .btn-back, .btn-next2, #payBtn {
  background-color: var(--opv-blue); color: #fff; font-weight: 600; font-size: 1rem;
  border: none; border-radius: 8px; padding: 12px 20px; cursor: pointer;
  width: 45%; max-width: 220px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); outline: none;
}
.btn-back { background-color: #6c6c6c; margin: auto auto; }
.btn-next2 { margin: auto auto; }

.btn-next:hover {
  background-color: var(--opv-blue-accent); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px); cursor: pointer;
}
.btn-next:active { transform: scale(0.98); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.btn-next:focus-visible { box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.4); }
.btn-next i { transition: transform 0.25s ease; }
.btn-next:hover i { transform: translateX(3px); }

.btn-small { padding: 8px 12px; border-radius: 8px; background: var(--opv-blue); color: #fff; border: none; cursor: pointer; }
#opv_rev_addtip_row .opv-btn-small {
  display: inline-block; padding: 6px 10px; border-radius: 6px;
  background: #0080ff; color: #e6eef7; border: 1px solid rgba(255,255,255,0.03); cursor: pointer;
}

/* =========================================
   10. MODALS (Standard, Tips & Restrictions)
   ========================================= */
/* Generic Modal */
#modal-backdrop {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4); z-index: 900;
}
.modal { display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 80; }
.modal .modal-panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 90;
  background: var(--surface-elev); color: var(--text); padding: 20px;
  max-width: 560px; width: calc(100% - 40px); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute; right: 10px; top: 8px; background: transparent; border: none;
  font-size: 1.4rem; color: var(--muted); cursor: pointer;
}

/* OPV tip modal — high-specificity selectors to avoid Bootstrap override */
#opv-tip-dialog.opv-tip-overlay {
  display: none; /* toggled by JS */
  position: fixed;
  inset: 0;
  z-index: 14000;                 /* high to avoid being hidden by other overlays */

  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2,6,23,0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* card */
#opv-tip-dialog .opv-tip-card {
  width: 420px;
  max-width: calc(100% - 40px);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f1720, #07101a);
  color: #eef2f7;
  padding: 18px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

/* header row */
#opv-tip-dialog .opv-tip-head {

  align-items:center;
  justify-content:space-between;
  gap:12px;
}
#opv-tip-dialog h3 { margin:0; font-size:1.5rem; color:#0080ff; }
#opv-tip-dialog .opv-tip-sub { font-size:0.86rem; color:#b8c2cc; margin-top:3px; }

/* right preview */
#opv-tip-dialog .opv-tip-order-preview { text-align:right; min-width:86px; }
#opv-tip-dialog .opv-tip-small { display:block; color:#9aa6b3; font-size:0.82rem; }
#opv-tip-dialog #opv_tip_preview_total { color:#fff; font-size:1rem; }

/* body */
#opv-tip-dialog .opv-tip-body {  flex-direction:column; display:flex; }
#opv-tip-dialog .opv-tip-label { color:#9aa6b3; font-size:0.88rem; margin-bottom:6px; display:block; }

/* select styling (override browser/bootstrap) */
#opv-tip-dialog .opv-select-wrap { position:relative; }
#opv-tip-dialog .opv-tip-select {
  width:100%;
  padding:10px 40px 10px 12px;
  border-radius:8px;
  font-size:1rem;
  color:#fff;
  background: #252528;
  border: 1px solid rgba(255,255,255,0.06);
  appearance: none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
  box-sizing:border-box;
}

/* chevron pseudo (uses a sibling pseudo so no extra markup) */
#opv-tip-dialog .opv-select-wrap::after {
  content: "▾";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color: rgba(255,255,255,0.6);
  pointer-events:none;
}

/* preview line */
#opv-tip-dialog .opv-tip-preview-line {  align-items:center; justify-content:space-between; font-size:0.95rem; color:#abb7c2; }

/* actions */
#opv-tip-dialog .opv-tip-actions {  gap:18px; justify-content:flex-end;display:flex;margin-top:50px; }
#opv-tip-dialog .opv-btn-ghost {
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  color:#c0cbd4;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
}
#opv-tip-dialog .opv-btn-primary {
  background:#0080ff;
  color:#fff;
  padding:8px 14px;
  border:none;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  box-shadow: 0 8px 22px rgba(0,128,255,0.12);
}

/* small helpers for the review row & button in review summary */
#opv_rev_addtip_row .opv-btn-small {
  display:inline-block;
  padding:6px 10px;
  border-radius:6px;
  background: #0080ff;
  color:#e6eef7;
  border:1px solid rgba(255,255,255,0.03);
  cursor:pointer;
}





/* FontAwesome Helper */
.fas { font-family: "Font Awesome 5 Free"; font-weight: 900; }
.fa-circle-info { font-size: 1.5em; color: #0080ff; }

/* =========================================
   11. MEDIA QUERIES (Responsive)
   ========================================= */
/* Desktop / Tablet */
@media (min-width: 768px) {
  .dates-wrapper { flex-direction: row; gap: 14px; }
  .date-card1, .date-card2 { flex: 1 1 0; min-width: 0; }
  .review-wrapper { display: flex; flex-direction: row; gap: 24px; align-items: flex-start; }
  .reviewer { gap: 8px !important; }
  .btn-next { width: 45%; }
  .airline-row .enterairline { gap: 12px; }
  #step2 .vehicle-field--small { width: auto; max-width: 200px; }
}

/* Mobile / Narrow */
@media (max-width: 767px) {
  .res-container { width: 96%; gap: 16px; }
  .contact-card { gap: 16px; }
  .review-wrapper { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
  .reviewer { gap: 5px !important; }
}
@media (max-width: 740px) {
  #contact-summary { flex-direction: column; gap: 12px; }
  #contact-summary > div { flex: 1 1 100%; }
  #trip-summary { flex-direction: row; gap: 12px; }
  #trip-summary > div { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .enterairline .plane-icon { width: 32px; height: 32px; font-size: 18px; }
  .enterairline select { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  #opv-tip-dialog .opv-tip-card { width: 94%; padding: 14px; }
}
@media (max-width: 420px) {
  .park-card .park-option { padding: 8px 10px; min-width: 100px; font-size: 0.95rem; }
}

#timeRestrictionDialog {
    /* Base dialog settings (mimicking the overlay) */
    position: fixed;
    inset: 0;
    z-index: 14000;
    padding: 22px;
    border: none; /* remove default dialog border */
    background: transparent; /* allow the backdrop to show through */
}

/* Styling the area behind the dialog (the blurred overlay) */
#timeRestrictionDialog::backdrop {
    background: rgba(2,6,23,0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Fallback for browsers without proper <dialog> support (using the JS display property) */
#timeRestrictionDialog.custom-dialog {
    /* If you used a div and showCustomDialog sets display: flex, use this */
    /* display: flex;  */ 
    align-items: center;
    justify-content: center;
}

/* 2. Card/Content Styling (Matches .opv-tip-card) */
#timeRestrictionDialog .dialog-content {
    width: 420px;
    max-width: calc(100% - 40px);
    border-radius: 12px;
    /* Use the same gradient background */
    background: linear-gradient(180deg, #0f1720, #07101a);
    color: #eef2f7;
    padding: 18px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
}

/* 3. Header Styling (Matching .opv-tip-head - used for gap/layout) */
/* Since your dialog has header/body/footer divs, let's style the header/title */
#timeRestrictionDialog .dialog-header h3 {
    margin: 0; /* remove default margin from h3 */
    font-size: 1.25rem; /* Ensure title is prominent */
    color: var(--opv-blue-accent, #38bdf8); /* Optional: use an accent color */
}

/* 4. Footer Styling (for the OK button) */
#timeRestrictionDialog .dialog-footer {
    display: flex;
    justify-content: flex-end; /* Push button to the right */
    padding-top: 5px; /* Separate footer from body slightly */
}

/* Style for the button (optional, adjust to match your 'btn-primary' style) */
#timeRestrictionDialog #dialogOkButton {
    /* Assuming btn-primary handles the background and text color */
    min-width: 80px;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    color: #fff !important;
}

#wash-options-container,
#ev-options-container {

  flex-direction: column !important;
  gap: 12px !important;
  width: 100%;
}

/* Container for the Thank You Popup */
.opv-thank-you-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #333; /* Dark background */
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    z-index: 9999; /* Ensure it's on top of everything */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    pointer-events: none; /* Let clicks pass through */
    opacity: 0;
    
    /* Animation definitions */
    animation: opvPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.opv-thank-you-popup.opv-fade-out {
    animation: opvFadeOut 0.5s ease forwards;
}

/* Icon style inside the popup */
.opv-thank-you-popup i {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
    color: #ff6b6b; /* A nice red/pink for the heart */
}

/* Keyframes for the "Pop" effect */
@keyframes opvPopIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes opvFadeOut {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60%); } /* Float up slightly */
}

.opv-heart-particle {
    position: fixed;
    top: 50%; 
    left: 50%;
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0;
    /* We removed 'ease-out' from here because we define it inside the keyframes now */
    animation-name: opvFountain;
    animation-fill-mode: forwards;
}

/* The Gravity-Simulated Fountain Animation */
@keyframes opvFountain {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        /* Fast start, slowing down as it goes up */
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); 
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        /* THE PEAK: Reached top height. 
           Switch to ease-in for the fall (Start slow, accelerate down) */
        transform: translate(calc(-50% + (var(--tx) * 0.5)), calc(-50% + var(--ty-up))) scale(1);
        opacity: 1;
        animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
    }
    100% {
        /* THE BOTTOM: Fell down to destination */
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty-down))) scale(0.8);
        opacity: 0;
    }
}

/* Standard Keyframes */
@keyframes opvPopIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes opvFadeOut {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

@keyframes flashGreenBlink {
  0%, 33%, 66%, 100% { 
    color: inherit; 
    text-shadow: none; 
  }
  16%, 50%, 82% { 
    color: #15d200; 
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.5); 
  }
}

.anim-flash-green {
  animation: flashGreenBlink 3s ease-in-out forwards;
}

/* Animation 2: Emoji Pop (1s duration) */
@keyframes emojiPopSequence {
  0% { transform: scale(0); opacity: 0; }
  20% { transform: scale(1); opacity: 1; }     /* Pop In */
  50% { transform: scale(1.25); }              /* Grow 25% */
  80% { transform: scale(1); opacity: 1; }     /* Shrink back */
  100% { transform: scale(0); opacity: 0; }    /* Pop Out */
}

.anim-emoji-pop {
  display: inline-block; /* Required for transform to work */
  margin-left: 6px;
  animation: emojiPopSequence 1.5s ease-in-out forwards;
}

#billing_zip::placeholder{
  color: #687173 !important;
  opacity: 1;
}


.zip-input-field {
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.2s ease;
}

/* Focus state */
.zip-input-field:focus {
    border: 1px solid #3f9fff !important;
    outline: none;
}

/* Invalid state */
.zip-input-field.invalid {
    border: 1px solid orangered !important;
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff; /* This creates the "spinning" part */
  animation: spin 0.8s ease-in-out infinite;
  margin-right: 8px; /* Space between spinner and text */
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.v-verify-container {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
