I\'ve searched extensively on here for an answer to this but haven\'t quite come across what I\'m looking for. Found this CSS - How to Style a Selected Radio Buttons Label? but
Unfortunately CSS doesn't allow the styling of parent elements based on child elements which would be the easy way example:
div.a < div { border: solid 3px red; }
The opposite of selecting a child based on parent:
div.a > div { border: solid 3px red; }
What you are wanting to do can be achieved using jQuery.
Check out this post.