.form { display: grid; gap: 14px; max-width: 640px; }
.form--wide { max-width: none; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 700; }
.field__label small { font-weight: 500; color: var(--text-3); }

/*
 * The edge of a field must be visible (WCAG 1.4.11: 3:1 against what is
 * around it). #8c8080 is 3.8:1 on white and 3.3:1 on the grey tiles; the old
 * #ded6d6 was 1.4:1, which read as a white box without a border.
 */
.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #8c8080;
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(43, 1, 4, 0.06);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: #8a7d7d; opacity: 1; }
.input:hover { border-color: #5c4f4f; }

textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: auto; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.22); }
.input[aria-invalid='true'] { border-color: var(--red); background: #fff6f6; }

.field__error { font-size: 13.5px; font-weight: 600; color: var(--red-dark); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }

/* Honeypot: off-screen instead of display:none, so bots still fill it in. */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: #eaf6e9;
  color: #0c5a07;
  font-weight: 600;
}

.notice--error { background: #fdecec; color: var(--red-dark); }
.notice--info { background: var(--tile); color: var(--text-2); font-weight: 500; }

.search { display: flex; gap: 8px; max-width: 520px; }
.search .input { flex: 1 1 auto; }

@media (max-width: 600px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .search { flex-wrap: wrap; }
  .search .pill { flex: 1 1 100%; }
}
