   :root {
      --navy: #061b43;
      --red: #ed1b37;
      --red-dark: #cf1430;
      --paper: #fff;
      --wash: #f3f6fa;
      --ink: #0b2348;
      --muted: #617089;
      --line: #d8e0eb;
      --green: #18775d;
      --shadow: 0 12px 38px rgba(6, 27, 67, .09);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--wash);
      color: var(--ink);
      font-family: Montserrat, Arial, sans-serif;
      line-height: 1.5;
    }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }

    .workspace {
      width: min(1180px, calc(100% - 40px));
      margin: 12px auto;
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
      gap: 24px;
      align-items: start;
    }
    .panel {
      background: var(--paper);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }
    .form-panel { padding: 0; overflow: hidden; }

    .progress {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-bottom: 1px solid var(--line);
      background: #fff;
    }
    .progress-step {
      appearance: none;
      border: 0;
      padding: 18px 20px;
      border-right: 1px solid var(--line);
      position: relative;
      background: transparent;
      color: #8a96a8;
      text-align: left;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }
    .progress-step:last-child { border-right: 0; }
    .progress-step:hover { color: var(--navy); background: #fbfcfe; }
    .progress-step:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; z-index: 1; }
    .progress-step.locked { cursor: not-allowed; }
    .progress-step span {
      display: inline-flex;
      width: 26px;
      height: 26px;
      align-items: center;
      justify-content: center;
      margin-right: 8px;
      background: #e9eef5;
      color: #69768b;
    }
    .progress-step.active { color: var(--navy); }
    .progress-step.active::after {
      content: "";
      position: absolute;
      height: 4px;
      background: var(--red);
      left: 0;
      right: 0;
      bottom: -1px;
    }
    .progress-step.active span,
    .progress-step.complete span { background: var(--red); color: #fff; }

    .form-body { padding: 36px; }
    .step { display: none; }
    .step.active { display: block; animation: reveal .25s ease; }
    @keyframes reveal {
      from { opacity: .25; transform: translateY(5px); }
      to { opacity: 1; transform: none; }
    }
    .step-head { margin-bottom: 25px; }
    .step-head h1, .step-head h2 {
      font-size: 27px;
      line-height: 1.2;
      letter-spacing: -.025em;
      margin: 0 0 8px;
    }
    .step-head p { color: var(--muted); font-size: 14px; margin: 0; }

    .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .field.full { grid-column: 1 / -1; }
    .field label, .group-label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      margin: 0 0 8px;
    }
    .required { color: var(--red); }
    .field input, .field select, .field textarea {
      width: 100%;
      border: 1px solid #cbd5e2;
      border-radius: 0;
      background: #fff;
      color: var(--ink);
      padding: 13px 14px;
      outline: none;
      min-height: 51px;
    }
    .field textarea { min-height: 76px; resize: vertical; }
    .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
    .field.invalid input, .field.invalid select, .field.invalid textarea,
    .field.invalid .consent { border-color: var(--red); background: #fff8f8; }
    .error { display: none; color: #b31e35; font-size: 11px; margin-top: 5px; }
    .field.invalid .error { display: block; }

    .amount-wrap { position: relative; }
    .amount-wrap::before {
      content: "£";
      position: absolute;
      left: 15px;
      top: 13px;
      font-weight: 700;
      color: #627089;
    }
    .amount-wrap input { padding-left: 32px; }
    .quick-amounts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
    .quick-amounts button {
      border: 1px solid var(--line);
      background: #fff;
      color: #53627a;
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 600;
    }
    .quick-amounts button:hover, .quick-amounts button:focus-visible {
      border-color: var(--red);
      color: var(--red);
    }

    .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .choice { position: relative; }
    .choice input { position: absolute; opacity: 0; pointer-events: none; }
    .choice label {
      display: flex;
      min-height: 62px;
      align-items: center;
      justify-content: center;
      text-align: center;
      border: 1px solid #ccd6e2;
      padding: 10px 8px;
      color: #53627a;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      background: #fff;
      transition: .18s;
    }
    .choice input:checked + label { border-color: var(--red); background: #fff4f6; color: var(--navy); }
    .choice input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }

    .consent {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 13px;
      background: #f6f8fb;
      border: 1px solid transparent;
    }
    .consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: 0 0 auto; }
    .consent label { font-size: 11px; font-weight: 400; color: #5c6b82; margin: 0; }

    .actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-top: 29px;
      padding-top: 21px;
      border-top: 1px solid var(--line);
    }
    .button {
      border: 0;
      padding: 14px 21px;
      font-weight: 700;
      font-size: 13px;
    }
    .button.primary { background: var(--red); color: #fff; }
    .button.primary:hover, .button.primary:focus-visible { background: var(--red-dark); }
    .button.secondary { background: #edf1f6; color: var(--navy); }
    .secure-note { color: #758198; font-size: 10px; }

    .eyebrow {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .19em;
      text-transform: uppercase;
      color: var(--red);
    }
    .summary {
      padding: 35px 32px;
      background: var(--navy);
      color: #fff;
      position: sticky;
      top: 12px;
      overflow: hidden;
    }
    .summary h2 { font-size: 25px; line-height: 1.25; margin: 8px 0;letter-spacing:0; }
    .summary-intro { color: #c8d3e4; font-size: 13px; margin: 0 0 22px; }
    .summary-list { border-top: 1px solid rgba(255, 255, 255, .15); }
    .summary-row { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
    .summary-row span {
      display: block;
      color: #9eacc1;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .09em;
      margin-bottom: 4px;
    }
    .summary-row strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
    .summary-row .empty { color: #7f8da2; font-weight: 400; }
    .promise {
      display: grid;
      grid-template-columns: 27px 1fr;
      gap: 10px;
      align-items: start;
      margin-top: 19px;
      color: #ced8e7;
      font-size: 11px;
    }
    .promise i {
      display: flex;
      width: 27px;
      height: 27px;
      align-items: center;
      justify-content: center;
      background: var(--red);
      color: #fff;
      font-style: normal;
      font-weight: 700;
    }

    .success { display: none; text-align: center; padding: 48px 25px; }
    .success.show { display: block; }
    .success-mark {
      width: 68px;
      height: 68px;
      background: #e6f5ef;
      color: var(--green);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      font-weight: 700;
      margin: 0 auto 18px;
    }
    .success h2 { font-size: 28px; margin: 0 0 9px; }
    .success p { color: var(--muted); max-width: 500px; margin: 0 auto 21px; }
    .success-card {
      max-width: 520px;
      margin: 0 auto;
      background: #f4f7fa;
      border: 1px solid var(--line);
      padding: 18px;
      text-align: left;
      font-size: 12px;
      white-space: pre-line;
    }

    @media (max-width: 900px) {
      .workspace { grid-template-columns: 1fr; }
      .summary { position: static; }
    }
    @media (max-width: 640px) {
      .workspace { width: min(100% - 24px, 1180px); margin: 12px auto; gap: 16px; }
      .progress-step { font-size: 0; padding: 13px; text-align: center; }
      .progress-step span { margin: 0; }
      .form-body, .summary { padding: 22px; }
      .fields { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
      .choices { grid-template-columns: 1fr 1fr; }
      .actions { align-items: stretch; }
      .secure-note { display: none; }
      .button { flex: 1; }
    }
    
    
    /* Contact Form 7 automatic paragraph fixes */

#fundingForm .field > p,
#fundingForm .amount-wrap > p,
#fundingForm .consent > p,
#fundingForm .actions > p {
  margin: 0;
}

#fundingForm .field label br,
#fundingForm .amount-wrap br,
#fundingForm .quick-amounts br,
#fundingForm .choices br,
#fundingForm .actions br,
#fundingForm .promise br {
  display: none;
}

/* Keep required asterisks beside labels */

#fundingForm .field label .required,
#fundingForm .group-label .required {
  display: inline;
  margin-left: 2px;
}

/* Quick amount buttons */

#fundingForm .quick-amounts {
  display: block;
}

#fundingForm .quick-amounts > p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  margin: 8px 0 0;
}

#fundingForm .quick-amounts button {
  width: auto;
  min-width: 0;
  margin: 0;
}

/* Contact Form 7 radio-button structure */

#fundingForm .choices > p,
#fundingForm .choices .wpcf7-form-control-wrap,
#fundingForm .choices .wpcf7-radio {
  display: contents;
}

#fundingForm .choices .wpcf7-list-item {
  position: relative;
  display: block;
  margin: 0;
}

