body {
  margin: 0;
  background: var(--bg-colour-1, #060911);
}

.demo-page *,
.demo-page *::before,
.demo-page *::after {
  box-sizing: border-box;
}

.demo-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(25, 200, 255, 0.15),
      transparent 30rem
    ),
    radial-gradient(
      circle at 8% 88%,
      rgba(25, 200, 255, 0.08),
      transparent 26rem
    ),
    var(--bg-colour-1, #060911);
  color: var(--text-colour-1, #d1d5db);
  font-family: var(--bodyFont, "Inter", system-ui, sans-serif);
}

.demo-page::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%);
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.demo-page .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxW, 80rem);
  margin-inline: auto;
}

.demo-form,
.demo-confirmation {
  width: min(100%, 58rem);
  margin-inline: auto;
}

.demo-form__card,
.demo-confirmation {
  border: 1px solid var(--border-colour-1, rgba(25, 201, 255, 0.36));
  border-radius: 2rem;
  background:
    radial-gradient(
      circle at 80% 8%,
      rgba(25, 200, 255, 0.09),
      transparent 24rem
    ),
    linear-gradient(145deg, rgba(13, 34, 56, 0.86), rgba(6, 9, 17, 0.96) 64%);
  box-shadow:
    var(--shadow-glow-soft, 0 0 60px rgba(25, 200, 255, 0.12)),
    0 1.5rem 4rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.demo-form__progress {
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem) 0;
}

