/* ==========================================================================
   Exec Limo Booking — widget + forms
   Uses the theme's tokens; falls back to literals so the plugin still looks
   right if it is ever activated against another theme.
   ========================================================================== */

.el-widget {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.el-widget-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* honeypot */
.el-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- steps --- */

.el-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.el-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted, #888);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.el-step.is-on {
  background: var(--gold, #d4a853);
  color: #000;
}

.el-step-line {
  width: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}
.el-step-line.is-on { background: var(--gold, #d4a853); }

/* ---------------------------------------------------------------- tabs --- */

.el-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--gray, #1a1a1a);
}

.el-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #888);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.el-tab:hover { color: #fff; }
.el-tab.is-on {
  background: var(--gold, #d4a853);
  color: #000;
}

/* -------------------------------------------------------------- fields --- */

.el-group { margin-bottom: 16px; }

.el-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted, #888);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.el-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.el-grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) {
  .el-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.el-hint { margin-top: 6px; color: #666; font-size: 0.75rem; }
.el-upper { text-transform: uppercase; }

/* Dark date/time controls: make the native pickers legible. */
.input-dark[type="date"],
.input-dark[type="time"] { color-scheme: dark; }
.input-dark::-webkit-calendar-picker-indicator { filter: invert(72%) sepia(38%) saturate(600%) hue-rotate(2deg); cursor: pointer; }

select.input-dark {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
select.input-dark option { background: #1a1a1a; color: #fff; }

/* -------------------------------------------------------- autocomplete --- */

.el-autocomplete { position: relative; }

.el-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #1a1a1a;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  max-height: 240px;
  overflow-y: auto;
}

.el-suggestions li {
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}
.el-suggestions li:hover,
.el-suggestions li[aria-selected="true"] {
  background: rgba(212, 168, 83, 0.2);
}

/* --------------------------------------------------------------- route --- */

.el-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--gray, #1a1a1a);
  font-size: 0.875rem;
}
.el-route-label { color: var(--muted, #888); }
.el-route-value { color: #fff; }

/* ------------------------------------------------------------ vehicles --- */

.el-vehicles { display: grid; gap: 12px; }

.el-vehicle {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: left;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--gray, #1a1a1a);
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.el-vehicle:hover { border-color: rgba(255, 255, 255, 0.2); }
.el-vehicle.is-on {
  border-color: var(--gold, #d4a853);
  background: rgba(212, 168, 83, 0.1);
}

.el-vehicle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.el-vehicle-name { display: block; color: #fff; font-weight: 600; }
.el-vehicle-desc { display: block; color: var(--muted, #888); font-size: 0.75rem; }

.el-vehicle-tick {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold, #d4a853);
  color: #000;
}
.el-vehicle.is-on .el-vehicle-tick { display: flex; }

.el-vehicle-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted, #888);
  font-size: 0.75rem;
}
.el-vehicle-meta > span { display: inline-flex; align-items: center; gap: 4px; }

.el-vehicle-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  color: var(--muted, #888);
  font-size: 10px;
}
.el-vehicle-features > span { display: inline-flex; align-items: center; gap: 4px; }
.el-vehicle-features svg { color: var(--gold, #d4a853); flex-shrink: 0; }

.el-vehicle-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.el-vehicle-price .amount { color: var(--gold, #d4a853); font-size: 1.25rem; font-weight: 700; }
.el-vehicle-price .ccy { color: var(--muted, #888); font-size: 0.875rem; }

/* ------------------------------------------------------------- summary --- */

.el-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted, #888);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.el-back:hover { color: #fff; }

.el-summary {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--gray, #1a1a1a);
}
.el-summary h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: normal;
}
.el-summary dl { display: grid; gap: 8px; margin: 0; font-size: 0.875rem; }
.el-summary .row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted, #888); }
.el-summary .row span:last-child {
  color: #fff;
  text-align: right;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}
.el-total-value { color: var(--gold, #d4a853); }

/* ------------------------------------------------------------- payment --- */

.el-pay {
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--gray, #1a1a1a);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.el-pay.is-on { border-color: var(--gold, #d4a853); background: rgba(212, 168, 83, 0.1); }
.el-pay-title { display: block; color: #fff; font-size: 0.875rem; font-weight: 500; }
.el-pay-note { display: block; color: var(--gold, #d4a853); font-size: 0.75rem; margin-top: 4px; }

.el-terms {
  margin-top: 16px;
  color: var(--muted, #888);
  font-size: 0.75rem;
  line-height: 1.8;
}

/* ---------------------------------------------------------------- done --- */

.el-done { text-align: center; padding: 24px 0; }
.el-done-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: var(--gold, #d4a853);
}
.el-done h3 { color: #fff; margin-bottom: 12px; }
.el-done p { color: var(--muted, #888); font-size: 0.875rem; line-height: 1.7; }

/* ----------------------------------------------------------- map panel --- */

.el-map-panel { position: relative; }

.el-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.el-map-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
}
.el-map-badge svg { color: var(--gold, #d4a853); }

.el-map-fallback img { width: 100%; height: auto; border-radius: 8px; object-fit: contain; }
.el-map-fallback p {
  margin-top: 12px;
  text-align: center;
  color: var(--muted, #888);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------- special --- */

.el-special {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: var(--dark, #0d0d0d);
}
.el-special.is-bare { padding: 0; border: none; background: none; }

.el-special-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.el-special-head svg { color: var(--gold, #d4a853); flex-shrink: 0; }
.el-special-head h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  letter-spacing: normal;
}

.el-special-intro {
  margin-bottom: 16px;
  color: var(--muted, #888);
  font-size: 0.875rem;
}

/* -------------------------------------------------------- quote layout --- */

.el-quote-form {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: var(--dark, #0d0d0d);
}

/* ------------------------------------------------------------- loading --- */

.el-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.el-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: el-spin 0.7s linear infinite;
}
.btn-outline-gold.el-loading::after {
  border-color: rgba(212, 168, 83, 0.25);
  border-top-color: #d4a853;
}

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

@media (prefers-reduced-motion: reduce) {
  .el-loading::after { animation-duration: 1.8s; }
}

/* ------------------------------------------------------- hidden guard --- */

/* Several classes above set an explicit `display`, which would otherwise win
   over the `hidden` attribute the widget toggles as it steps through. */
[hidden] { display: none !important; }

/* ==========================================================================
   Custom date / time pickers
   The original used its own dark dropdowns rather than the browser's native
   date and time controls, which look different on every platform.
   ========================================================================== */

/* Headings inside the widget follow the theme's display face, as they did in
   the original build where h1–h3 all inherited Cinzel. */
.el-special-head h3,
.el-summary h3,
.el-done h3 { font-family: var(--font-display, Cinzel, Georgia, serif); }

.el-picker { position: relative; }

/* The real input stays in the DOM so the value posts normally. */
.el-picker > input[type="date"],
.el-picker > input[type="time"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.el-picker-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 36px 14px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(26, 26, 26, 0.9);
  color: var(--muted, #888);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}
.el-picker-trigger.has-value { color: #fff; }
.el-picker-trigger:hover,
.el-picker-trigger[aria-expanded="true"] { border-color: rgba(212, 168, 83, 0.5); }

.el-picker-trigger.is-compact { padding-top: 10px; padding-bottom: 10px; }

.el-picker-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold, #d4a853);
  pointer-events: none;
}
.el-picker-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #888);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.el-picker-trigger[aria-expanded="true"] ~ .el-picker-caret { transform: translateY(-50%) rotate(180deg); }

.el-picker-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #1a1a1a;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* calendar */

.el-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.el-cal-head button {
  display: inline-flex;
  padding: 4px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--gold, #d4a853);
  cursor: pointer;
}
.el-cal-head button:hover { background: rgba(255, 255, 255, 0.1); }
.el-cal-title { color: #fff; font-size: 0.875rem; font-weight: 500; }

.el-cal-dow,
.el-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.el-cal-dow {
  margin-bottom: 4px;
  color: var(--muted, #888);
  font-size: 0.75rem;
  text-align: center;
}

.el-cal-grid button {
  padding: 6px 0;
  border: none;
  border-radius: 4px;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.el-cal-grid button:hover:not(:disabled) { background: rgba(212, 168, 83, 0.2); }
.el-cal-grid button:disabled { color: #444; cursor: not-allowed; }
.el-cal-grid button.is-on { background: var(--gold, #d4a853); color: #000; }
.el-cal-grid span { display: block; }

/* time list */

.el-picker-panel.is-times {
  padding: 0;
  max-height: 12rem;
  overflow-y: auto;
}
.el-picker-panel.is-times button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.el-picker-panel.is-times button:hover { background: rgba(212, 168, 83, 0.2); }
.el-picker-panel.is-times button.is-on { background: var(--gold, #d4a853); color: #000; }

/* ==========================================================================
   Special-event questionnaire
   ========================================================================== */

.el-event-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 8px;
  background: rgba(212, 168, 83, 0.05);
}
.el-event-banner svg { color: var(--gold, #d4a853); flex-shrink: 0; margin-top: 2px; }
.el-event-banner .title { color: #fff; font-size: 0.875rem; font-weight: 500; }
.el-event-banner .note { color: var(--muted, #888); font-size: 0.75rem; margin-top: 4px; }

.el-event-fields,
.el-event-contact {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  margin-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.el-event-heading {
  color: var(--gold, #d4a853);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.el-event-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted, #888);
  font-size: 0.75rem;
}

.el-event-done { text-align: center; padding: 32px 0; }
.el-event-done h3 { color: #fff; margin-bottom: 12px; }
.el-event-done p { color: var(--muted, #888); max-width: 28rem; margin: 0 auto 24px; }

.el-event-reset {
  border: none;
  background: none;
  color: var(--gold, #d4a853);
  font-family: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
}
.el-event-reset:hover { color: var(--gold-light, #e5c77f); }

/* ==========================================================================
   Payment cards — matching the original's two-option layout
   ========================================================================== */

.el-pay {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.el-pay:hover { border-color: rgba(255, 255, 255, 0.2); }
.el-pay.is-on { border-color: var(--gold, #d4a853); background: rgba(212, 168, 83, 0.1); }

.el-pay-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #059669;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.el-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.el-pay-title { display: block; color: #fff; font-weight: 500; }
.el-pay-sub   { display: block; color: var(--muted, #888); font-size: 0.75rem; margin-top: 2px; }

.el-pay-amounts { text-align: right; flex-shrink: 0; }
.el-pay-was {
  display: block;
  color: var(--muted, #888);
  font-size: 0.75rem;
  text-decoration: line-through;
}
.el-pay-now {
  display: block;
  color: var(--gold, #d4a853);
  font-size: 1.125rem;
  font-weight: 700;
}
/* On the deposit card the top line is the amount due now, not a struck-out
   price, so it should not read as cancelled. */
.el-pay [data-deposit-now] { text-decoration: none; }

/* ------------------------------------------------------ hold booking --- */

.el-hold {
  display: block;
  width: 100%;
  padding: 12px 0;
  margin-top: 4px;
  border: none;
  background: none;
  color: var(--gold, #d4a853);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.el-hold:hover { text-decoration: underline; }
.el-hold:disabled { opacity: 0.5; cursor: default; text-decoration: none; }

.el-hold-done {
  padding: 12px 0;
  text-align: center;
  color: #34d399;
  font-size: 0.875rem;
}

/* ==========================================================================
   Booking confirmation / cancellation pages
   ========================================================================== */

.el-result-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold, #d4a853);
}
.el-result-mark.is-cancel {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.el-result-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 3px solid rgba(212, 168, 83, 0.2);
  border-top-color: var(--gold, #d4a853);
  border-radius: 50%;
  animation: el-spin 0.9s linear infinite;
}

.el-result-ref {
  margin-bottom: 24px;
  color: var(--muted, #888);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.el-result-ref strong {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 4px;
  color: var(--gold, #d4a853);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.el-next-steps {
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--dark, #0d0d0d);
  text-align: left;
}
.el-next-steps h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.el-next-steps ul { display: grid; gap: 16px; }
.el-next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2, #e0e0e0);
  font-size: 0.875rem;
  line-height: 1.6;
}
.el-next-steps li svg { color: var(--gold, #d4a853); flex-shrink: 0; margin-top: 2px; }

.el-next-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted, #888);
  font-size: 0.75rem;
  text-align: center;
}
.el-next-note.is-paid { color: #34d399; font-size: 0.875rem; font-weight: 500; }

/* No payment note to show (no Stripe round-trip) — do not leave its divider. */
.el-next-note:empty { display: none; }
