advice please, help me feel like less of an idiot.

Ka
Feeling guilty .. Have only had sexual intercourse once in my life. Well tonight I let my mind get to me and ending up having intercourse with one of my best guy friends and I feel like shit. I feel so bad, and dirty because we are not in a relationship. Help