What causes spotting for long period of time?

Wa

I have been spotting for 15 days now. I have a appointment next week Wednesday with my doctor. Spotting is so annoying. Sometimes is light brown, dark brown, or pink. 2 times when I went to the bathroom it was bright red. I thought maybe my period was starting. I started spotting 7dpo and have been spotting ever since. I never had this happen before. It's usually only when I wipe. Sometimes it will be on the pad but not much. Have anyone had this happen? Do you know what caused it?