:root {
  --nhs-blue: #005eb8;
  --nhs-dark-blue: #003087;
  --nhs-bright-blue: #0072ce;
  --light-blue: #e8f4ff;
  --pale-blue: #f5faff;
  --soft-grey: #f3f6f9;
  --mid-grey: #d8e1ea;
  --text: #172331;
  --muted: #566579;
  --white: #ffffff;
  --green: #007f3b;
  --amber: #f6c343;
  --shadow: 0 10px 28px rgba(0, 48, 135, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft-grey);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--nhs-blue);
}

a:hover {
  color: var(--nhs-dark-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 1120px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.2rem, 3.1vw, 3.15rem);
}

h2 {
  margin-bottom: 0.8rem;
  color: var(--nhs-dark-blue);
  font-size: 2rem;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--nhs-dark-blue);
  font-size: 1.12rem;
}

p {
  margin-bottom: 1rem;
}

section[id] {
  scroll-margin-top: 118px;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(980px, calc(100% - 32px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--nhs-dark-blue);
  color: var(--white);
  padding: 0.65rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--mid-grey);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.2rem 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 168px;
  height: 76px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.header-nav a {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav .nav-button {
  border-radius: var(--radius);
  background: var(--nhs-blue);
  color: var(--white);
  padding: 0.62rem 0.9rem;
}

.hero {
  background: linear-gradient(135deg, var(--nhs-dark-blue), var(--nhs-blue));
  color: var(--white);
  padding: 4rem 0 2.4rem;
}

.compact-hero {
  padding: 4rem 0;
}

.compact-hero .container {
  max-width: 900px;
}

.hero-content {
  max-width: 1120px;
  text-align: center;
}

.hero-content h1 {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--nhs-bright-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.form-header .eyebrow {
  color: #b8dcff;
}

.hero-lede {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: #eef7ff;
  font-size: 1.2rem;
}

.availability-note {
  max-width: 820px;
  margin: 1.55rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #eef7ff;
  padding: 0.95rem 1.1rem;
  text-align: left;
}

.availability-note strong {
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover {
  background: #006b32;
  color: var(--white);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--white);
  color: var(--nhs-dark-blue);
}

.button-secondary:hover {
  color: var(--nhs-dark-blue);
}

.highlights-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 2.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}

.highlights-row div {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 1.05rem 1.15rem;
}

.highlights-row strong,
.highlights-row span {
  display: block;
}

.highlights-row strong {
  color: var(--nhs-dark-blue);
}

.highlights-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc-section {
  padding: 1.45rem 0;
  background: var(--soft-grey);
}

.toc-panel,
.panel,
.interest-form,
details {
  border: 1px solid rgba(0, 94, 184, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.toc-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
}

.toc-panel h2 {
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}

.toc-list {
  columns: 2;
  column-gap: 2.2rem;
  margin: 0;
  padding-left: 1.35rem;
}

.toc-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.toc-list a {
  color: var(--nhs-dark-blue);
  font-weight: 700;
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}

.content-section {
  padding: 4rem 0;
  background: var(--white);
}

.section-alt {
  background: var(--soft-grey);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.section-header p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.panel {
  padding: 1.6rem;
}

.panel > :last-child,
.panel li:last-child {
  margin-bottom: 0;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.check-list,
.plain-list {
  margin: 0 0 1.2rem;
  padding-left: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  margin-bottom: 0.66rem;
  padding-left: 1.6rem;
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
}

.plain-list li::before {
  border-radius: 2px;
  background: var(--nhs-blue);
}

.two-column-list {
  columns: 2;
  column-gap: 2rem;
}

.two-column-list li {
  break-inside: avoid;
}

.price-line {
  display: inline-block;
  border-radius: var(--radius);
  background: #eef8f2;
  color: #005f2d;
  padding: 0.7rem 0.9rem;
}

.notice {
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  background: #fff8e1;
  color: #3a2b00;
  padding: 0.85rem 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

caption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

th,
td {
  border-top: 1px solid var(--mid-grey);
  padding: 0.82rem 1rem;
  text-align: left;
}

th {
  background: var(--nhs-dark-blue);
  color: var(--white);
  font-size: 0.94rem;
}

tbody tr:nth-child(even) {
  background: var(--pale-blue);
}

del {
  color: #6b7785;
  text-decoration-thickness: 2px;
}

.status-pill {
  display: inline-flex;
  min-width: 66px;
  justify-content: center;
  border-radius: 999px;
  background: #e7edf3;
  color: #4f5e6f;
  padding: 0.25rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.fee-amount {
  color: var(--nhs-dark-blue);
  font-size: 1.35rem;
}

.process-list {
  margin: 0;
  padding-left: 1.25rem;
}

.process-list li {
  margin-bottom: 0.75rem;
}

.form-section {
  background: linear-gradient(135deg, var(--nhs-dark-blue), var(--nhs-blue));
}

.form-header {
  color: var(--white);
}

.form-header h2,
.form-header p {
  color: var(--white);
}

.form-intro-note {
  max-width: 760px;
  margin: 0.8rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text) !important;
  padding: 0.85rem 1rem;
  text-align: left;
}

.interest-form {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

label,
legend {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-weight: 800;
}

legend {
  padding: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #aebdcb;
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 0.68rem 0.78rem;
}

.form-field input,
.form-field select {
  height: 48px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field-help {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-group {
  border: 0;
  margin: 1rem 0;
  padding: 0;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  margin: 0.75rem 0;
  font-weight: 500;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 0.18rem;
}

.form-button {
  width: 100%;
  border: 0;
  margin-top: 0.3rem;
}

.reviews-carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.reviews-track {
  min-height: 330px;
}

.review-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 305px;
  border: 1px solid rgba(0, 94, 184, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.review-card[hidden] {
  display: none !important;
}

.review-card:not(.active-review) {
  display: none !important;
}

.review-card img {
  width: 100%;
  max-height: 295px;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  background: var(--white);
  object-fit: contain;
}

.review-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mid-grey);
  border-radius: 50%;
  background: var(--white);
  color: var(--nhs-dark-blue);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.review-arrow:hover {
  background: var(--pale-blue);
}

.review-arrow-prev {
  left: 0;
}

.review-arrow-next {
  right: 0;
}

.review-status {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.review-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7c5d6;
}

.review-status .active-dot {
  background: var(--nhs-blue);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

details {
  padding: 1rem 1.1rem;
}

summary {
  color: var(--nhs-dark-blue);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.back-link-wrap {
  margin-top: 2rem;
  text-align: center;
}

.thankyou-page {
  min-height: 100vh;
  background: var(--nhs-dark-blue);
}

.site-footer {
  background: var(--nhs-dark-blue);
  color: var(--white);
  padding: 1.35rem 0 1rem;
}

.footer-inner {
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.site-footer a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #d6ebff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a + a::before {
  content: "|";
  display: inline-block;
  margin-right: 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  text-decoration: none;
}

.footer-copyright {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 0.85rem;
  text-align: center;
}

.footer-copyright p {
  margin-bottom: 0;
  color: #d6ebff;
  font-size: 0.94rem;
}

@media (min-width: 881px) {
  .hero-content h1 {
    white-space: nowrap;
  }
}

@media (max-width: 880px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-logo img {
    width: 146px;
    height: 68px;
  }

  .split-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .highlights-row {
    grid-template-columns: 1fr;
  }

  .toc-list {
    columns: 1;
  }

  .two-column-list {
    columns: 1;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .container,
  .narrow {
    width: min(100% - 24px, 1140px);
  }

  .header-inner {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .brand-logo {
    justify-content: flex-start;
    width: auto;
  }

  .brand-logo img {
    width: 126px;
    height: 56px;
    margin: 0;
  }

  .header-nav {
    justify-content: flex-end;
    gap: 0;
    margin-top: 0;
  }

  .header-nav a:not(.nav-button) {
    display: none;
  }

  .header-nav .nav-button {
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 2.45rem 0 1.8rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .availability-note {
    margin-top: 1.15rem;
    padding: 0.85rem;
  }

  .button,
  .hero-actions .button {
    width: 100%;
  }

  .toc-panel,
  .panel,
  .interest-form {
    padding: 1rem;
  }

  .reviews-carousel {
    padding: 0 2.2rem;
  }

  .reviews-track {
    min-height: 0;
  }

  .review-card {
    min-height: 0;
    padding: 0.45rem;
  }

  .review-card img {
    max-height: 320px;
  }

  .review-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }

  th,
  td {
    padding: 0.62rem 0.55rem;
    font-size: 0.82rem;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th:nth-child(1),
  td:nth-child(1) {
    width: 25%;
  }

  th:nth-child(2),
  td:nth-child(2) {
    width: 50%;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 25%;
  }

  .status-pill {
    min-width: 0;
    padding: 0.2rem 0.45rem;
    font-size: 0.78rem;
  }

  .toc-list {
    padding-left: 1.15rem;
  }

  .toc-list li {
    margin-bottom: 0.55rem;
  }

  .form-field {
    margin-bottom: 0.85rem;
  }

  input,
  select,
  textarea {
    font-size: 1rem;
  }

  .content-section {
    padding: 2.7rem 0;
  }

  .site-footer nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: center;
    margin-bottom: 0.9rem;
  }

  .site-footer a {
    justify-content: center;
    min-height: 28px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .site-footer a + a::before {
    margin: 0 0.45rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.72rem;
  }

  .brand-logo img {
    width: 112px;
    height: 50px;
  }

  .header-nav .nav-button {
    padding: 0.5rem 0.72rem;
    font-size: 0.84rem;
  }

  .site-footer a {
    font-size: 0.66rem;
  }

  .site-footer a + a::before {
    margin: 0 0.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
