/* Neurowatch · contact form · paper-and-ink system */

.lead-form {
  display: grid;
  gap: 14px;
  max-width: 580px;
  margin-top: 8px;
}

.lead-form__row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.lead-form__field {
  display: grid;
  gap: 6px;
}

.lead-form__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.lead-form__input {
  font: inherit;
  font-size: 16px;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-rule-strong);
  border-radius: 2px;
  padding: 12px 14px;
  min-height: 46px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-form__input::placeholder {
  color: var(--color-muted);
  opacity: 0.75;
}

.lead-form__input:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.lead-form__input[aria-invalid="true"] {
  border-color: oklch(52% 0.19 25);
}

.lead-form__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted);
}

.lead-form__consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.lead-form__submit {
  justify-self: start;
  min-width: 220px;
}

.lead-form__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.lead-form__status {
  font-size: 14px;
  line-height: 1.45;
  min-height: 20px;
  margin: 0;
}

.lead-form__status[data-state="ok"] {
  color: oklch(45% 0.13 150);
}

.lead-form__status[data-state="error"] {
  color: oklch(50% 0.19 25);
}

.contact-band {
  border-top: 1px solid var(--color-rule);
}

@media (max-width: 640px) {
  .lead-form__row {
    grid-template-columns: 1fr;
  }

  .lead-form__submit {
    width: 100%;
  }
}

/* dark band variant (homepage close-band) */
.close-band .lead-form {
  max-width: 560px;
}

.close-band .lead-form__label {
  color: var(--color-on-night-muted);
}

.close-band .lead-form__input {
  background: var(--color-night-2);
  border-color: var(--color-night-rule);
  color: var(--color-on-night);
}

.close-band .lead-form__input::placeholder {
  color: var(--color-on-night-muted);
  opacity: 0.7;
}

.close-band .lead-form__consent {
  color: var(--color-on-night-muted);
}

.close-band .lead-form__consent .text-link {
  color: var(--color-on-night);
}

.close-band .lead-form__status[data-state="ok"] {
  color: oklch(82% 0.12 150);
}

.close-band .lead-form__status[data-state="error"] {
  color: oklch(76% 0.15 30);
}

/* submit stays the single cobalt action, even on the dark band */
.close-band .lead-form .lead-form__submit,
.close-band .lead-form .lead-form__submit:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: none;
  border: 1px solid transparent;
}

.close-band .lead-form .lead-form__submit:hover {
  background: color-mix(in oklab, var(--color-accent) 86%, black);
}

.lead-form__submit:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* contacts page: lead card in the hero */
.page-hero__grid--lead {
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6fr);
  align-items: start;
}

.lead-card {
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  padding: clamp(20px, 2.2vw, 32px);
}

.lead-card__title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.lead-card__note {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.lead-card .lead-form {
  margin-top: 0;
  max-width: none;
}

.page-hero__alt {
  margin-top: 18px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .page-hero__grid--lead {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
}

.lead-card .lead-form__submit,
.lead-card .lead-form__submit:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.lead-card .lead-form__submit:hover {
  background: color-mix(in oklab, var(--color-accent) 86%, black);
}