have taken leave of (one's) senses
To have entered a state of extreme foolishness or insanity. The phrase is often used to refers to someone who has done something strange or outlandish. Have you taken leave of your senses? You can't just give up your job to move upstate and paint landscapes!