/* County-wide route map and conversion ribbon --------------------------- */

.service-route-check {
  padding: 1rem 0;
  border-top: 1px solid rgba(184, 150, 90, 0.58);
  border-bottom: 1px solid rgba(184, 150, 90, 0.58);
  background: var(--services-navy);
}

.service-route-check__inner {
  width: min(calc(100% - 2rem), 1560px);
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
  background: var(--services-cream);
}

.service-route-check__map-stage {
  position: relative;
  min-height: clamp(34rem, 42vw, 39rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 150, 90, 0.72);
  background: #f3eee5;
}

.service-route-check__map {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 100%;
  background: #f3eee5;
}

.service-route-check__map .leaflet-tile-pane {
  filter: grayscale(0.72) sepia(0.16) saturate(0.72) contrast(1.13) brightness(0.94);
  opacity: 1;
}

.service-route-check__map .leaflet-control-zoom {
  margin-top: 1.25rem;
  margin-right: 1.25rem;
  border: 1px solid rgba(8, 19, 33, 0.34);
  border-radius: 0;
  box-shadow: none;
}

.service-route-check__map .leaflet-control-zoom a {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-bottom: 1px solid rgba(8, 19, 33, 0.24);
  border-radius: 0;
  background: rgba(250, 246, 238, 0.94);
  color: var(--services-ink);
  font: 400 1.2rem/2.35rem Inter, Arial, sans-serif;
}

.service-route-check__map .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.service-route-check__map .leaflet-control-attribution {
  padding: 0.22rem 0.4rem;
  background: rgba(250, 246, 238, 0.86);
  color: rgba(8, 19, 33, 0.64);
  font: 500 0.48rem/1.25 Inter, Arial, sans-serif;
}

.service-route-check__map .leaflet-control-attribution a {
  color: var(--services-ink);
}

.service-route-check__copy {
  position: absolute;
  z-index: 700;
  top: 50%;
  left: clamp(2rem, 6vw, 6.5rem);
  width: min(32rem, 37%);
  transform: translateY(-50%);
  color: var(--services-ink);
  pointer-events: none;
}

.service-route-check__copy .services-kicker {
  color: var(--services-gold-strong);
}

.service-route-check__copy h2 {
  max-width: 12ch;
  margin: 1rem 0 0;
  color: var(--services-ink);
  font-size: clamp(4rem, 5.8vw, 5.85rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.service-route-check__copy h2 span {
  display: block;
  white-space: nowrap;
}

.service-route-check__copy > p:last-of-type {
  max-width: 29rem;
  margin: 1.9rem 0 0;
  color: rgba(8, 19, 33, 0.72);
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.service-route-check__copy a {
  width: fit-content;
  margin-top: 1.75rem;
  padding-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--services-gold-strong);
  color: var(--services-ink);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
}

.service-route-check__copy a i {
  color: var(--services-gold-strong);
  font-size: 0.9rem;
}

.service-route-check__facility {
  position: absolute;
  z-index: 760;
  padding: 0;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--services-cream);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(-1.6rem, -50%);
  transition: opacity 180ms ease;
}

.service-route-check__facility.is-positioned {
  opacity: 1;
  visibility: visible;
}

.service-route-check__facility-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--services-gold-strong);
  background: var(--services-navy);
  color: var(--services-gold);
}

.service-route-check__facility-icon i {
  font-size: 1.55rem;
}

.service-route-check__facility-copy {
  width: 13.75rem;
  padding: 0.82rem 0.95rem;
  display: block;
  border: 1px solid var(--services-gold-strong);
  border-left: 0;
  background: rgba(8, 19, 33, 0.95);
  text-align: left;
}

.service-route-check__facility-copy strong,
.service-route-check__facility-copy span {
  display: block;
  font-family: Inter, Arial, sans-serif;
  text-transform: uppercase;
}

.service-route-check__facility-copy strong {
  color: var(--services-gold);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.35;
}

.service-route-check__facility-copy span {
  margin-top: 0.34rem;
  color: var(--services-cream);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.48;
}

.service-route-check__facility:hover .service-route-check__facility-icon,
.service-route-check__facility:focus-visible .service-route-check__facility-icon {
  background: var(--services-gold-strong);
  color: var(--services-navy);
}

.service-route-check__facility:focus-visible {
  outline: 2px solid var(--services-navy);
  outline-offset: 3px;
}

.service-route-check__county-label {
  position: absolute;
  z-index: 650;
  padding: 0.48rem 0.62rem;
  border: 1px solid var(--services-gold-strong);
  background: rgba(250, 246, 238, 0.92);
  color: var(--services-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
}

.service-route-check__county-label.is-positioned {
  opacity: 1;
  visibility: visible;
}

.service-route-check__form {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 14.5rem;
  padding: 2.35rem clamp(1.5rem, 3.4vw, 3.5rem) 2rem;
  display: grid;
  grid-template-columns: minmax(14.5rem, 0.82fr) minmax(9rem, 0.8fr) minmax(11rem, 0.95fr) minmax(7rem, 0.55fr) minmax(15rem, 1fr);
  grid-template-areas:
    "heading company email zip submit"
    "heading note note note message";
  align-items: end;
  gap: 1.25rem clamp(1rem, 2.2vw, 2.25rem);
  background: var(--services-navy);
  color: var(--services-cream);
}

.service-route-check__form-heading {
  grid-area: heading;
  align-self: center;
  padding-right: clamp(1rem, 2vw, 2rem);
  border-right: 1px solid rgba(184, 150, 90, 0.58);
}

.service-route-check__form-heading p,
.service-route-check__form-heading h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.88;
  white-space: nowrap;
}

