.postcode-area-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  padding-block: clamp(56px, 8vw, 112px);
}

.postcode-area-hero h1 {
  max-width: 12ch;
  font-size: clamp(45px, 6vw, 88px);
  text-wrap: balance;
}

.postcode-area-hero .lede {
  max-width: 34ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.65vw, 21px);
}

.postcode-finder {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(20px, 3.5vw, 38px);
  border: 1px solid #365365;
  border-radius: 24px;
  background: linear-gradient(155deg, #162634, #0d141a);
  box-shadow: 0 24px 65px #0005;
  scroll-margin-top: 110px;
}

.postcode-finder [hidden] {
  display: none;
}

.postcode-finder label {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.postcode-finder__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.postcode-finder__field input,
.postcode-finder__field button {
  min-width: 0;
  min-height: 52px;
  padding: 10px 15px;
  border-radius: 10px;
  font: inherit;
}

.postcode-finder__field input {
  border: 1px solid #647b8e;
  background: #091117;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.postcode-finder__field input::placeholder {
  color: #9bafbe;
}

.postcode-finder__field input[aria-invalid="true"] {
  border-color: #ffb5ad;
}

.postcode-finder__field button {
  border: 0;
  background: var(--blue);
  color: #00111d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.postcode-finder__field button:hover,
.postcode-finder__contact > .button:hover {
  background: var(--blue-soft);
}

.postcode-finder :is(input, button, summary, h2):focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 3px;
}

.postcode-finder__hint,
.postcode-finder__status,
.postcode-finder__result > p {
  color: #b8c8d3;
  font-size: 13px;
  line-height: 1.6;
}

.postcode-finder__hint {
  margin: 9px 0 0;
}

.postcode-finder__status {
  margin: 12px 0 0;
  color: #fff;
}

.postcode-finder__status:empty {
  margin: 0;
}

.postcode-finder__result {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.postcode-finder__result h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.postcode-finder__result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  margin: 16px 0;
}

.postcode-finder__result dt {
  margin-bottom: 3px;
  color: #b8c8d3;
  font-size: 12px;
}

.postcode-finder__result dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.postcode-finder__contact {
  margin-top: 18px;
}

.postcode-finder__contact > .button {
  width: 100%;
  border-radius: 10px;
  font-size: 14px;
}

.postcode-finder__contact ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.postcode-finder__contact li a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.postcode-credits {
  font-size: 11px;
  line-height: 1.55;
}
.postcode-credits[open] {
  flex-basis: 100%;
}
.postcode-credits summary {
  width: fit-content;
  cursor: pointer;
  color: #aeb7bd;
}
.postcode-credits p {
  max-width: 75ch;
}
.postcode-credits a {
  text-decoration: underline;
}

@media (max-width: 870px) {
  .postcode-area-hero {
    grid-template-columns: 1fr;
  }

  .postcode-finder {
    max-width: 600px;
  }
}

@media (max-width: 410px) {
  .postcode-finder__field {
    grid-template-columns: 1fr;
  }
}
