/* Fleet Search Form — matches Fleet-web design */
.fleet-sf-wrap {
  font-family: "Inter Tight", "Roboto", system-ui, sans-serif;
}

.fleet-search-form {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 32px 28px;
  box-shadow: 0 8px 40px rgba(10,22,40,.10), 0 2px 12px rgba(10,22,40,.06);
  border: 1px solid rgba(10,22,40,.09);
  overflow: hidden;
  isolation: isolate;
  max-width: 580px;
}

/* diagonal stripe accent */
.fleet-sf__stripes {
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 34px;
  background: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 7px,
    #00BFA6 7px, #00BFA6 9px
  );
  -webkit-mask: linear-gradient(135deg, #000 0%, #000 60%, transparent 95%);
  mask: linear-gradient(135deg, #000 0%, #000 60%, transparent 95%);
  opacity: .18;
  pointer-events: none;
}

/* Car / Van toggle */
.fleet-sf__toggle {
  position: absolute;
  top: 18px; right: 22px;
  z-index: 2;
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 99px;
  padding: 3px;
}

.fleet-seg-btn {
  padding: 5px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  color: #0A1628;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.fleet-seg-btn.is-active {
  background: #1E90E8;
  color: #fff;
}

/* Field grid — always 2 columns */
.fleet-sf-fields-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
  margin-top: 16px;
}

.fleet-sf-row {
  display: contents;
}

.fleet-sf__field {
  margin-top: 16px;
}

.fleet-sf__field label {
  display: block;
  color: #0A1628;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

/* Select wrapper */
.fleet-select-wrap {
  position: relative;
}

.fleet-select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  color: #0A1628;
  border: 1.5px solid rgba(10,22,40,.15);
  border-radius: 10px;
  padding: 13px 36px 13px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.fleet-select-wrap select:hover {
  border-color: rgba(10,22,40,.28);
}

.fleet-select-wrap select:focus {
  outline: none;
  border-color: #1E90E8;
  box-shadow: 0 0 0 3px rgba(30,144,232,.15);
}

.fleet-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 11px; height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'><path d='M1 1l6 6 6-6' stroke='%230A1628' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.fleet-select-wrap.is-disabled select {
  background: #dde1e6;
  color: #9aa0a8;
  cursor: not-allowed;
}

.fleet-select-wrap.is-disabled::after {
  opacity: .4;
}

/* Advanced filters */
.fleet-sf-advanced {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .42s ease, opacity .32s ease, transform .32s ease;
}

.fleet-sf-advanced.is-visible {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}

.fleet-sf-unit {
  font-size: 12px;
  font-weight: 400;
  color: #6B7A8F;
  margin-left: 4px;
}

/* Option button groups */
.fleet-sf-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fleet-sf-opt-btn {
  flex: 1;
  min-width: 32px;
  padding: 9px 6px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0A1628;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}

.fleet-sf-opt-btn:hover {
  background: rgba(0,191,166,.18);
  color: #00BFA6;
  border-color: #00BFA6;
}

.fleet-sf-opt-btn.is-active {
  background: #00BFA6;
  color: #fff;
  border-color: #00BFA6;
}

/* Dual range slider */
.fleet-sf-range-wrap {
  padding: 6px 0 4px;
}

.fleet-sf-range-track {
  position: relative;
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
}

.fleet-sf-range-fill {
  position: absolute;
  top: 0; bottom: 0;
  background: #1E90E8;
  border-radius: 99px;
  left: 0%; right: 0%;
  pointer-events: none;
}

.fleet-sf-slider {
  position: absolute;
  width: 100%; height: 100%;
  top: 50%; transform: translateY(-50%);
  -webkit-appearance: none; appearance: none;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  margin: 0;
}

.fleet-sf-slider::-webkit-slider-runnable-track { background: transparent; }
.fleet-sf-slider::-moz-range-track { background: transparent; }

.fleet-sf-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #00BFA6;
  box-shadow: 0 2px 8px rgba(0,191,166,.30);
  cursor: pointer;
  pointer-events: all;
  transition: transform .15s ease, box-shadow .15s ease;
}

.fleet-sf-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0,191,166,.45);
}

.fleet-sf-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #00BFA6;
  cursor: pointer;
  pointer-events: all;
}

.fleet-sf-range-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.fleet-sf-range-val span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #00BFA6;
  margin-bottom: 5px;
}

.fleet-sf-range-val input[type="number"] {
  width: 100%;
  padding: 6px 10px;
  border: 1.5px solid rgba(0,191,166,.45);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0A1628;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
  appearance: textfield;
}

.fleet-sf-range-val input[type="number"]::-webkit-inner-spin-button,
.fleet-sf-range-val input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.fleet-sf-range-val input[type="number"]:focus {
  border-color: #00BFA6;
  box-shadow: 0 0 0 3px rgba(0,191,166,.18);
}

/* Searchable dropdown — reuses the [fleet_listing] filter-card look (.fl-fc-*
   classes come from listing.css, always enqueued alongside this file) so the
   hero search form and the listing filters share one visual language. */
.fleet-select-wrap.fleet-fc-enhanced select.fleet-fc-native {
  display: none;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #0A1628;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1.5px solid rgba(10,22,40,.15);
  border-radius: 10px;
  padding: 13px 36px 13px 14px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .2s, box-shadow .2s;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-field:hover {
  border-color: rgba(10,22,40,.28);
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-field.is-open {
  outline: none;
  border-color: #1E90E8;
  box-shadow: 0 0 0 3px rgba(30,144,232,.15);
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-field.is-placeholder {
  color: #6B7A8F;
  font-weight: 400;
}

.fleet-select-wrap.fleet-fc-enhanced.is-disabled .fl-fc-field {
  background: #dde1e6;
  color: #9aa0a8;
  cursor: not-allowed;
}

/* Positioned relative to the viewport (not the field) so it always escapes
   .fleet-search-form's overflow:hidden, no matter which row the field sits in. */
.fleet-select-wrap.fleet-fc-enhanced .fl-fc-dropdown {
  position: fixed;
  z-index: 100000;
  display: none;
  background: #fff;
  border: 1px solid rgba(10,22,40,.09);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 12px 48px rgba(10,22,40,.16);
  font-family: "Inter Tight", "Roboto", system-ui, sans-serif;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-dropdown.is-open {
  display: block;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-drop-title {
  font-size: 12px;
  font-weight: 700;
  color: #6B7A8F;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #e5ebf1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-search:focus {
  border-color: #1E90E8;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-pill {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #0A1628;
  background: #f8fafc;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-pill:hover {
  border-color: #1E90E8;
  color: #1E90E8;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-pill.is-active {
  background: #1E90E8;
  color: #fff;
  border-color: #1E90E8;
}

.fleet-select-wrap.fleet-fc-enhanced .fl-fc-nomatch {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

/* Submit button */
.fleet-btn-find {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1E90E8;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.fleet-btn-find:hover {
  background: #166fc0;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26,143,227,.4);
}


.fleet-btn-find svg {
  width: 20px;
  height: 20px;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.fleet-btn-find:hover svg {
  transform: translateX(4px);
}
