/* Signup forms — shared across every page that captures an email.
   Save as: assets/css/sjw-forms.css
   Include with: <link rel="stylesheet" href="/assets/css/sjw-forms.css"> */

.sjw-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

.sjw-field { display: grid; gap: 0.35rem; }

.sjw-field label,
.sjw-consent label {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: #0F2840;
}

.sjw-field input {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(15, 40, 64, 0.25);
  border-radius: 2px;
  font: inherit;
  color: #0F2840;
  background: #fff;
}

.sjw-field input:focus-visible {
  outline: 2px solid #C4A862;
  outline-offset: 1px;
  border-color: #C4A862;
}

/* Two fields side by side on wider screens. Wrap the pair in .sjw-row. */
.sjw-row { display: grid; gap: 1rem; }
@media (min-width: 32rem) {
  .sjw-row { grid-template-columns: 1fr 1fr; }
}

.sjw-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.85rem;
  line-height: 1.5;
}

.sjw-submit {
  justify-self: start;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 2px;
  background: #0F2840;
  color: #fff;
  font: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sjw-submit:hover { background: #163854; }
.sjw-submit:disabled { opacity: 0.55; cursor: default; }

.sjw-status { font-size: 0.875rem; min-height: 1.4em; margin: 0; }
.sjw-status[data-state="error"] { color: #AB2B2B; }
.sjw-status[data-state="ok"] { color: #0F2840; }

/* Honeypot: stays in the DOM, out of sight and out of the tab order. */
.sjw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
