/* KCC homepage under-hero provider search.
   Scoped to section.kcc-finder / [data-kcc-finder] so header pills are untouched.
   Beats html body.home-release-7m .pb1-pillbar / .pb1-bar !important rules. */

html body section.pb1-pillbar.kcc-finder[data-kcc-finder],
html body section.kcc-finder[data-kcc-finder] {
  background: var(--pb1-canvas, #F7F5F0);
  padding: 20px 0 24px !important;
}

html body section.kcc-finder[data-kcc-finder] .wrap,
html body section.pb1-pillbar.kcc-finder[data-kcc-finder] .wrap {
  max-width: 1200px;
}

.kcc-finder__card {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 20px 18px 18px;
  background: #FFFFFF;
  border: 1px solid var(--line, #DCE5D4);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgb(31 42 29 / 4%), 0 8px 24px rgb(31 42 29 / 5%);
}

.kcc-finder__title {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink, #23301D);
}

.kcc-finder__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kcc-finder__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.kcc-finder__field label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink, #23301D);
}

.kcc-finder__field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1.5px solid var(--control-line, #75846C);
  border-radius: 12px;
  background-color: #FFFFFF;
  color: var(--ink, #23301D);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  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'><path fill='%2323301D' d='M1.1 1.2L6 6.2l4.9-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.kcc-finder__field select:hover {
  border-color: var(--ink, #23301D);
}

.kcc-finder__field select:focus-visible,
.kcc-finder__go:focus-visible,
.kcc-finder__all a:focus-visible {
  outline: 3px solid #2E4D1A;
  outline-offset: 3px;
}

.kcc-finder__action {
  margin-top: 4px;
}

.kcc-finder__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #416B24);
  color: #FFFFFF;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(31 42 29 / 12%), 0 6px 16px rgb(31 42 29 / 10%);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.kcc-finder__go:hover {
  background: var(--accent-hover, #2E4D1A);
  transform: translateY(-1px);
}

.kcc-finder__go:active {
  background: var(--accent-hover, #2E4D1A);
  transform: none;
}

.kcc-finder__all {
  margin: 14px 0 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.kcc-finder__all a {
  color: var(--accent, #416B24);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.kcc-finder__all a:hover {
  color: var(--accent-hover, #2E4D1A);
}

@media (prefers-reduced-motion: reduce) {
  .kcc-finder__go,
  .kcc-finder__go:hover {
    transition: none;
    transform: none;
  }
}

@media (min-width: 1024px) {
  html body section.pb1-pillbar.kcc-finder[data-kcc-finder],
  html body section.kcc-finder[data-kcc-finder] {
    padding: 28px 0 32px !important;
  }

  .kcc-finder__card {
    padding: 22px 24px 20px;
  }

  .kcc-finder__title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .kcc-finder__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto;
    gap: 16px;
    align-items: end;
  }

  .kcc-finder__action {
    margin-top: 0;
  }

  .kcc-finder__go {
    width: auto;
    min-width: 180px;
    min-height: 48px;
    height: 48px;
    padding: 0 28px;
    white-space: nowrap;
  }

  .kcc-finder__all {
    margin-top: 12px;
    text-align: left;
  }
}
