I am attempting to recreate something similar to the picture below, but whenever I add the code for it that I found, it does not come up with the proper form. I attached a PDF with the code below. I tested this is HTML Playground and it comes up functional except for the on/off slider.

My goal is to have a slider that activates the choices to be selected and then chosen. The choices will have values associated with them that will tally up on a counter.
Any help will be greatly appreciated!