.service-route-check__form-heading p {
  color: rgba(250, 246, 238, 0.66);
}

.service-route-check__field {
  min-width: 0;
}

.service-route-check__field:nth-of-type(2) {
  grid-area: company;
}

.service-route-check__field:nth-of-type(3) {
  grid-area: email;
}

.service-route-check__field--zip {
  grid-area: zip;
}

.service-route-check__field label {
  display: block;
  color: var(--services-gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.service-route-check__field input {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(250, 246, 238, 0.48);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--services-cream);
  font: 500 0.85rem/1.2 Inter, Arial, sans-serif;
  transition: border-color 180ms ease;
}

.service-route-check__field input:focus {
  border-bottom-color: var(--services-gold);
}

.service-route-check__field input[aria-invalid="true"] {
  border-bottom-color: #d79f8a;
}

.service-route-check__submit.services-button {
  grid-area: submit;
  width: 100%;
  min-height: 3.75rem;
  margin: 0;
  border: 1px solid var(--services-gold-strong);
  background: var(--services-gold-strong);
  color: var(--services-navy);
}

.service-route-check__submit.services-button:hover,
.service-route-check__submit.services-button:focus-visible {
  background: var(--services-cream);
  border-color: var(--services-cream);
}

.service-route-check__note {
  grid-area: note;
  max-width: none;
  min-height: 1.25rem;
  margin: 0;
  align-items: center;
  color: rgba(250, 246, 238, 0.54);
  font-size: 0.6rem;
  line-height: 1.45;
}

.service-route-check__note i {
  margin: 0;
  color: var(--services-gold);
  font-size: 0.9rem;
}

.service-route-check__message {
  grid-area: message;
  min-height: 1.25rem;
  margin: 0;
  color: var(--services-cream);
  font-size: 0.6rem;
  line-height: 1.45;
}

.service-route-check__message:not(:empty) {
  padding-left: 0.75rem;
  border-left: 1px solid var(--services-gold);
}

@media (max-width: 1180px) {
  .service-route-check__form {
    grid-template-columns: minmax(10rem, 0.72fr) repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "heading company email"
      "heading zip submit"
      "heading note message";
  }
}

@media (max-width: 900px) {
  .service-route-check__inner {
    width: min(calc(100% - 2rem), 46rem);
  }

  .service-route-check__map-stage {
    min-height: 40rem;
  }

  .service-route-check__copy {
    left: clamp(1.5rem, 6vw, 3rem);
    width: min(25rem, 48%);
  }

  .service-route-check__copy h2 {
    font-size: clamp(3.8rem, 9vw, 5.4rem);
  }

  .service-route-check__form {
    min-height: 0;
    padding: 3rem clamp(1.5rem, 6vw, 3rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "heading heading"
      "company email"
      "zip submit"
      "note message";
  }

  .service-route-check__form-heading {
    padding: 0 0 1.5rem;
    border-right: 0;
    border-bottom: 1px solid rgba(184, 150, 90, 0.58);
  }

  .service-route-check__form-heading p,
  .service-route-check__form-heading h3 {
    display: inline;
  }
}

@media (max-width: 620px) {
  .service-route-check {
    padding-inline: 0;
  }

  .service-route-check__inner {
    width: 100%;
  }

  .service-route-check__map-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .service-route-check__copy {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    order: 1;
    width: 100%;
    padding: 3.5rem 1.25rem 2.75rem;
    transform: none;
    border-bottom: 1px solid rgba(184, 150, 90, 0.58);
    background: var(--services-cream);
  }

  .service-route-check__copy h2 {
    max-width: 8ch;
    font-size: clamp(3.9rem, 17vw, 5.25rem);
  }

  .service-route-check__copy > p:last-of-type {
    margin-top: 1.4rem;
  }

  .service-route-check__map {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: 31rem;
    min-height: 31rem;
  }

  .service-route-check__map .leaflet-control-zoom {
    margin-top: 0.75rem;
    margin-right: 0.75rem;
  }

  .service-route-check__facility {
    transform: translate(-1rem, -50%);
  }

  .service-route-check__facility-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .service-route-check__facility-copy {
    width: 10.75rem;
    padding: 0.65rem 0.72rem;
  }

  .service-route-check__facility-copy strong {
    font-size: 0.51rem;
  }

  .service-route-check__facility-copy span {
    font-size: 0.47rem;
  }

  .service-route-check__form {
    padding: 2.75rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "company"
      "email"
      "zip"
      "submit"
      "note"
      "message";
    gap: 1.3rem;
  }

  .service-route-check__form-heading p,
  .service-route-check__form-heading h3 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .service-route-check__field--zip {
    width: min(100%, 11rem);
  }

  .service-route-check__submit.services-button {
    margin-top: 0.45rem;
  }

  .service-route-check__note {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-route-check__field input,
  .service-route-check__submit.services-button {
    transition: none;
  }
}
