body {
  background: var(--color-page-background);
}

.content-sticky {
  position: relative;
}

.welcome-section__inner {
  align-items: end;
  background:
    url("../img/welcome-section-bg.webp") center center / cover no-repeat;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 30rem;
}

.welcome-section__copy,
.welcome-section__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.welcome-section__headline {
  color: var(--color-white);
  display: grid;
  gap: 0.5rem;
  line-height: 1;
}

.welcome-section__headline-base,
.welcome-section__headline-accent {
  display: block;
  font-size: var(--font-size-48);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.03em;
}

.welcome-section__headline-accent {
  color: var(--color-secondary);
}

.welcome-section__copy {
  --welcome-headline-offset-y: -100px;
  transform: translateY(var(--welcome-headline-offset-y));
}

.welcome-section__content {
  --welcome-content-offset-y: -100px;
  align-self: center;
  justify-self: start;
  max-width: 31rem;
  transform: translateY(var(--welcome-content-offset-y));
}

.welcome-section__description {
  color: var(--color-white);
  font-size: var(--font-size-22);
  font-weight: var(--font-weight-medium);
  line-height: 2.1875rem;
}

.welcome-section__description-strong {
  font-weight: var(--font-weight-bold);
}

@media (max-width: 1080px) {
  .welcome-section__inner {
    gap: 1rem;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 3rem 2.25rem;
  }

  .welcome-section__content {
    justify-self: start;
    max-width: 100%;
    transform: none;
  }

  .welcome-section__copy {
    transform: none;
  }
}

@media (max-width: 720px) {
  .welcome-section__inner {
    padding: 2.25rem 1.25rem;
  }

  .welcome-section__copy,
  .welcome-section__content {
    align-items: start;
  }

  .welcome-section__headline-base,
  .welcome-section__headline-accent {
    font-size: var(--font-size-24);
    font-weight: var(--font-weight-bold);
  }

  .welcome-section__description {
    font-size: var(--font-size-16);
    line-height: 1.75rem;
  }
}

.about-section {
    max-width: 45vw;
    margin: 2rem auto 3.5rem;
}

.about-section__title {
    text-align: center;
    margin-bottom: 2rem;
}

.about-section__text {
    text-align: justify;
    font-weight: var(--font-weight-semibold);
}

@media(max-width: 1080px) {
    .about-section {
        max-width: 85vw;
        margin-bottom: 2rem;
    }
}

@media(max-width: 720px) {
    .about-section__title {
        font-size: var(--font-size-24);
    }

    .about-section__text {
        font-size: var(--font-size-14);
    }
}

.quicklinks-section {
    background: var(--color-white);
    padding: 2rem 1.5rem 4.5rem;
}

.quicklinks-section__inner {
    margin: 0 auto;
    max-width: 80vw;
}

.quicklinks-section__title {
    text-align: center;
    margin-bottom: 2rem;
}

.quicklinks-section__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quicklinks-card {
    align-items: center;
    background: var(--color-primary);
    border-radius: var(--radius-xs);
    box-shadow: 0 1.25rem 2.75rem rgba(5, 18, 28, 0.18);
    color: var(--color-white);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.quicklinks-card:hover,
.quicklinks-card:focus-visible {
    box-shadow: 0 1.5rem 3rem rgba(5, 18, 28, 0.24);
    transform: translateY(-2px);
}

.quicklinks-card__icon {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;

}

.quicklinks-card__icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.quicklinks-card__label {
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.quicklinks-card__chevron {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.quicklinks-card__chevron svg {
    display: block;
    height: 100%;
    width: 100%;
}

@media (max-width: 1080px) {
    .quicklinks-section__grid {
        gap: 1.25rem;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .quicklinks-section__inner {
        margin: 0 auto;
        max-width: 100%;
    }

    .quicklinks-section__title {
        font-size: var(--font-size-24);
    }

    .quicklinks-section {
        padding-bottom: 2rem;
    }

    .quicklinks-card__label {
        font-size: var(--font-size-14);
    }
}

.registration-section {
  padding: 4rem 4rem 2.5rem;
}

.registration-section__inner,
.direct-debit-section {
  align-items: start;
  display: grid;
  gap: 5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin: 0 auto 2rem;
  max-width: 80vw
}

.registration-section__media {
  border-radius: 0.5rem;
  overflow: hidden;
}

.registration-section__image {
  display: block;
  height: auto;
  width: 100%;
}

.registration-section__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.registration-section__title {
  margin-bottom: 1.75rem;
}

.registration-section__description {
  font-size: var(--font-size-16);
  line-height: var(--line-height-base);
  margin-bottom: 0;
}

.registration-process {
  background: #dfebff;
  border: 1px solid var(--color-blue-dark);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.5rem;
}

.registration-process__heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.registration-process__title {
  color: var(--color-blue-dark);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-bold);
}

.registration-process__list {
  list-style: disc;
  margin: 0;
  padding-left: 1.4rem;
}

.registration-process__item {
  color: var(--color-gray-900);
  font-size: var(--font-size-16);
  line-height: var(--line-height-base);
  margin-bottom: 1.5rem;
}

ul.registration-process__list > li.registration-process__item:last-child {
  margin-bottom: 0.25rem;
}

.download-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: end;
  height: 100%;
}

@media (max-width: 1080px) {
  .registration-section {
    padding-top: 2rem;
  }

  .registration-section__inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.25rem;
  }

  .direct-debit-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .registration-section__content {
    padding-top: 0;
  }

  .registration-section__title {
    text-align: center;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 720px) {
  .registration-section {
    padding: 1rem 1.5rem 2.5rem;
  }

  .registration-section__inner,
  .direct-debit-section {
    max-width: 100%;
  }

  .registration-section__title {
    font-size: var(--font-size-24);
  }

  .registration-section__description {
    font-size: var(--font-size-14);
  }

  .registration-process {
    padding: 1rem;
  }

  .registration-process__item {
    font-size: var(--font-size-14);
  }

  .registration-download {
    padding: 0.85rem 1rem;
  }
}

.other-forms-section {
  background-color: var(--color-white);
  padding: 3.25rem 1.5rem 4.5rem;
}

.other-forms-section__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 80vw;
}

.other-forms-section__title {
  color: var(--color-primary);
  margin-bottom: 1.75rem;
}

.other-forms-section__list {
  display: grid;
  gap: 1rem;
}

.other-forms-link {
  align-items: center;
  color: var(--color-primary);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  text-decoration: none;
}

.other-forms-link__label {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-semibold);
}

