function Simulator({ onQuote }) {
const [vehicleType, setVehicleType] = React.useState('popular');
const [age, setAge] = React.useState(35);
const [region, setRegion] = React.useState('marialva');
const [parking, setParking] = React.useState('garagem');
// Simple deterministic estimate
const baseByType = { popular: 89, sedan: 132, suv: 168, premium: 245 };
const ageMod = age < 25 ? 1.4 : age < 30 ? 1.15 : age < 50 ? 1 : age < 65 ? 1.08 : 1.25;
const regionMod = region === 'maringa' ? 1.18 : region === 'outra' ? 1.1 : 1;
const parkingMod = parking === 'rua' ? 1.3 : parking === 'condominio' ? 0.92 : 0.95;
const estimate = Math.round(baseByType[vehicleType] * ageMod * regionMod * parkingMod);
const high = Math.round(estimate * 1.3);
return (
Estimativa baseada no perfil. A cotação final usa dados reais da seguradora — sem surpresas.
Em 30 segundos, uma faixa de preço para o seu seguro auto.
baseada no perfil