.wp-block-pre-footer {
  position: relative;
  overflow: hidden;
}

.wp-block-pre-footer__container {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-xxxxl);
}

@media (max-width: 1023.98px) {
  .wp-block-pre-footer__container {
    flex-direction: column;
  }
}
.wp-block-pre-footer__container > * {
  flex: 0 0 calc(50% - var(--spacing-xxxxl) / 2);
}

.wp-block-pre-footer__branch-finder-col {
  max-width: 516px;
}

.wp-block-pre-footer__form-col {
  --heading-colour: var(--text-on-light);
  max-width: 572px;
  color: var(--text-on-light);
}

@media (max-width: 1023.98px) {
  .wp-block-pre-footer__form-col {
    position: relative;
  }
}
.wp-block-pre-footer__form-col::after {
  content: "";
  position: absolute;
  top: calc(var(--spacing-xxxxl) / 2 * -1);
  bottom: calc(var(--spacing-block-bottom) * -1);
  left: calc(var(--container-padding) * -1);
  width: 100vw;
  background-color: var(--colour-2);
}

@media (min-width: 1024px) {
  .wp-block-pre-footer__form-col::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 50vw;
  }
}
.wp-block-pre-footer__heading {
  margin-bottom: var(--spacing-s);
}

.wp-block-pre-footer__content {
  margin-bottom: var(--spacing-xl);
}

.wp-block-pre-footer__image {
  border-radius: var(--border-radius-default);
  margin-bottom: var(--spacing-xl);
}

.wp-block-pre-footer__form {
  --error-text-colour: var(--text-on-light);
  position: relative;
  z-index: 1;
}

.wp-block-pre-footer--alt-colour .wp-block-pre-footer__form-col::after {
  background-color: var(--alternative-pre-footer);
}