#fundingForm .choices .wpcf7-list-item label {
  display: block;
  margin: 0;
  cursor: pointer;
}

#fundingForm .choices input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

#fundingForm .choices .wpcf7-list-item-label {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid #ccd6e2;
  background: #fff;
  color: #53627a;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}

#fundingForm .choices input[type="radio"]:checked
  + .wpcf7-list-item-label {
  border-color: var(--red);
  background: #fff4f6;
  color: var(--navy);
}

#fundingForm .choices input[type="radio"]:focus-visible
  + .wpcf7-list-item-label {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Repair navy summary promise rows */

#fundingForm .promise > p {
  display: contents;
}

#fundingForm .promise i {
  grid-column: 1;
}

#fundingForm .promise span {
  grid-column: 2;
  min-width: 0;
  width: auto;
}

/* Remove automatic paragraphs around action content */

#fundingForm .actions > p {
  display: contents;
}

/* Keep CF7 controls filling their intended column */

#fundingForm .wpcf7-form-control-wrap {
  width: 100%;
}

#fundingForm .field input,
#fundingForm .field select,
#fundingForm .field textarea {
  max-width: 100%;
}


/* Huxley form - Contact Form 7 corrections */

/* STEP NAVIGATION */
#fundingForm .progress {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#fundingForm .progress-step {
  display: block !important;
  width: 100% !important;
  height: 62px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 0 !important;
  border-right: 1px solid #d8e0eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

#fundingForm .progress-step:last-child {
  border-right: 0 !important;
}

#fundingForm .progress-step.active::after {
  left: 0 !important;
  right: 0 !important;
}


