.vehicle-finder {
  padding: 24px 0;
  background: #f8f9fa;
  border-block: 1px solid #e5e7eb;
}

.vehicle-finder h2 {
  margin-bottom: 16px;
  color: #0047ab;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.vehicle-finder [hidden] { display: none !important; }
.vehicle-finder__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.vehicle-finder__modes { flex: 0 0 auto; border: 0; display: grid; gap: 4px; }
.vehicle-finder__modes label { display: flex; align-items: center; gap: 5px; color: #000; font-size: 14px; line-height: 20px; cursor: pointer; }
.vehicle-finder__modes input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.vehicle-finder__modes input[type="radio"]:checked {
  border: 6px solid #f58b15;
}
.vehicle-finder__fields { display: flex; flex: 1; flex-wrap: wrap; gap: 12px; min-width: 180px; }
.vehicle-finder__field { position: relative; flex: 1 1 150px; min-width: 0; max-width: 280px; }
.vehicle-finder__field select,
.vehicle-finder__plate input {
  width: 100%;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 0 32px 0 12px;
  color: #374151;
  font: inherit;
  font-size: 14px;
}
.vehicle-finder__field select { cursor: pointer; text-overflow: ellipsis; }
.vehicle-finder__field select:not(.is-filled) { color: #6b7280; }
.vehicle-finder__field select.is-filled { appearance: none; }
.vehicle-finder__field.is-open { z-index: 30; }
.vehicle-finder__select-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  color: #9ca3af;
  font: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.vehicle-finder__select-trigger::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -2px;
  border: 5px solid transparent;
  border-bottom: 0;
  border-top-color: #9ca3af;
}
.vehicle-finder__select-trigger.is-filled { color: #6b7280; }
.vehicle-finder__select-trigger.is-filled::after { display: none; }
.vehicle-finder__select-trigger:disabled { cursor: default; opacity: .65; }
.vehicle-finder__select-panel {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 0;
  border-radius: 14px;
  background: rgba(242, 242, 242, .98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
  overflow: hidden;
}
.vehicle-finder__select-search {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 20px);
  height: 42px;
  margin: 10px;
  padding: 0 10px;
  border: 1px solid #aaa;
  border-radius: 11px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 14px;
}
.vehicle-finder__select-search::placeholder { color: #6b7280; opacity: 1; }
.vehicle-finder__select-search:focus-visible { outline-offset: 1px; }
.vehicle-finder__select-list {
  position: relative;
  max-height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #949494 #fff;
}
.vehicle-finder__select-list::-webkit-scrollbar { width: 12px; }
.vehicle-finder__select-list::-webkit-scrollbar-track { background: #fff; }
.vehicle-finder__select-list::-webkit-scrollbar-thumb { background: #949494; border: 3px solid #fff; border-radius: 8px; }
.vehicle-finder__select-option {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.vehicle-finder__select-option.is-active,
.vehicle-finder__select-option:hover { background: #2850bd; color: #fff; }
.vehicle-finder__select-empty { margin: 0; padding: 12px 15px; color: #6b7280; font-size: 14px; }
.vehicle-finder__clear {
  position: absolute;
  right: 3px;
  top: 5px;
  width: 32px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  color: #6b7280;
  background: #fff;
  font-size: 23px;
  cursor: pointer;
}
.vehicle-finder__clear:hover { color: #0047ab; background: #eef4fb; }
.vehicle-finder__plate { position: relative; flex: 2 1 260px; max-width: 420px; }
.vehicle-finder__plate > i { position: absolute; left: 14px; top: 14px; color: #ec861a; }
.vehicle-finder__plate input { padding-left: 40px; text-transform: uppercase; }
.vehicle-finder__plate input::placeholder { text-transform: none; }
.vehicle-finder__security { flex: 0 1 300px; min-width: 0; max-width: 100%; }
.vehicle-finder__security p { margin: 4px 0 0; color: #6b7280; font-size: 13px; }
.vehicle-finder__security > button { margin-top: 6px; padding: 6px 0; border: 0; background: transparent; color: #0047ab; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.vehicle-finder__security > button:disabled { opacity: .5; cursor: default; }
.vehicle-finder__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: #0047ab;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.vehicle-finder__submit:hover:not(:disabled) { background: #003380; }
.vehicle-finder__submit:disabled { opacity: .5; cursor: not-allowed; }
.vehicle-finder :is(input, select, button):focus-visible { outline: 3px solid #85b5f2; outline-offset: 3px; }
.vehicle-finder__hint { margin-top: 12px; font-size: 14px; color: #374151; }
.vehicle-finder__note { margin-top: 4px; font-size: 13px; color: #6b7280; }
.vehicle-finder__result { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #0047ab; background: #edf4fd; font-size: 14px; }
.vehicle-finder__result strong { display: block; margin-bottom: 4px; color: #003380; }
.vehicle-finder__result p + p { margin-top: 6px; }
.vehicle-finder__result--error { border-left-color: #b42318; background: #fff1f0; color: #8a1c13; }
.vehicle-finder__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 12px 10px 0 0;
  padding: 8px 14px;
  border: 1px solid #0047ab;
  border-radius: 6px;
  background: #fff;
  color: #0047ab;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.vehicle-finder__action--primary { background: #0047ab; color: #fff; }
.vehicle-finder__action:hover { text-decoration: underline; }
.vehicle-finder__action:focus-visible { outline: 3px solid #85b5f2; outline-offset: 3px; }
.vehicle-finder__field select:disabled { cursor: default; opacity: .65; }
.vehicle-finder__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .vehicle-finder__modes { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .vehicle-finder__fields { flex-basis: 100%; }
  .vehicle-finder__field, .vehicle-finder__plate { flex-basis: 100%; max-width: none; }
  .vehicle-finder__select-search { font-size: 16px; }
  .vehicle-finder__security { flex-basis: 100%; }
  .vehicle-finder__submit { width: 100%; }
}
