/* Postcode coverage checker. Heading and rich text match Custom Text 1. */
.ebp-areas-covered-1 {
  box-sizing: border-box;
  margin-block: 0;
  color: var(--clr-ink);
  background-color: var(--clr-tide);
  font-family: var(--font-primary);
}

.ebp-areas-covered-1 *,
.ebp-areas-covered-1 *::before,
.ebp-areas-covered-1 *::after {
  box-sizing: border-box;
}

.ebp-areas-covered-1__inner {
  box-sizing: border-box;
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--spacing-28);
}

.ebp-areas-covered-1__heading {
  position: relative;
  margin: 0 auto var(--spacing-28);
  padding-bottom: 0.875rem;
  color: var(--clr-ink);
  font-family: var(--font-primary);
  font-size: var(--fs-48);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  max-width: 42rem;
  text-align: center;
}

/* Draw the short rule shown below the heading in Custom Text 1. */
.ebp-areas-covered-1__heading::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6.25rem;
  height: 1px;
  background-color: currentColor;
  content: "";
  opacity: 0.5;
  transform: translateX(-50%);
}

.ebp-areas-covered-1__content {
  font-size: var(--fs-24);
  line-height: 1.25;
  max-width: 72.688rem;
  margin-inline: auto;
}

.ebp-areas-covered-1__content h3 {
  margin-block-end: 0.8em;
  font-size: var(--fs-36);
}

/* Remove editor-added margins from the outer edges of the text. */
.ebp-areas-covered-1__content > :first-child {
  margin-top: 0;
}

.ebp-areas-covered-1__content > :last-child {
  margin-bottom: 0;
}

.ebp-areas-covered-1__form {
  width: fit-content;
  max-width: 100%;
  margin: var(--spacing-28) auto 0;
}

.ebp-areas-covered-1__label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: var(--fs-12);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.ebp-areas-covered-1__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
}

.ebp-areas-covered-1--centered .ebp-areas-covered-1__row {
  justify-content: center;
}

.ebp-areas-covered-1__input {
  flex: 0 0 15rem;
  width: 15rem;
  min-width: 0;
  height: 2.3rem;
  margin: 0;
  padding: 0 var(--spacing-20);
  border: 1px solid var(--clr-ink);
  border-radius: 0;
  color: inherit;
  background-color: transparent;
  font-family: inherit;
  font-size: var(--fs-12);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.ebp-areas-covered-1__input::placeholder {
  color: inherit;
  opacity: 0.6;
  text-transform: none;
}

.ebp-areas-covered-1__input:focus {
  outline: 0;
  box-shadow: 0 0 0 1px var(--clr-ink);
}

.ebp-areas-covered-1__button {
  flex: 0 0 auto;
}

.ebp-areas-covered-1__result {
  min-height: 1.5em;
  margin: var(--spacing-20) 0 0;
  font-size: var(--fs-18);
  line-height: 1.3;
}

.ebp-areas-covered-1__result:empty {
  margin-top: 0;
}

.ebp-areas-covered-1__result--yes {
  color: var(--clr-main);
}

.ebp-areas-covered-1__result--no,
.ebp-areas-covered-1__result--invalid {
  color: var(--clr-spark);
}

@media (max-width: 767px) {
  .ebp-areas-covered-1 {
    padding-block: var(--spacing-56);
  }

  .ebp-areas-covered-1__inner {
    padding-inline: var(--spacing-20);
  }

  .ebp-areas-covered-1__heading {
    font-size: 2rem;
  }

  .ebp-areas-covered-1__form {
    width: 100%;
  }

  .ebp-areas-covered-1__row {
    flex-direction: column;
    align-items: stretch;
  }

  .ebp-areas-covered-1__input {
    flex: 1 1 auto;
    width: 100%;
  }

  .ebp-areas-covered-1__button {
    inline-size: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebp-areas-covered-1__input {
    transition: none;
  }
}
