/* PlateLookup — VIN/Plate switch & plate input row.
   Designed to drop into either dark dashboard pages or the light checkout page. */

.pv-switch {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  margin: 0 0 14px;
}
.pv-switch .pv-tab {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  opacity: 0.75;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.pv-switch .pv-tab:hover { opacity: 1; }
.pv-switch .pv-tab.is-active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.pv-plate-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 0 12px;
}
.pv-plate-input {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}
.pv-plate-input > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 20px;
  pointer-events: none;
}
.pv-plate-input input {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 42px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pv-plate-input input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.pv-state-input select {
  height: 52px;
  padding: 0 32px 0 14px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 96px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='%23a78bfa'><path d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.pv-state-input select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.pv-state-input select option { color: #0b0b14; background: #fff; }

.pv-lookup-btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.pv-lookup-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45); }
.pv-lookup-btn:active { transform: translateY(0); }
.pv-lookup-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.pv-lookup-btn i { font-size: 18px; }

/* ---- Light theme (checkout, landing hero on light card) ---- */
.lp-body-light .pv-switch,
.pv-switch.pv-light {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.lp-body-light .pv-switch .pv-tab,
.pv-switch.pv-light .pv-tab { color: #475569; }
.lp-body-light .pv-switch .pv-tab.is-active,
.pv-switch.pv-light .pv-tab.is-active { color: #fff; }

.lp-body-light .pv-plate-input input,
.lp-body-light .pv-state-input select {
  background: #fff;
  color: #0b0b14;
  border-color: #e2e8f0;
}
.lp-body-light .pv-plate-input > i { color: #64748b; }

/* ---- Landing hero (dark glass) overrides for a tighter inline feel ---- */
.lp-hero-form .pv-switch { margin-bottom: 12px; }
.lp-hero-form .pv-plate-row { margin-bottom: 12px; }

/* Compact variant for tight cards (e.g. plan single-buy form) */
.pv-compact .pv-plate-input input,
.pv-compact .pv-state-input select,
.pv-compact .pv-lookup-btn { height: 44px; font-size: 14px; }
.pv-compact .pv-switch { margin-bottom: 8px; }
.pv-compact .pv-plate-row { margin-bottom: 8px; }
