/* International phone fields (intl-tel-input, wrapped by js/phone-input.js). */

/* Fill the form column like every other input. */
.iti.rh-phone { display: block; width: 100%; }
.iti.rh-phone input[type="tel"] { width: 100%; }

/* Country code next to the flag: readable and on-theme. */
.iti.rh-phone { --iti-dialcode-color: inherit; --iti-border-color: #cfd7e3; --iti-hover-color: rgba(8, 118, 214, .08); --iti-arrow-color: currentColor; }
.iti.rh-phone .iti__selected-dial-code { font-size: 16px; font-weight: 600; }
.iti.rh-phone .iti__selected-country { border-radius: 9px 0 0 9px; }

/* Country list */
.iti__dropdown-content { font-size: 16px; border-radius: 10px; box-shadow: 0 16px 40px rgba(13, 39, 85, .18); }
.iti__country { padding: 9px 12px; }
.iti__search-input { font-size: 16px; padding: 10px 12px; }

/* Dark theme (public site and portal both set html[data-theme="dark"]). */
html[data-theme="dark"] .iti.rh-phone { --iti-border-color: #426C99; --iti-hover-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .iti__dropdown-content { --iti-dropdown-bg: #10233F; background: #10233F; color: #EAF4FF; border-color: #426C99; }
html[data-theme="dark"] .iti__search-input { background: #0B1A30; color: #EAF4FF; border-color: #426C99; }
html[data-theme="dark"] .iti__country.iti__highlight { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .iti__dial-code { color: #9FB3CC; }
