0) {
const cleaned = phone.replace(/\s/g, '');
if (!cleaned.match(/^\+?[0-9]{10,15}$/)) {
phoneValid = false;
phoneError = 'Enter a valid phone number (10-15 digits)';
} else {
phoneValid = true;
phoneError = '';
}
} else {
phoneValid = true;
phoneError = '';
}
"
autocomplete="tel"
placeholder="+91 9876543210"
inputmode="tel"
maxlength="16"
class="w-full h-11 px-[15px] bg-[#ecfffa] border border-[#c8fef1] rounded-lg text-[15px] text-[#677874] placeholder:text-[#677874] focus:outline-none focus:border-[#00a07a] focus:ring-2 focus:ring-[#00a07a]/20 transition-colors"
:class="errors.phone || !phoneValid ? 'border-red-500 bg-red-50' : (phone && phoneValid ? 'border-green-500 bg-green-50' : '')"
>
✓ Valid phone number