The idiom “flaming idiot” is used to describe a particularly stupid person. Here’s a literal definition:-