How to make a color-dependent fields collapse form?