Modal Country/region code options

Hi!,

Can anyone help?
I’m trying to make a modal that will show a county code selection.

What’s expected:
Clicking on the 'country/region code` input field will show a modal with options to country code.
selecting a country code will update the input field with the chosen country code.

countr%20select

Thanks