The trouble with dress codes is usually even the people suggesting one don’t know what the code is
So you could comply with what they ask for …. and find thats not what they had in mind at all
“casual” in particular is often misunderstood as in the dress code hierarchy the ‘casual’ is relating to not just work attire but state-occation shiny buttons and hats with feathers formal. Even in that diagram with tux, cumabund (sp) and bow tie you’re only semi-formal. So even ‘smart casual’ is a code for occasions that most of us would never find ourselves in. The smartest clothes most people own – that they’d wear for a wedding, a job interview or a court appearance – is still classed as ‘Informal’
There was long thread on here where someone had been invited to a party that was ‘Smart Casual’ and no-one could agree for the OP what that was. People take it to mean ‘wear something clean that doesn’t have holes in’ but its a very specific code and much smarter and much more formal than most people realise.