Why does clicking the label toggle the checkbox or radio?
Because the label's for attribute matches the input's id, clicking the label activates the input, improving accessibility and usability (see render_step 2 and 5).
💡 Labels linked to inputs act like clicking the input itself.
Why are the checkbox and label not stacked vertically by default?
The container uses flexbox (form-check class) to align them horizontally and center vertically, making the UI cleaner and easier to scan (see render_step 3).
💡 Flexbox aligns items side by side by default.
Why do radio buttons in the same group allow only one selection?
Because they share the same name attribute, the browser enforces only one radio selected at a time, unlike checkboxes which are independent (see render_step 4).
💡 Same name radios form exclusive groups.