idiom
spur of the moment
Meaning
an unplanned or spontaneous decision or action
Example
The idea came **on the spur of the moment** during lunch.