.representative-finder {
  max-width: 860px;
  margin: 0 auto 48px;
}

.representative-finder__intro {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--ht-yellow, #f6c400);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ht-muted, #5e6a75);
}

.representative-finder__intro p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.representative-finder__form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.7fr) auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
  border: 1px solid var(--ht-border, #d9e3ea);
  border-radius: 8px;
  background: var(--ht-surface, #fff);
  box-shadow: 0 12px 30px rgba(8, 31, 51, 0.08);
}

.representative-finder__field {
  min-width: 0;
}

.representative-finder__field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ht-ink, #18222d);
  font-weight: 800;
}

.representative-finder__field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--ht-border, #d9e3ea);
  border-radius: 6px;
  color: var(--ht-ink, #18222d);
  background: #fff;
  font: inherit;
}

.representative-finder__field input:disabled {
  color: #6b7280;
  background: #f1f5f9;
}

.representative-finder__combo {
  position: relative;
}

.representative-finder__suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--ht-border, #d9e3ea);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(8, 31, 51, 0.16);
}

.representative-finder__suggestions button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--ht-ink, #18222d);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.representative-finder__suggestions button:hover,
.representative-finder__suggestions button:focus,
.representative-finder__suggestions .is-active button {
  color: var(--ht-blue-dark, #073c66);
  background: var(--ht-blue-soft, #eaf5fb);
}

.representative-finder__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.representative-finder__button,
.representative-finder__reset {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.representative-finder__button {
  border: 1px solid var(--ht-blue, #045f9f);
  color: #fff;
  background: var(--ht-blue, #045f9f);
}

.representative-finder__button:hover,
.representative-finder__button:focus {
  border-color: var(--ht-blue-dark, #073c66);
  background: var(--ht-blue-dark, #073c66);
}

.representative-finder__button:disabled {
  border-color: #cbd5e1;
  color: #64748b;
  background: #e2e8f0;
  cursor: not-allowed;
}

.representative-finder__reset {
  border: 1px solid var(--ht-border, #d9e3ea);
  color: var(--ht-blue-dark, #073c66);
  background: #fff;
}

.representative-finder__selected {
  margin-top: 14px;
  color: var(--ht-muted, #5e6a75);
  font-weight: 700;
}

.representative-finder__result {
  margin-top: 18px;
}

.representative-finder__result--ok,
.representative-finder__result--empty {
  display: grid;
  gap: 5px;
  padding: 20px;
  border-radius: 8px;
}

.representative-finder__result--ok {
  border: 1px solid rgba(4, 95, 159, 0.22);
  background: var(--ht-blue-soft, #eaf5fb);
}

.representative-finder__result--empty {
  border: 1px solid rgba(201, 51, 58, 0.22);
  background: #fff5f5;
}

.representative-finder__result strong {
  color: var(--ht-blue-dark, #073c66);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.representative-finder__result small {
  color: var(--ht-muted, #5e6a75);
}

.representative-finder__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.representative-finder__contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(4, 95, 159, 0.2);
  border-radius: 6px;
  background: #fff;
  color: var(--ht-blue-dark, #073c66);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.representative-finder__contact-link:hover,
.representative-finder__contact-link:focus {
  border-color: var(--ht-blue, #045f9f);
  color: var(--ht-red, #c9333a);
}

.representative-finder__eyebrow {
  color: var(--ht-red, #c9333a);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.representative-finder__meta {
  margin-top: 18px;
  color: var(--ht-muted, #5e6a75);
  font-size: 0.93rem;
}

@media (max-width: 780px) {
  .representative-finder__form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .representative-finder__actions {
    justify-content: stretch;
  }

  .representative-finder__button,
  .representative-finder__reset {
    flex: 1 1 0;
  }
}
