/* Additions to the shared MADE form styles: radio pills, textarea, date. */

textarea,
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea { min-height: 120px; resize: vertical; }
input[type="date"] { height: 48px; padding: 0 14px; -webkit-appearance: none; appearance: none; }

textarea:focus,
input[type="date"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

textarea[aria-invalid="true"],
input[type="date"][aria-invalid="true"],
.choices[aria-invalid="true"] .choice span { border-color: var(--danger); }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.choice { margin: 0; position: relative; }

.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--teal-soft); }

.other, .due { margin-top: 14px; }

.done .submit { margin-top: 20px; }
