/**
 * Reusable Jeep search form (hero + panel variants).
 */

.rc-search {
  --rc-search-bg: #fff;
  --rc-search-ink: #1a2332;
  --rc-search-muted: #5a6573;
  --rc-search-border: #d8dee5;
  --rc-search-brand: #17457b;
  --rc-search-brand-dark: #123a66;
  width: 100%;
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rc-search__form {
  margin: 0;
}

.rc-search__fields {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr auto;
  gap: 0.85rem 1rem;
  align-items: end;
  padding: 1.1rem 1.15rem;
  background: var(--rc-search-bg);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.06),
    0 18px 40px rgba(16, 24, 40, 0.14);
}

.rc-search--hero .rc-search__fields {
  /* Solid wash — backdrop-filter creates a containing block that breaks Easepick position:fixed. */
  background: rgba(255, 255, 255, 0.98);
}

.rc-search--panel .rc-search__fields {
  border: 1px solid #e6eaee;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.rc-search--compact .rc-search__fields {
  padding: 0.85rem 0.9rem;
  gap: 0.65rem;
}

.rc-search__field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rc-search__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rc-search-muted);
  min-height: 1.2em;
}

.rc-search__label--spacer {
  visibility: hidden;
  user-select: none;
}

.rc-search__control {
  position: relative;
  overflow: visible;
}

.rc-search__control select,
.rc-search__control input,
.rc-search__input,
.rc-search__submit {
  height: 3.15rem;
  box-sizing: border-box;
}

.rc-search__control select,
.rc-search__control input,
.rc-search__input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rc-search-border);
  border-radius: 10px;
  background: #f7f9fb;
  color: var(--rc-search-ink);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
}

.rc-search__control select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23123a66' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3 0 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  cursor: pointer;
}

.rc-search__control input::placeholder,
.rc-search__input::placeholder {
  color: #8a94a1;
  font-weight: 400;
}

.rc-search__control select:focus-visible,
.rc-search__control input:focus-visible,
.rc-search__input:focus-visible {
  outline: 2px solid var(--rc-search-brand);
  outline-offset: 1px;
  border-color: var(--rc-search-brand);
  background: #fff;
}

.rc-search__field--submit {
  justify-content: flex-end;
}

.rc-search__submit {
  /* Flat brand styles from rc-buttons.css; layout-only overrides here */
  width: 100%;
  min-width: 10rem;
  min-height: 3.15rem;
  height: 3.15rem;
  font-size: 1.02rem;
}

.rc-search__submit-icon {
  font-size: 1.1em;
  line-height: 1;
}

/* Kill leftover OVA / Remons search chrome inside our component */
.rc-search .ova-product-search,
.rc-search .product-search-form,
.rc-search .label_search,
.rc-search .field-label {
  all: unset;
  display: contents;
}

.rc-search .input-with-icon {
  position: relative;
}

/* Hide OVA icon fonts that often render as broken squares */
.rc-search i,
.rc-search .brwicon2,
.rc-search [class*="flaticon"] {
  display: none !important;
}

@media (max-width: 960px) {
  .rc-search__fields {
    grid-template-columns: 1fr 1fr;
  }

  .rc-search__field--location {
    grid-column: 1 / -1;
  }

  .rc-search__field--submit {
    grid-column: 1 / -1;
  }

  .rc-search__submit {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .rc-search__fields {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .rc-search__field--pickup,
  .rc-search__field--dropoff {
    grid-column: auto;
  }
}
