I was driving my 2014 Hyundai Sonata in a rural area when smoke suddenly entered the cabin from the engine compartment. Two bystanders waved me down, alerting me that they could see fire underneath the engine compartment. I immediately stopped the vehicle, turned it off, and exited safely. I attempted to contact 911, but reception was poor. The fire spread from the engine compartment and engulfed the vehicle, producing thick smoke that created a serious safety risk. Emergency services arrived approximately 15 minutes after being notified and extinguished the fire. The vehicle burned for approximately 30 minutes in total resulting in total loss. There were no warning lights or messages prior to the fire. The vehicle has not yet been inspected by the manufacturer, police, or insurance representatives beyond the fire report. It was towed and is being stored on private property awaiting investigation.