/* The theme has no global box-sizing reset, and these styles are written
   assuming border-box — without this, width:100% + padding overflows. */
.zip-lookup,
.zip-lookup *,
.zip-lookup *::before,
.zip-lookup *::after {
  box-sizing: border-box;
}

.zip-lookup {
  width: 100%;
  margin: 0;
  padding: clamp(32px, 4vw, 36px) clamp(20px, 6vw, 120px);
  background: var(--Main-Green, #395935);
  color: #fff;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

html.has-scroll-animations .zip-lookup__inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.has-scroll-animations .zip-lookup.is-visible .zip-lookup__inner {
  opacity: 1;
  transform: none;
}

.zip-lookup__inner {
  width: 100%;
  max-width: var(--Container-container-large, 1280px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.zip-lookup__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #63bb64;
  font-family: 'Teachers', Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zip-lookup__title {
  margin: 0 0 8px;
  color: #fff;
  font-family: 'Teachers', Inter, system-ui, sans-serif;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.zip-lookup__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.5;
}

.zip-lookup__controls {
  display: flex;
  gap: 10px;
}

.zip-lookup__input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
}

.zip-lookup__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.zip-lookup__input:focus {
  outline: none;
  border-color: #63bb64;
  background: rgba(255, 255, 255, 0.14);
}

.zip-lookup__call {
  padding: 15px 22px;
  border-radius: 4px;
  background: var(--Secondary-Light-Green, #4fa550);
  color: #fff;
  font-family: 'Teachers', Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.zip-lookup__call:hover,
.zip-lookup__call:focus-visible {
  background: #63bb64;
  color: #fff;
}

.zip-lookup__result {
  margin-top: 16px;
  min-height: 74px;
}

.zip-lookup__panel {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
}

.zip-lookup__panel--found {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.zip-lookup__match-name {
  display: block;
  color: #fff;
  font-family: 'Teachers', Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.zip-lookup__match-detail {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.zip-lookup__match-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-family: 'Teachers', Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.zip-lookup__match-link:hover,
.zip-lookup__match-link:focus-visible {
  color: #9be29c;
  border-bottom-color: #9be29c;
}

@media (max-width: 1024px) {
  .zip-lookup__inner {
    grid-template-columns: 1fr;
  }

  .zip-lookup__result {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .zip-lookup__controls {
    flex-direction: column;
  }

  .zip-lookup__call {
    text-align: center;
  }

  .zip-lookup__panel--found {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
