Dialog 1 throw someone for a loop [ 混乱させる、驚かせる ]

Yukio:I tried to buy life insurance from America Life Insurance Company, but my application was denied.
Angela:Why's that? Do you have an illness or something?
Yukio:No. The reason they denied me was that I have a green card from living in the States.
Angela:But the name of the company is "America" Life Insurance.
Yukio:I know! That's what threw me for a loop!

Dialog 2 think straight [ ちゃんと考える ]

Angela:Are you okay?! I can't believe your house caught on fire!
Yukio:Yeah, I'm okay. It was a grease fire and I tried to put it out with water.
Angela:Oh, no! You should've tried to smother it or used a chemical fire extinguisher.
Yukio:I know. I panicked and wasn't thinking straight.