Pain, Sex, & Period

I am waiting on a response from the doctor but I need answers ASAP.

I had sex with my partner Wednesday night & I was on my period and we used a condom. After sex that night I showered and put a condom in.

Thursday morning I woke up in pain, so I took the tampon out. I was having burning and itching.

Today is Friday and I am still having discomfort and I’m bleeding brown.

Anyone have a clue what’s going on??