/* ==========================================================================
   Urmston Pharmacy
   Layout grid comes from Bootstrap; everything visual is defined here.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #142b55;
  --navy-deep: #0f2145;
  --blue: #3867d6;
  --blue-strong: #2d58c4;
  --purple: #7356c8;
  --purple-strong: #6345bb;
  --lavender: #f1eefa;
  --lavender-mid: #e2dcf6;
  --pale-blue: #f3f7fd;
  --white: #fff;
  --text: #334155;
  --text-muted: #526079;
  --on-navy: #d4dbef;
  --line: #e0e6f2;
  --control-border: #7886a3;
  --error: #b3261e;
  --error-bg: #fdf0ef;
  --success: #15803d;
  --gradient: linear-gradient(115deg, var(--blue-strong) 0%, var(--purple) 100%);
  --gradient-hover: linear-gradient(115deg, #264dae 0%, var(--purple-strong) 100%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 6px rgb(20 43 85 / 6%), 0 10px 24px -14px rgb(20 43 85 / 18%);
  --shadow: 0 4px 12px rgb(20 43 85 / 6%), 0 24px 48px -24px rgb(20 43 85 / 28%);
  --shadow-lg: 0 8px 20px rgb(20 43 85 / 6%), 0 44px 80px -36px rgb(20 43 85 / 38%);
  --header-height: 80px;
  --font-heading: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Base --------------------------------------------------------------------- */

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

a {
  color: var(--blue-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--purple-strong);
}

