+
+
+ setFuelAmount(e.target.value)}
+ placeholder="Enter fuel amount"
+ className="w-full py-4 px-4 text-lg border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent"
+ required
+ />
+
+
+
+
+ {['liters', 'gallons'].map((unit) => (
+
+ ))}
+
+
+
+ )}
+
+ {calculationType === 'distance' && (
+
+
+
+ setDistance(e.target.value)}
+ placeholder="Enter distance"
+ className="w-full py-4 px-4 text-lg border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent"
+ required
+ />
+
+
+
+
+ setSpeed(e.target.value)}
+ placeholder="Average speed"
+ className="w-full py-4 px-4 text-lg border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent"
+ required
+ />
+
+
+
+
+
setFuelRate(e.target.value)}
+ placeholder="Fuel consumption rate"
+ className="w-full py-4 px-4 text-lg border border-gray-300 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-transparent"
+ required
+ />
+
+ Typical: 50-500 L/h for most yachts
+
+
+