How important is hairstyle on a guy for girls?

I used to have some pretty shitty long hair and then i got a haircut. short and clean cut and then all of the sudden i have girls who seem to be flirting with me, something thats never happened before. How important is hairstyle?
How important is hairstyle on a guy for girls?
Post Opinion