img,
svg {
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  margin: 0;
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

section:focus,
[tabindex="-1"]:focus {
  outline: none;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: currentcolor;
  vertical-align: -0.125em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.container {
  --bs-gutter-x: 2.5rem;
}

/* Shared text ---------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  color: var(--purple-strong);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #c8bdf5;
}

.text-accent {
  background: var(--gradient);
  background-clip: text;
  color: transparent;
}

.section-title {
  margin: 0;
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.6;
}

.section-intro {
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.section-intro--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-intro--center .section-lead {
  margin-top: 1.25rem;
}

.section-intro--split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .section-intro--split {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: end;
  }
}

.section {
  padding-block: clamp(4.5rem, 3.5rem + 5vw, 8rem);
}

.section-action {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  text-align: center;
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
}

.text-link .icon {
  font-size: 0.85em;
}

/* Buttons -------------------------------------------------------------------- */

.button {
  position: relative;
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--small {
  min-height: 46px;
  padding: 0.45rem 1.35rem;
  font-size: 1rem;
}

.button--large {
  min-height: 60px;
  padding: 0.85rem 2rem;
  font-size: 1.125rem;
}

.button--primary {
  background: var(--gradient);
  background-origin: border-box;
  box-shadow: 0 12px 24px -12px rgb(83 79 201 / 70%);
  color: var(--white);
}

.button--primary:hover {
  background: var(--gradient-hover);
  background-origin: border-box;
  box-shadow: 0 16px 30px -12px rgb(83 79 201 / 80%);
  color: var(--white);
  transform: translateY(-2px);
}

.button--secondary {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.button--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--navy);
}

.button--light:hover {
  background: var(--lavender);
  color: var(--navy);
  transform: translateY(-2px);
}

.button__icon {
  transition: transform 0.2s ease;
}

.button:hover .button__icon {
  transform: translateX(3px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 575.98px) {
  .button-row .button {
    width: 100%;
  }
}

/* Header --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--white);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -16px rgb(20 43 85 / 30%);
}

.site-header__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand__mark {
  width: 44px;
  height: 44px;
}

.brand__name span {
  color: var(--purple-strong);
}

.brand--light,
.brand--light:hover {
  color: var(--white);
}

.brand--light .brand__name span {
  color: #c8bdf5;
}

.nav-toggle {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle__open,
.nav-toggle__close {
  display: inline-flex;
  font-size: 1.25rem;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: inline-flex;
}

/* Collapsed by default so the menu stays reachable until main.js has taken over. */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 0.75rem 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 24px 40px -24px rgb(20 43 85 / 40%);
}

.site-nav.is-open {
  display: block;
}

.site-nav__link {
  display: block;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--purple-strong);
}

.site-nav__cta {
  margin-top: 1.25rem;
}

.site-nav__cta .button {
  width: 100%;
  min-height: 54px;
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list {
    display: flex;
    gap: 0.25rem;
    align-items: center;
  }

  .site-nav__link {
    padding: 0.5rem 0.9rem;
    border-bottom: 0;
    border-radius: 999px;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .site-nav__link:hover,
  .site-nav__link[aria-current="true"] {
    background: var(--lavender);
    color: var(--navy);
  }

  .site-nav__cta {
    margin: 0 0 0 0.75rem;
  }

  .site-nav__cta .button {
    width: auto;
    min-height: 46px;
  }
}

/* Hero ----------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background:
    radial-gradient(60rem 40rem at 95% -10%, rgb(115 86 200 / 14%), transparent 65%),
    radial-gradient(50rem 36rem at -10% 110%, rgb(56 103 214 / 12%), transparent 65%),
    linear-gradient(180deg, var(--white) 0%, var(--pale-blue) 100%);
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 1.7rem + 4.6vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero__title .text-accent {
  display: block;
}

/* This typeface sets punctuation wide at display sizes. */
.hero__punctuation {
  margin-left: -0.05em;
}

.hero .button--large {
  padding-inline: 1.5rem;
}

.hero__lead {
  max-width: 36rem;
  margin: 0 0 2.25rem;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
}

.hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2.25rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.hero__benefits li {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.hero__benefits .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  background: var(--lavender-mid);
  color: var(--purple-strong);
}

.hero__location {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero__location .icon {
  color: var(--blue-strong);
}

.hero-visual {
  position: relative;
  max-width: 560px;
  margin: 3rem auto 0;
}

.hero-visual__art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-top: -2rem;
}

.float-card {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.float-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.float-card__icon {
  display: grid;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--white);
  font-size: 1.3rem;
  place-items: center;
}

.float-card__icon--blue {
  background: var(--blue-strong);
}

.float-card__icon--purple {
  background: var(--purple);
}

.float-card__icon--navy {
  background: var(--navy);
}

@media (min-width: 576px) {
  .hero-cards {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
  }

  .float-card {
    position: absolute;
    width: max-content;
    max-width: 290px;
  }

  .float-card--delivery {
    top: 7%;
    left: -3%;
  }

  .float-card--nhs {
    top: 40%;
    right: -3%;
  }

  .float-card--local {
    bottom: 5%;
    left: 3%;
  }
}

@media (min-width: 992px) {
  .hero-visual {
    margin-top: 0;
  }

  .float-card--delivery {
    left: -9%;
  }

  .float-card--nhs {
    right: -6%;
  }

  .float-card--local {
    left: -4%;
  }
}

/* Benefits -------------------------------------------------------------------- */

.benefit-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  border-color: var(--lavender-mid);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.benefit-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.benefit-card__icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  font-size: 1.625rem;
  place-items: center;
}

.benefit-card__icon--blue {
  background: #e4ecfc;
  color: var(--blue-strong);
}

.benefit-card__icon--purple {
  background: var(--lavender-mid);
  color: var(--purple-strong);
}

.benefit-card__icon--navy {
  background: var(--navy);
  color: var(--white);
}

.benefit-card__icon--gradient {
  background: var(--gradient);
  color: var(--white);
}

/* How it works ---------------------------------------------------------------- */

.section--navy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(44rem 30rem at 100% 0%, rgb(115 86 200 / 38%), transparent 70%),
    radial-gradient(40rem 26rem at 0% 100%, rgb(56 103 214 / 30%), transparent 70%),
    var(--navy);
  color: var(--on-navy);
}

.section--navy .section-title,
.section--navy .step__title {
  color: var(--white);
}

.section--navy .section-lead {
  color: var(--on-navy);
}

.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

/* The connecting line runs behind the numbered circles. */
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 35px;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / 45%) 0 6px, transparent 6px 14px);
}

.step {
  position: relative;
  padding-left: 96px;
}

.step p {
  margin: 0;
  max-width: 24rem;
}

.step__number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 8px var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  place-items: center;
}

.step__title {
  margin: 0 0 0.625rem;
  padding-top: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.22;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .steps::before {
    top: 36px;
    right: 16.66%;
    bottom: auto;
    left: 16.66%;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgb(255 255 255 / 45%) 0 6px, transparent 6px 14px);
  }

  .step {
    padding-left: 0;
    text-align: center;
  }

  .step p {
    margin-inline: auto;
  }

  .step__number {
    position: relative;
    margin: 0 auto 1.5rem;
  }

  .step__title {
    padding-top: 0;
  }
}

