:root {
  --color-blue: #209ae7;
  --color-sky: #c6e2f0;
  --color-navy: #1b405b;
  --color-white: #ffffff;
  --color-pink: #f59ec1;
  --color-muted: #536373;
  --color-placeholder: #77838f;
  --color-button-hover: #eef6fb;
  --color-error: #b3261e;
  --color-success-bg: #e5f4e4;
  --color-error-bg: #fbebeb;
  --shadow-card: 0 2px 4px rgba(27, 64, 91, 0.25);
  --shadow-button: 0 2px 3px rgba(27, 64, 91, 0.35);
  /* The CSP only allows self-hosted fonts, so these fall back until Poppins and the design's serif are added to the app. */
  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --radius-card: 18px;
  --radius-input: 8px;
  --width-content: 1200px;
  --width-card: 680px;
  --width-input-short: 13.5rem;
  --width-input-long: 26rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-sky);
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.4;
}

.container {
  max-width: calc(var(--width-content) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.top-bar {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 32px;
  background: var(--color-navy);
}

.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
}

.top-bar-phone:hover {
  text-decoration: underline;
}

.top-bar-phone:focus-visible {
  outline-color: var(--color-white);
}

.top-bar-icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: var(--color-pink);
}

/* Right-hand side of the top bar, as on kinly.org.uk. */
.top-bar-trustpilot {
  flex: 0 1 420px;
  margin-left: auto;
  text-align: right;
}

.top-bar-trustpilot a {
  color: var(--color-white);
}

.hero {
  padding: 24px 0 56px;
  background: var(--color-blue);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-kinly {
  height: 63px;
}

.brand-arrow {
  height: 49px;
  transform: translateY(-16px);
}

.brand-nous {
  height: 97px;
}

.hero-title {
  margin: 32px 0 52px;
  color: var(--color-white);
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.65;
}

.payment-form,
.status {
  max-width: var(--width-card);
  margin-left: auto;
  margin-right: auto;
}

.card {
  padding: 32px 40px;
  border-radius: var(--radius-card);
  background: var(--color-sky);
  box-shadow: var(--shadow-card);
}

.intro {
  margin: 0 0 24px;
}

.intro strong {
  font-weight: 600;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-weight: 500;
}

.hint {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

input[type="text"],
select {
  display: block;
  width: 100%;
  max-width: var(--width-input-long);
  height: 52px;
  margin-top: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-input);
  background: var(--color-white);
  color: var(--color-navy);
  font: inherit;
}

.field .input-short {
  max-width: var(--width-input-short);
}

::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
}

.error {
  margin: 6px 0 0;
  color: var(--color-error);
  font-size: 0.875rem;
}

.smallprint {
  margin: 0 0 10px;
  font-size: 0.875rem;
}

.smallprint a {
  color: inherit;
}

.consents {
  margin-top: 22px;
}

.consents > :last-child {
  margin-bottom: 0;
}

.field-checkbox {
  margin-bottom: 14px;
}

.field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

.field-checkbox input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--color-navy);
  cursor: pointer;
}

.confirm-button {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 36px;
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-button);
  color: var(--color-navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.confirm-button:hover {
  background: var(--color-button-hover);
}

.confirm-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  background: var(--color-success-bg);
  font-size: 1rem;
}

.status-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

.hero-wave path {
  fill: var(--color-blue);
}

.service-info {
  padding: 40px 0 88px;
}

.steps {
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.step-text {
  margin: 0;
}

.step-badge {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 8px;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.step-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9px;
  background: var(--color-blue);
}

.step-badge--diamond::before {
  transform: rotate(45deg);
}

.step-badge--navy::before {
  background: var(--color-navy);
  transform: rotate(-8deg);
}

.step-badge--tilted::before {
  transform: rotate(6deg);
}

.badge-sparks,
.badge-corner {
  position: absolute;
  left: calc(50% - 48px);
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.badge-sparks {
  top: calc(50% - 48px);
}

.badge-corner {
  top: 50%;
}

.info-heading {
  margin: 0 0 10px;
  font-size: inherit;
  font-weight: 600;
}

.info-list {
  margin: 0 0 44px;
  padding-left: 1.4em;
}

.info-list li {
  margin-bottom: 2px;
}

.free-callout {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.25;
}

.free-word {
  position: relative;
  color: var(--color-blue);
  white-space: nowrap;
}

.free-underline {
  position: absolute;
  left: -7%;
  bottom: -0.12em;
  width: 118%;
  height: 0.28em;
  overflow: visible;
  fill: none;
  stroke: var(--color-pink);
  stroke-width: 3;
  stroke-linecap: round;
}

.free-underline path {
  vector-effect: non-scaling-stroke;
}

.site-footer {
  padding: 48px 0 56px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline-color: var(--color-white);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-contact {
  font-style: normal;
}

.footer-links ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact p,
.footer-legal p {
  margin: 0 0 12px;
}

.footer-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 24px;
}

.footer-rule {
  flex: 1;
  height: 6px;
  fill: none;
  stroke: var(--color-pink);
  stroke-width: 1.5;
}

.footer-rule path {
  vector-effect: non-scaling-stroke;
}

.footer-alert {
  flex: none;
  width: 22px;
  height: 22px;
}

.footer-alert circle:first-child {
  fill: var(--color-pink);
}

.footer-alert path {
  stroke: var(--color-navy);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.footer-alert circle:last-child {
  fill: var(--color-navy);
}

.footer-legal p:last-child {
  margin: 24px 0 0;
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .footer-links ul {
    column-gap: 32px;
  }

  /* The phone number and the TrustBox don't fit side by side on a phone,
     so the TrustBox drops to its own line underneath. */
  .top-bar {
    flex-wrap: wrap;
    row-gap: 4px;
    min-height: 48px;
    padding: 8px 16px;
  }

  .top-bar-trustpilot {
    flex-basis: 100%;
    text-align: left;
  }

  .hero {
    padding: 20px 0 40px;
  }

  .brand-row {
    gap: 16px;
  }

  .brand-kinly {
    height: 42px;
  }

  .brand-arrow {
    height: 32px;
    transform: translateY(-10px);
  }

  .brand-nous {
    height: 64px;
  }

  .hero-title {
    margin: 20px 0 32px;
    line-height: 1.5;
  }

  .card {
    padding: 24px 20px;
  }

  .confirm-button {
    margin-top: 24px;
  }

  .service-info {
    padding: 24px 0 56px;
  }

  .steps {
    padding-left: 10px;
  }

  .step {
    gap: 14px;
    margin-bottom: 20px;
  }

  .info-list {
    margin-bottom: 32px;
  }
}
