.funding-contact {
  max-width: 38rem;
  margin: 0 auto 2rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  color: #132b48;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 1rem;
  text-align: left;
  scroll-margin-top: 7rem;
}

.funding-contact h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.45rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
}

.funding-contact p {
  margin: .6rem 0 1.25rem;
  color: inherit;
}

.funding-contact fieldset {
  display: grid;
  gap: .875rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.funding-contact label {
  display: grid;
  gap: .3rem;
  font-weight: 600;
}

.funding-contact input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid #7b8aa0;
  border-radius: .4rem;
  color: inherit;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.funding-contact :is(input, a, button):focus-visible {
  outline: 2px solid #183d69;
  outline-offset: 3px;
}

.funding-contact .funding-contact-privacy {
  font-size: .875rem;
  margin: 0;
}

.funding-contact-privacy a {
  text-decoration: underline;
}

.funding-contact button {
  justify-self: start;
}

.funding-contact fieldset:disabled button {
  opacity: .62;
  cursor: wait;
}

.funding-contact .funding-contact-status {
  margin: .8rem 0 0;
  font-weight: 600;
}

.funding-contact-status[data-state="error"] { color: #9b2424; }
.funding-contact-status[data-state="success"] { color: #1e673c; }

/* Keep the existing programme table scrollable inside the mobile page. */
#funding-details .table-wrap {
  overflow-x: auto;
}

#funding-contact form fieldset > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: .35rem;
  text-align: left;
  color: #132b48;
}

#funding-contact form fieldset > label > input {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: none;
  min-block-size: 3rem;
  margin: 0;
  border: 1px solid #536681;
  background: #fff;
  color: #132b48;
  font-size: 1rem;
  text-align: left;
  appearance: none;
}

.funding-contact-status[data-state="simulation"] { color: #183d69; }