/* Registration ---------------------------------------------------------------- */

.section--register {
  background:
    radial-gradient(50rem 30rem at 85% 0%, rgb(115 86 200 / 12%), transparent 70%),
    linear-gradient(180deg, var(--lavender) 0%, var(--pale-blue) 100%);
}

.reg-card {
  display: grid;
  max-width: 1160px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.reg-aside {
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, var(--navy) 0%, #2c3f8f 62%, var(--purple-strong) 125%);
  color: var(--on-navy);
}

.reg-aside__art {
  display: none;
}

.reg-aside__title {
  margin: 0 0 1.25rem;
  color: var(--white);
  font-size: 1.375rem;
}

.reg-aside__list {
  display: grid;
  gap: 1rem;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.reg-aside__list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.reg-aside__list .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: rgb(255 255 255 / 14%);
  color: var(--white);
}

.reg-aside__help {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.reg-aside__help p {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.reg-aside__help a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 800;
  text-decoration: none;
}

.reg-aside__help a:hover {
  color: var(--white);
  text-decoration: underline;
}

.reg-aside :focus-visible {
  outline-color: var(--white);
}

.reg-main {
  min-width: 0;
  padding: 2rem 1.25rem;
}

@media (min-width: 576px) {
  .reg-main {
    padding: 2.5rem;
  }
}

@media (min-width: 992px) {
  .reg-card {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .reg-aside {
    display: flex;
    flex-direction: column;
    padding: 3rem 2.25rem;
  }

  .reg-aside__art {
    display: block;
    width: calc(100% + 4.5rem);
    max-width: none;
    height: auto;
    margin: auto -2.25rem -3rem;
  }

  .reg-main {
    padding: 3.25rem;
  }
}

.reg-form__hint {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.form-group-set {
  min-width: 0;
  margin: 0 0 2.5rem;
  padding: 0;
  border: 0;
}

.form-group-set__legend {
  display: flex;
  float: none;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0 0 0.875rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.form-group-set__legend span {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lavender-mid);
  color: var(--purple-strong);
  font-size: 0.9375rem;
  letter-spacing: 0;
  place-items: center;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  display: block;
  float: none;
  width: auto;
  margin: 0 0 0.375rem;
  padding: 0;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.field__optional {
  color: var(--text-muted);
  font-weight: 400;
}

.field__hint {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.field__control {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--control-border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__control:hover {
  border-color: var(--navy);
}

.field__control:focus,
.field__control:focus-visible {
  border-color: var(--blue-strong);
  border-radius: var(--radius-sm);
  outline: 3px solid transparent;
  box-shadow: 0 0 0 3px rgb(56 103 214 / 35%);
}

.field__control--select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("../images/chevron-down.svg");
  background-position: right 0.875rem center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.field__control--textarea {
  min-height: 112px;
  resize: vertical;
}

.field__control--postcode {
  text-transform: uppercase;
}

.field.has-error .field__control {
  border-color: var(--error);
  border-width: 2px;
}

.field.has-error .field__control:focus {
  box-shadow: 0 0 0 3px rgb(179 38 30 / 25%);
}

.field__error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0.5rem 0 0;
  color: var(--error);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.field__error[hidden] {
  display: none;
}

.dob {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 0.75rem;
}

.dob__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.check {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.25rem;
}

.nomination {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--pale-blue);
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.nomination p {
  margin: 0 0 0.75rem;
}

.nomination p:last-child {
  margin-bottom: 0;
}

.nomination__title {
  margin: 0 0 0.625rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.check__input {
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--blue-strong);
  cursor: pointer;
}

.check__label {
  display: block;
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.45;
  cursor: pointer;
}

/* Hidden from view and from assistive technology; browsers do not autofill it. */
.contact-extra {
  display: none;
}

.reg-form__submit {
  margin-top: 0.5rem;
}

.reg-form__submit .button {
  width: 100%;
  min-height: 64px;
  font-size: 1.1875rem;
}

.reg-form__reassurance {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: center;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9688rem;
  line-height: 1.45;
}

.reg-form__reassurance .icon {
  margin-top: 0.15em;
  color: var(--success);
}

.button__spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgb(255 255 255 / 40%);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.button.is-loading {
  cursor: progress;
}

.button.is-loading:hover {
  transform: none;
}

.button.is-loading .button__spinner {
  display: block;
}

.button.is-loading .button__icon {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.notice[hidden] {
  display: none;
}

.notice p {
  margin: 0;
}

.notice .icon {
  margin-top: 0.2em;
  font-size: 1.25rem;
}

.notice--error {
  border: 1.5px solid var(--error);
  background: var(--error-bg);
  color: #7f1d17;
}

.notice--error a {
  color: inherit;
  font-weight: 700;
}

.error-summary {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--error);
  border-radius: var(--radius-sm);
  background: var(--error-bg);
}

.error-summary[hidden] {
  display: none;
}

.error-summary__title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.625rem;
  color: var(--error);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.error-summary__list {
  display: grid;
  gap: 0.25rem;
}

.error-summary__list a {
  color: var(--error);
  font-size: 1.0625rem;
  font-weight: 600;
}

.reg-success {
  padding-block: clamp(1.5rem, 1rem + 4vw, 5rem);
  text-align: center;
}

.reg-success[hidden] {
  display: none;
}

.reg-success p {
  max-width: 34rem;
  margin: 0 auto 1rem;
  font-size: 1.1875rem;
}

.reg-success__icon {
  display: inline-grid;
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: #e5f6ec;
  color: var(--success);
  font-size: 3rem;
  place-items: center;
}

.reg-success__title {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
}

.reg-success .reg-success__help {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.reg-success__help a {
  font-weight: 700;
}

/* Final call to action -------------------------------------------------------- */

.cta-band {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
}

.cta-panel {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: rgb(255 255 255 / 94%);
}

/* A large arch echoing the hero, behind the artwork. */
.cta-panel::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -40%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
}

.cta-panel__copy {
  position: relative;
}

.cta-panel__title {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
}

.cta-panel p {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}

.cta-panel__art {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
}

.cta-panel :focus-visible {
  outline-color: var(--white);
}

@media (min-width: 992px) {
  .cta-panel {
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
  }
}

/* Contact --------------------------------------------------------------------- */

.contact-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

.contact-card address {
  margin-bottom: 1rem;
}

.contact-card__link {
  display: inline-block;
  padding-block: 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.contact-card__link--email {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Footer ---------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 2rem;
  background: var(--navy-deep);
  color: var(--on-navy);
  font-size: 1.0625rem;
}

.site-footer a {
  color: var(--on-navy);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--white);
  text-decoration: none;
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

.site-footer__tagline {
  margin: 1.25rem 0 0.5rem;
  color: #c8bdf5;
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
}

.site-footer__about {
  max-width: 26rem;
  margin: 0;
}

.site-footer__heading {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.site-footer__links {
  display: grid;
  gap: 0.25rem;
}

.site-footer__links a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 32px;
  overflow-wrap: anywhere;
}

.site-footer__address {
  margin-bottom: 1rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 1rem;
}

.site-footer__legal p {
  margin: 0;
}

/* Privacy notice -------------------------------------------------------------- */

.legal-page {
  padding-block: clamp(3rem, 2.5rem + 3vw, 5.5rem);
  background: linear-gradient(180deg, var(--pale-blue) 0, var(--white) 420px);
}

.legal-page__inner {
  max-width: 800px;
  margin-inline: auto;
}

.legal-page__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
}

.legal-page h2 {
  margin: 2.75rem 0 0.875rem;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}

.legal-page p {
  margin: 0 0 1rem;
}

.legal-page .section-lead {
  margin-bottom: 0;
}

.legal-page__inner > ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-page__inner > ul li {
  margin-bottom: 0.5rem;
}

.legal-page .legal-page__updated {
  margin-block: 2.5rem 2rem;
}

/* Scroll reveal --------------------------------------------------------------- */

/* Applied only when JavaScript is running and motion is welcome (see main.js). */
.motion-ok .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.motion-ok .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .button:hover,
  .benefit-card:hover {
    transform: none;
  }

  .button__spinner {
    animation-duration: 2.5s;
  }
}

@media (forced-colors: active) {
  .text-accent {
    background: none;
    color: CanvasText;
  }

  .button {
    border-color: ButtonText;
  }
}

@media print {
  .site-header,
  .cta-band,
  .site-footer {
    display: none;
  }
}
