It is important to choose an electrolytic capacitor with a voltage rating higher than the secondary winding voltage of the transformer to ensure the capacitor can handle the voltage without failure
You are designing a power supply circuit for a device that requires a constant output voltage of 12V. A series regulator circuit would be most suitable to achieve the constant output voltage