/*
 * Forms: .field is a label, its input and a hint (.field-hint) or what's wrong (.field-error); .form-actions holds the
 * buttons. Inputs are 16px, so a phone doesn't zoom in when one is tapped.
 */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: 14px; }
.field-hint { color: var(--ink-soft); font-size: 13px; }
.field-error { color: var(--alert); font-size: 13px; font-weight: 500; }

.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input:not([type]), .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: var(--radius-small);
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field--invalid input, .field--invalid textarea { border-color: var(--alert); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Choices: a radio or checkbox with its words beside it, each in a quiet box. */
.choices { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--card); cursor: pointer;
}
.choice:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.choice input { margin: 3px 0 0; accent-color: var(--accent-deep); width: 16px; height: 16px; flex: none; }
.choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-title { font-weight: 600; font-size: 14px; }
.choice-hint { color: var(--ink-soft); font-size: 13px; }
.choices--inline { flex-direction: row; flex-wrap: wrap; }
.choices--inline .choice { flex: 1 1 140px; }