/* NAVY SIDEBAR TYPOGRAPHY */
#fundingForm .summary {
  font-family: Montserrat, Arial, sans-serif !important;
}

#fundingForm .summary .eyebrow {
  font-size: 11px !important;
  line-height: 16.5px !important;
  font-weight: 600 !important;
  letter-spacing: 2.4px !important;
}

#fundingForm .summary h2 {
  font-size: 25px !important;
  line-height: 31.25px !important;
  font-weight: 300 !important;
  letter-spacing: normal !important;
}

#fundingForm .summary-intro {
  font-size: 13px !important;
  line-height: 19.5px !important;
  font-weight: 300 !important;
}

#fundingForm .summary-row span {
  font-size: 10px !important;
  line-height: 15px !important;
  font-weight: 300 !important;
}

#fundingForm .summary-row strong {
  font-size: 13px !important;
  line-height: 19.5px !important;
  font-weight: 600 !important;
}

#fundingForm .summary-row strong.empty {
  font-weight: 400 !important;
}

#fundingForm .promise {
  font-size: 11px !important;
  line-height: 16.5px !important;
  font-weight: 300 !important;
}


/* QUICK AMOUNT BUTTONS */
#fundingForm .quick-amounts > p {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}

#fundingForm .quick-amounts button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}


/* BACK AND SUBMIT BUTTONS */
#fundingForm .actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

#fundingForm .actions > p {
  display: contents !important;
}

@media (min-width: 641px) {
  #fundingForm .actions .button,
  #fundingForm .actions .wpcf7-submit {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }
}

#fundingForm textarea#financeNeed {
  height: 76px !important;
  min-height: 76px !important;
  resize: vertical !important;
}

/* Exact progress navigation correction */
#fundingForm .progress-step {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
  box-shadow: inset -1px 0 0 #d8e0eb !important;
}

#fundingForm .progress-step:last-child {
  box-shadow: none !important;
}

#fundingForm .progress-step.active::after {
  background: #ed1b37 !important;
}

#fundingForm .progress-step.active span,
#fundingForm .progress-step.complete span {
  background: #ed1b37 !important;
}


@media (min-width: 1025px) {
  #fundingForm .workspace {
    width: min(1180px, calc(100vw - 40px)) !important;
    max-width: none !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* Final Contact Form 7 markup corrections */

/* Draw the step dividers as backgrounds so theme button rules cannot remove them. */
#fundingForm .progress > .progress-step:not(:last-child) {
  background-image: linear-gradient(#d8e0eb, #d8e0eb) !important;
  background-position: right top !important;
  background-repeat: no-repeat !important;
  background-size: 1px 100% !important;
}

#fundingForm .progress > .progress-step:last-child {
  background-image: none !important;
}

/* CF7 inserts a paragraph and a br between each summary label and value. */
#fundingForm .summary-row > p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#fundingForm .summary-row > p > br {
  display: none !important;
}

#fundingForm .summary-row > p > span {
  margin-bottom: 4px !important;
}

#fundingForm .summary-row > p > strong {
  margin: 0 !important;
}

/* Final step navigation alignment and dividers */
#fundingForm .progress {
  position: relative !important;
}

#fundingForm .progress::before,
#fundingForm .progress::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
  background: #d8e0eb !important;
  pointer-events: none !important;
  z-index: 5 !important;
}

#fundingForm .progress::before {
  left: 33.333333% !important;
}

#fundingForm .progress::after {
  left: 66.666667% !important;
}

#fundingForm .progress-step {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

/* CF7 inserts a br before and after each step label. */
#fundingForm .progress-step > br {
  display: none !important;
}

/* Final amount and summary heading corrections */
#fundingForm .amount-wrap::before {
  z-index: 2 !important;
  pointer-events: none !important;
}

#fundingForm .amount-wrap input {
  position: relative !important;
  z-index: 1 !important;
  padding-left: 32px !important;
}

#fundingForm .summary .eyebrow > p {
  margin: 0 !important;
  letter-spacing: 2.4px !important;
  line-height: 16.5px !important;
}

/* CF7 inserts a leading br inside the summary introduction. */
#fundingForm .summary-intro > br {
  display: none !important;
}

/* Match the original consent layout around CF7's nested acceptance markup. */
#fundingForm .consent > p,
#fundingForm .consent .wpcf7-form-control-wrap,
#fundingForm .consent .wpcf7-acceptance,
#fundingForm .consent .wpcf7-list-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#fundingForm .consent .wpcf7-list-item > label {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 16.5px !important;
  letter-spacing: 0 !important;
  color: #5c6b82 !important;
}

#fundingForm .consent input[type="checkbox"] {
  position: static !important;
  grid-column: 1 !important;
  width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  accent-color: #ed1b37 !important;
}

#fundingForm .consent .wpcf7-list-item-label {
  grid-column: 2 !important;
  padding: 0 !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
}

/* Match the original Montserrat CTA typography. */
#fundingForm .actions .button,
#fundingForm .actions .wpcf7-submit {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 19.5px !important;
  letter-spacing: .01em !important;
}