/**
 * Form system (audit 3.9 / FR3)
 * Consistent required markers + blur validation feedback.
 */

.form-label .req,
.req-mark {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
  font-size: 0.95em;
}

.form-control.is-invalid,
.form-select.is-invalid,
.single-select-input.is-invalid,
.multi-select-input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12) !important;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #0f766e !important;
}

.field-error {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.35;
}

.field-error.is-visible {
  display: block;
}

/* FR2 — filter preset chips */
.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.filter-preset {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #dbe3e8;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-preset:hover {
  border-color: #b8e4e4;
  background: #e6f5f5;
  color: #1a585e;
}

.filter-preset.is-active {
  border-color: #1a585e;
  background: #1a585e;
  color: #fff;
}

/* FR1 — progressive disclosure */
.disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a585e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.disclosure-toggle:hover {
  color: #3faeb2;
}

.disclosure-panel {
  margin-top: 12px;
}

.disclosure-panel[hidden] {
  display: none !important;
}
