Hi,
The weather in Madrid during May can be (usually is in fact!) unpredicable. So it's probably a good idea to bring waterproofs and at least one warm jacket. Smart casual - absolutely for the evenings, just also remember to be comfortable.
I hope you really enjoy your stay in Madrid, this is a fantastic city.
Sarah