Styling and activating radio buttons on condition
Firstly, you could shorten the names of the variables e.g from $nav_color_i_active to $i_active and so on.
Secondly, there is a problem in your logic. You see else part will run if $navcolorhas any value other than 1. You should use elseif instead of else in both parts of code.