    /* custom-styles.css - IMPORTANT: Place this after Bootstrap CSS and iti.css */

/* 1. STYLES FOR THE MAIN PHONE NUMBER INPUT FIELD (.iti wrapper) */
/* Target the .iti container ONLY when it's NOT the fullscreen popup. */
.iti:not(.iti--fullscreen-popup) {
    height: calc(1.5em + 32px + 2px) !important;
    min-height: calc(1.5em + 32px + 2px) !important;
    
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    
    font-size: 1rem !important;
    line-height: 1.5 !important;
    
    background-color: white !important;
    border: none !important;
    border-radius: var(--bs-border-radius) !important;
    box-shadow: none !important;
    
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. STYLES FOR THE PHONE NUMBER INPUT FIELD ITSELF (inside the .iti wrapper) */
.iti input.iti__tel-input {
    height: 100% !important;
    margin: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 110px !important;
    padding-right: 0.75rem !important;
    
    border: none !important;
    background-color: white !important;
    line-height: 1.5 !important;
    flex-grow: 1;
    color: var(--bs-body-color) !important;
    box-sizing: border-box !important;
}

/* 3. STYLES FOR THE SELECTED COUNTRY FLAG/DIAL CODE AREA */
.iti__selected-country {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: white !important;
}

.iti__selected-country-primary {
    height: 100% !important;
    margin: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    
    display: flex;
    align-items: center;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* 4. STYLES FOR THE MOBILE FULLSCREEN DROPDOWN POPUP */
.iti--fullscreen-popup.iti--container {
    padding: 0 !important;
    
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    
    /* REMOVE TEMPORARY VISUALIZATION BACKGROUNDS IF YOU NO LONGER NEED THEM */
    /* background-color: rgba(255, 0, 0, 0.3) !important; */
}

/* 5. Styles for the actual dropdown content within the fullscreen popup */
.iti--fullscreen-popup .iti__dropdown-content {
    max-height: none !important;
    height: 100% !important;
    flex-grow: 1 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    
    overflow-y: auto !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll in content */
    
    /* REMOVE TEMPORARY VISUALIZATION BACKGROUNDS IF YOU NO LONGER NEED THEM */
    /* background-color: rgba(0, 255, 0, 0.3) !important; */
}

/* 6. Styles for the search input within the fullscreen dropdown */
.iti--fullscreen-popup .iti__search-input {
    flex-shrink: 0;
    width: 100% !important; /* Keep 100% of parent width */
    padding: 15px !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important; /* Explicitly ensure border-box for search input */
}

/* 7. Styles for the country list and individual list items within fullscreen dropdown */
.iti--fullscreen-popup .iti__country-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.iti--fullscreen-popup .iti__dropdown-content li {
    padding: 15px !important;
    line-height: 1.5 !important;
    font-size: 1.1em !important;
}

/* Global dropdown content style */
.iti__dropdown-content {
    background-color: white !important;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.15) !important;
    z-index: 1050 !important;
    border-radius: var(--bs-border-radius) !important;
}