Question: what is the gender neutral version of sir?
Answer: So, in place of "yes, sir/madam", you replace the gendered term with something polite but not referring to gender. Such as "yes, of course!", "yes, no problem". So you're still being polite, but you're not resorting to gender to apply it.