/* ──────────────────────────────────────────────────────────────────────────
 * Church registration form (church_registrations/_people_step.html.erb).
 *
 * The note on registering the Information Officer with the Information
 * Regulator only shows once someone answers "No" or "Not sure". :has() reads
 * the select's chosen option, so it needs no JavaScript and also holds when
 * the form is shown again after a failed submit.
 * ────────────────────────────────────────────────────────────────────────── */
.regulator-note {
  display: none;
}

.regulator-field:has(option[value="no"]:checked, option[value="not_sure"]:checked) .regulator-note {
  display: block;
}
