/* Homepage Parts Finder card */

.texan-parts-finder {
  width: 100%;
  max-width: none;
}

.texan-parts-finder__card {
  background: var(--texan-flag-red, #bf0a30);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(191, 10, 48, 0.28);
  overflow: hidden;
}

.texan-parts-finder__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.texan-parts-finder__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.4rem;
  padding: 0.7rem 0.4rem 0.6rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  position: relative;
}

.texan-parts-finder__tab-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.texan-parts-finder__tab-icon svg {
  width: 2.1rem;
  height: 2.1rem;
  stroke: currentColor;
  fill: none;
}

.texan-parts-finder__tab-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.texan-parts-finder__tab.is-active {
  color: var(--texan-white);
  font-weight: 700;
}

.texan-parts-finder__tab.is-active::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 3px;
  background: var(--texan-white);
  border-radius: 2px 2px 0 0;
}

.texan-parts-finder__body {
  padding: 1.8rem 1.6rem 1.8rem;
  text-align: center;
}

@media screen and (min-width: 750px) {
  .texan-parts-finder__body {
    padding: 2rem 2.2rem 2.2rem;
  }
}

.texan-parts-finder__heading {
  margin: 0 0 1.4rem;
  font-size: clamp(1.45rem, 1.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texan-white);
}

.texan-parts-finder__fields {
  display: grid;
  gap: 1rem;
}

.texan-parts-finder__fields[hidden] {
  display: none;
}

.texan-parts-finder__row {
  display: grid;
  gap: 1rem;
}

.texan-parts-finder__row--split {
  grid-template-columns: 1fr 1fr;
}

.texan-parts-finder__field {
  position: relative;
}

.texan-parts-finder__field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.texan-parts-finder__field select,
.texan-parts-finder__field input {
  width: 100%;
  height: 4.4rem;
  padding: 0 3.2rem 0 1.2rem;
  border: 0;
  border-radius: 6px;
  background: var(--texan-white);
  color: var(--texan-navy, #0a1128);
  font-size: 1.4rem;
  appearance: none;
}

.texan-parts-finder__field select {
  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='%230a1128' d='M1.2 1.3 6 6.1l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
}

.texan-parts-finder__field select:disabled,
.texan-parts-finder__field input:disabled {
  color: var(--texan-muted);
  background-color: #f3f4f7;
}

.texan-parts-finder__field select:focus,
.texan-parts-finder__field input:focus {
  outline: 2px solid var(--texan-flag-blue, #002868);
  outline-offset: 1px;
}

.texan-parts-finder__submit {
  display: flex;
  width: 100%;
  margin: 1.4rem 0 0;
  height: 4.8rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--texan-flag-blue, #002868);
  color: var(--texan-white);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.texan-parts-finder__submit:hover:not(:disabled) {
  background: #001d4d;
}

.texan-parts-finder__submit:disabled {
  background: var(--texan-flag-blue, #002868);
  color: rgba(255, 255, 255, 0.62);
  cursor: not-allowed;
}

.texan-parts-finder__sku {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--texan-white);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.texan-parts-finder__sku:hover {
  color: #fff3d0;
}

.texan-parts-finder__browse {
  display: block;
  margin-top: 0.7rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.texan-parts-finder__browse:hover {
  color: var(--texan-white);
}