.other-forms-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xs);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.5rem 1.7rem;
}

.other-forms-card--shadow,
.other-forms-card--services {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.other-forms-card--shadow:hover,
.other-forms-card--services:hover,
.other-forms-card--shadow:focus-visible,
.other-forms-card--services:focus-visible {
  box-shadow: 0px 6px 14px 0px #4343434D;
  transform: translateY(-2px);
}

.other-forms-card__title {
  font-size: var(--font-size-32);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  line-height: var(--line-height-loose);
  margin-bottom: 0.55rem;
  text-align: center;
}

.other-forms-card__list {
  margin: 0;
  padding-left: 1.35rem;
}

.other-forms-card__item {
  color: #404040;
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  margin-bottom: 0.5rem;
}

.other-forms-card__lead {
  color: #404040;
  font-size: var(--font-size-22);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  margin: 0 0 0.65rem;
  text-align: center;
}

.other-forms-card__highlight {
  color: var(--color-primary);
  font-size: var(--font-size-22);
  font-weight: var(--font-weight-bold);
  text-align: center;
}

.other-forms-card__divider {
  background: #e5e9ef;
  height: 1px;
  margin: 1.4rem 0;
  width: 100%;
}

.other-forms-card__subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
}

.other-forms-card__contact-list {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.other-forms-card__contact-row {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.other-forms-card__contact-text {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-medium);
}

.other-forms-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.other-forms-card__button {
  align-items: center;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.other-forms-card__button:hover,
.other-forms-card__button:focus-visible {
  transform: translateY(-1px);
}

.other-forms-card__button--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.other-forms-card__button--outline {
  background: var(--color-white);
  border: 1.5px solid #8795a1;
  color: #3b4c56;
}

.other-forms-card__button-grow {
  flex-grow: 1;
}

.other-forms-card__button-label {
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
}

@media (max-width: 1280px) {
  .other-forms-section__inner {
    grid-template-columns: 1fr;
  }

  .other-forms-card__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .other-forms-section {
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .other-forms-section__inner {
    max-width: 100%;
  }

  .other-forms-link__label {
    font-size: 1.05rem;
  }

  .other-forms-card {
    padding: 1.4rem 1.1rem 1.25rem;
  }

  .other-forms-card--shadow,
  .other-forms-card--services {
    box-shadow: none;
  }

  .other-forms-card--shadow:hover,
  .other-forms-card--services:hover,
  .other-forms-card--shadow:focus-visible,
  .other-forms-card--services:focus-visible {
    box-shadow: none;
    transform: none;
  }

  .other-forms-card__actions {
    grid-template-columns: 1fr;
  }
}

.contact-section {
  background-color: var(--color-primary);
  padding: 5.5rem 0.875rem 4rem;
}

.contact-section__inner {
  margin: 0 auto;
  max-width: 80vw;
}

.contact-section__title {
  color: #ffffff;
  font-size: var(--font-size-32);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
}

.contact-section__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  display: grid;
  gap: 1rem;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  color: var(--color-white);
}

.contact-card__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-card__title {
  font-size: var(--font-size-22);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
}

.contact-card__body {
  font-size: var(--font-size-16);
  line-height: var(--line-height-loose);
}

.contact-card__body strong {
  font-weight: var(--font-weight-bold);
}

@media (max-width: 1280px) {
  .contact-section__grid {
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .contact-section {
    padding: 3.5rem 0.875rem 4rem;
  }

  .contact-section__title {
    margin-bottom: 2rem;
  }

  .contact-section__grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }
}

.portal-home-footer {
  background: var(--color-white, #ffffff);
  border-top: 1px solid rgba(9, 32, 46, 0.08);
  margin-top: auto;
  padding: 1rem 1.5rem;
}

.portal-home-footer__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 120rem;
  text-align: right;
}

.portal-home-footer__links,
.portal-home-footer__links a {
  color: var(--color-blue, #4a83ff);
  font-size: var(--font-size-14, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  line-height: 1rem;
}

.portal-home-footer__copy {
  color: var(--color-gray-700, #70747d);
  font-size: var(--font-size-14, 0.875rem);
  font-weight: var(--font-weight-regular, 400);
  line-height: 1rem;
  margin: 0;
  white-space: normal;
}

@media (max-width: 720px) {
  .portal-home-footer__inner {
    justify-content: center;
    text-align: center;
  }

  .portal-home-footer__copy {
    white-space: normal;
  }
}
