恍然醒悟

huǎng rán xǐng wù

a sudden realization

to realize sth in a flash

huǎng

(bound form) in a hazy state of mind

rán

correct

xǐng

to wake up

to comprehend