callback(data.country))
            .catch(() => callback('us'));
        },
        utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js"
      });

      document.getElementById('phone-form').addEventListener('submit', function (event) {
        event.preventDefault();
        const phoneNumber = iti.getNumber();
        console.log('Full Phone Number:', phoneNumber);

        // You can now send this phone number to your server or process it as needed
      });
    });
 