+
+ {/* Row 1: Title */}
+
+
+
setManualAddressData({...manualAddressData, title: e.target.value})}
+ className={cn("w-full bg-medical-gray-50 border rounded-2xl py-3 px-5 outline-none font-bold transition-all focus:ring-2 focus:ring-canina-blue/20 text-xs", manualErrors.title ? "border-red-300" : "border-medical-gray-100")}
+ placeholder="مثال: منزل اصلی"
+ />
+ {manualErrors.title &&
{manualErrors.title}
}
+
+
+
+ {/* Row 2: Name & Phone */}
+
+
+
setManualAddressData({...manualAddressData, receptorName: e.target.value})}
+ className={cn("w-full bg-medical-gray-50 border rounded-2xl py-3 px-5 outline-none font-bold transition-all focus:ring-2 focus:ring-canina-blue/20 text-xs", manualErrors.receptorName ? "border-red-300" : "border-medical-gray-100")}
+ placeholder="نام و نام خانوادگی..."
+ />
+ {manualErrors.receptorName &&
{manualErrors.receptorName}
}
+
+
+
+
setManualAddressData({...manualAddressData, phone: e.target.value})}
+ className={cn("w-full bg-medical-gray-50 border rounded-2xl py-3 px-5 outline-none font-bold transition-all focus:ring-2 focus:ring-canina-blue/20 text-left text-xs", manualErrors.phone ? "border-red-300" : "border-medical-gray-100")}
+ placeholder="09120000000"
+ dir="ltr"
+ />
+ {manualErrors.phone &&
{manualErrors.phone}
}
+
+
+
+
+ {/* Row 3: Province & City */}
+
+
+
{
+ const cities = PROVINCE_CITIES[newProv] || [];
+ setManualAddressData({
+ ...manualAddressData,
+ province: newProv,
+ city: cities[0] || ""
+ });
+ }}
+ />
+ {manualErrors.province && {manualErrors.province}
}
+
+
+
+
+ {manualAddressData.province && PROVINCE_CITIES[manualAddressData.province] ? (
+
setManualAddressData({...manualAddressData, city: c})}
+ />
+ ) : (
+ setManualAddressData({...manualAddressData, city: e.target.value})}
+ className={cn("w-full bg-medical-gray-50 border rounded-2xl py-3 px-5 outline-none font-bold transition-all focus:ring-2 focus:ring-canina-blue/20 text-xs", manualErrors.city ? "border-red-300" : "border-medical-gray-100")}
+ placeholder="نام شهر..."
+ />
+ )}
+ {manualErrors.city && {manualErrors.city}
}
+
+
+
+ {/* Row 4: Detail Address */}
+
+
+ {/* Row 5: Zip Code */}
+
+
+
setManualAddressData({...manualAddressData, zipCode: e.target.value.replace(/[^0-9]/g, '')})}
+ className={cn("w-full bg-medical-gray-50 border rounded-2xl py-3 px-5 outline-none font-bold transition-all focus:ring-2 focus:ring-canina-blue/20 text-left text-xs", manualErrors.zipCode ? "border-red-300" : "border-medical-gray-100")}
+ placeholder="1234567890"
+ dir="ltr"
+ />
+ {manualErrors.zipCode &&
{manualErrors.zipCode}
}
+
+
)}
@@ -752,6 +849,7 @@ export default function CheckoutPage() {
}}
/>
+