/* Ninety forms — name / email / consent. Inherits colour from its context, so
   the same markup works on the lime panels, on white cards and in the dark
   contact modal. */

.nf { width: 100%; max-width: 560px; }
.nf-note {
  font-family: Manrope, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6em;
  opacity: .72;
  margin: 0 0 2vh;
}
.nf-form {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  width: 100%;
}
.nf-field { flex: 1 1 220px; min-width: 190px; }
.nf-input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: .5px solid currentColor;
  border-bottom-color: color-mix(in oklab, currentColor 42%, transparent);
  color: inherit;
  font-family: Manrope, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6em;
  padding: 10px 0;
  border-radius: 0;
  outline: none;
  transition: border-bottom-color 200ms ease;
}
.nf-input::placeholder { color: currentColor; opacity: .55; }
.nf-input:focus { border-bottom-color: currentColor; }
.nf-input:-webkit-autofill { -webkit-text-fill-color: currentColor; transition: background-color 5000s; }

.nf-consent {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5em;
  opacity: .85;
  cursor: pointer;
}
.nf-consent input[type=checkbox] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: currentColor;
  cursor: pointer;
}
.nf-consent > span { flex: 1 1 auto; }
.nf-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nf-consent a:hover { opacity: .7; }

.nf-field--wide { flex: 0 0 100%; }
.nf-textarea { min-height: 92px; resize: vertical; line-height: 1.6em; }

.nf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.nf-form .button { flex: 0 0 auto; margin-top: 0; }
/* keep the site's .button pill — only neutralise the native button chrome */
/* no background here — .button owns the fill, including its hover state */
.nf-form button[type=submit] { cursor: pointer; font-family: inherit; }
.nf-form button[type=submit]:disabled { opacity: .55; cursor: default; }

.nf-error {
  flex: 0 0 100%;
  display: none;
  font-family: Manrope, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5em;
  margin: 0;
  color: #c0392b;
}
.nf--dark .nf-error { color: #ffb0a8; }

.nf-done {
  display: none;
  font-family: Manrope, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5em;
  margin: 0;
  max-width: 44ch;
}

/* Narrow contexts — inside a tool card, or the contact modal. */
.nf--stack .nf-form { gap: 18px; }
.nf--stack .nf-field { flex: 1 1 100%; }
.nf--stack .nf-input { font-size: 16px; }
.nf--stack .nf-done { font-size: 17px; }

@media (max-width: 767px) {
  .nf-field { flex: 1 1 100%; }
  .nf-form .button { width: 100%; }
}