.demo-form__progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text-colour-2, rgba(209, 213, 219, 0.82));
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-form__progress-track {
  height: 0.3rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-form__progress-bar {
  display: block;
  width: 9.09%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--main-brand-blue-dark, #0aa7e0),
    var(--main-brand-blue, #19c8ff)
  );
  box-shadow: 0 0 1rem rgba(25, 200, 255, 0.5);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-form__stage {
  display: grid;
  min-height: min(42rem, calc(100svh - 7rem));
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
}

.demo-form__intro,
.demo-form__step {
  align-self: center;
  width: 100%;
  border: 0;
  min-inline-size: 0;
}

.demo-form__intro {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.demo-form__intro .eyebrow,
.demo-confirmation .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-smmd, 2.1875rem);
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--border-colour-1, rgba(25, 201, 255, 0.36));
  border-radius: 999px;
  background: rgb(14 42 70);
  color: var(--main-brand-blue, #19c8ff);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-form__intro h1 {
  max-width: 44rem;
  margin: 0 auto;
  color: #fff;
  font-family: var(--headerFont, "Clash Display", system-ui, sans-serif);
  font-size: clamp(2.35rem, 6vw, 4.35rem);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.demo-form__intro .brand-accent {
  display: block;
  color: var(--main-brand-blue, #19c8ff);
  text-shadow: 0 0 1.5rem rgba(25, 200, 255, 0.24);
}

.demo-form__lead {
  max-width: 42rem;
  margin: var(--space-smmd, 2.1875rem) auto 0;
  color: var(--text-colour-1, #d1d5db);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
}

.demo-form__reassurance {
  margin: var(--space-sm, 1.25rem) 0 var(--space-smmd, 2.1875rem);
  color: #fff;
  font-weight: 500;
}

.demo-form__time {
  margin-top: 0.85rem;
  color: var(--text-colour-2, rgba(209, 213, 219, 0.82));
  font-size: 0.8rem;
}

.demo-form__step legend {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--headerFont, "Clash Display", system-ui, sans-serif);
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

/* With JavaScript disabled, the questions remain available as one long form. */
.demo-form__step + .demo-form__step {
  margin-top: 4rem;
}

.demo-form.is-enhanced .demo-form__step + .demo-form__step {
  margin-top: 0;
}

.demo-form__step legend > span[aria-hidden="true"],
.demo-form__field label > span[aria-hidden="true"],
.demo-form__group-label > span[aria-hidden="true"] {
  color: var(--main-brand-blue, #19c8ff);
}

.demo-form__number {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--main-brand-blue, #19c8ff);
  font-family: var(--bodyFont, "Inter", system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.demo-form__helper {
  max-width: 46rem;
  margin: 0 0 1.6rem;
  color: var(--text-colour-2, rgba(209, 213, 219, 0.82));
  line-height: 1.6;
}

.demo-form__input {
  width: 100%;
  min-height: 3.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-colour-2, rgba(255, 255, 255, 0.08));
  border-radius: 0.85rem;
  outline: 0;
  background: rgba(3, 11, 21, 0.72);
  color: #fff;
  font: inherit;
  line-height: 1.5;
  caret-color: var(--main-brand-blue, #19c8ff);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.demo-form__input::placeholder {
  color: rgba(209, 213, 219, 0.48);
}

.demo-form__input:hover {
  border-color: rgba(25, 200, 255, 0.34);
}

.demo-form__input:focus {
  border-color: var(--main-brand-blue, #19c8ff);
  background: rgba(3, 11, 21, 0.9);
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 200, 255, 0.13);
}

.demo-form__input:user-invalid {
  border-color: #ff7b8b;
}

.demo-form__textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.demo-form__choices--budget {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-form__budget-heading {
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
  font-family: var(--headerFont, "Clash Display", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.demo-form__budget-heading--upfront {
  margin-top: 0.65rem;
}

.demo-form__choices--budget .demo-form__choice--wide {
  grid-column: 1 / -1;
}

.demo-form__choices {
  display: grid;
  gap: 0.75rem;
}

.demo-form__choices--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-form__choices--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-form__choice {
  position: relative;
  cursor: pointer;
}

.demo-form__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.demo-form__choice span {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  padding: 0.85rem 3rem 0.85rem 1rem;
  border: 1px solid var(--border-colour-2, rgba(255, 255, 255, 0.08));
  border-radius: 0.85rem;
  background: rgba(3, 11, 21, 0.55);
  color: var(--text-colour-1, #d1d5db);
  line-height: 1.35;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.demo-form__choice span::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(209, 213, 219, 0.45);
  border-radius: 50%;
  color: #03111d;
  content: "";
  font-size: 0.8rem;
  font-weight: 700;
  place-items: center;
  transform: translateY(-50%);
}

.demo-form__choice input[type="checkbox"] + span::after {
  border-radius: 0.3rem;
}

.demo-form__choice:hover span {
  border-color: rgba(25, 200, 255, 0.42);
}

.demo-form__choice input:focus-visible + span {
  outline: 2px solid var(--main-brand-blue, #19c8ff);
  outline-offset: 3px;
}

.demo-form__choice input:checked + span {
  border-color: var(--main-brand-blue, #19c8ff);
  background: rgba(25, 200, 255, 0.1);
  box-shadow: 0 0 1.25rem rgba(25, 200, 255, 0.08);
  color: #fff;
}

.demo-form__choice input:checked + span::after {
  border-color: var(--main-brand-blue, #19c8ff);
  background: var(--main-brand-blue, #19c8ff);
  content: "✓";
}

.demo-form__other {
  margin-top: 1.1rem;
}

.demo-form__other label,
.demo-form__field label,
.demo-form__group-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.demo-form__field {
  min-width: 0;
}

.demo-form__optional {
  margin-left: 0.3rem;
  color: var(--text-colour-2, rgba(209, 213, 219, 0.82));
  font-size: 0.75rem;
  font-weight: 300;
}

.demo-form__group-label {
  margin-top: 1.5rem;
}

.demo-form__recaptcha {
  min-height: 1px;
  margin-top: 1.5rem;
}

.demo-form__actions,
.demo-confirmation__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 2rem;
}

.demo-form__primary,
.demo-form__secondary,
.contact-form-section__submit {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--headerFont, "Clash Display", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.demo-form__primary,
.contact-form-section__submit {
  border: 0;
  background: linear-gradient(180deg, #22d3ff 0%, #11bdf4 100%);
  color: #03111d;
  box-shadow: var(--shadow-glow-primary, 0 0 30px rgba(25, 200, 255, 0.28));
}

.demo-form__secondary {
  border: 1px solid var(--border-colour-1, rgba(25, 201, 255, 0.36));
  background: rgba(9, 28, 47, 0.55);
  color: var(--text-colour-1, #d1d5db);
}

.demo-form__primary:hover,
.demo-form__secondary:hover,
.contact-form-section__submit:hover {
  transform: translateY(-2px);
}

.demo-form__primary:hover,
.contact-form-section__submit:hover {
  box-shadow: 0 0 2.25rem rgba(25, 200, 255, 0.38);
}

.demo-form__primary:focus-visible,
.demo-form__secondary:focus-visible,
.contact-form-section__submit:focus-visible {
  outline: 2px solid var(--main-brand-blue, #19c8ff);
  outline-offset: 3px;
}

.demo-form__primary:disabled,
.contact-form-section__submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.demo-form__status {
  min-height: 1.5rem;
  margin: 1rem 0 -1rem;
  color: #ffb4bd;
}

.demo-confirmation {
  padding: clamp(2.5rem, 7vw, 5rem);
  text-align: center;
}

.demo-confirmation__icon {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #22d3ff 0%, #11bdf4 100%);
  box-shadow: var(--shadow-glow-primary, 0 0 30px rgba(25, 200, 255, 0.28));
  color: #03111d;
  place-items: center;
}

.demo-confirmation h2 {
  margin: 0 0 1.5rem;
  color: #fff;
  font-family: var(--headerFont, "Clash Display", system-ui, sans-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
}

.demo-confirmation p {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  color: var(--text-colour-1, #d1d5db);
  line-height: 1.7;
}

.demo-confirmation__actions {
  justify-content: center;
}

.demo-form__intro.is-leaving,
.demo-form__step.is-leaving {
  animation: demo-out 0.2s ease both;
}

.demo-form__step.is-entering,
.demo-confirmation.is-entering {
  animation: demo-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demo-out {
  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

@media (max-width: 700px) {
  .demo-page {
    padding: 0;
  }

  .demo-form__card,
  .demo-confirmation {
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .demo-form__stage {
    min-height: calc(100svh - 4rem);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .demo-form__choices--two,
  .demo-form__choices--inline,
  .demo-form__choices--budget,
  .demo-form__contact-grid {
    grid-template-columns: 1fr;
  }

  .demo-form__actions,
  .demo-confirmation__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .demo-form__primary,
  .demo-form__secondary,
  .contact-form-section__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-form__intro.is-leaving,
  .demo-form__step.is-leaving,
  .demo-form__step.is-entering,
  .demo-confirmation.is-entering {
    animation: none;
  }

  .demo-form__progress-bar,
  .demo-form__input,
  .demo-form__choice span,
  .demo-form__primary,
  .demo-form__secondary {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
