.phone-input-container {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 16px;
    overflow: visible;
    background: white;
    height: 60px;
    width: 100%;
    box-shadow: none;
}

.country-code-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    cursor: pointer;
    min-width: 90px;
    user-select: none;
    height: 58px;
    border-radius: 15px 0 0 15px;
}

.country-code-dropdown:hover {
    background: #e9ecef;
}

.country-flag {
    font-size: 16px;
    margin-right: 6px;
}

.country-code {
    font-weight: 500;
    color: #333;
    margin-right: 4px;
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
    margin-left: 2px;
}

.country-code-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.phone-number-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 16px;
    background: transparent;
    height: 58px;
    border-radius: 0 15px 15px 0;
}

.phone-number-input::placeholder {
    color: #999;
}

.country-dropdown-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.country-dropdown-list.show {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.country-option:hover {
    background: #f8f9fa;
}

.country-option .country-flag {
    margin-right: 12px;
}

.country-option .country-info {
    flex: 1;
}

.country-option .country-name {
    font-weight: 500;
    color: #333;
}

.country-option .country-code {
    color: #666;
    font-size: 14px;
    margin-left: 8px;
}

/* Scrollbar styling */
.country-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.country-dropdown-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.country-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Search input in dropdown */
.country-search {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #eee;
    padding: 8px 16px;
}

.country-search input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

.country-search input:focus {
    border-color: #FFA524;
}
/* Theme in
tegration styles */
.input-field .phone-input-container {
    margin-top: 8px;
}

.phone-input-container:focus-within {
    border-color: #FFA524;
    box-shadow: 0 0 0 2px rgba(255, 165, 36, 0.2);
}

.country-code-dropdown:hover {
    background: #e9ecef;
}

.phone-number-input:focus {
    outline: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .country-code-dropdown {
        min-width: 80px;
        padding: 0 8px;
    }
    
    .country-flag {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .country-code {
        font-size: 12px;
    }
    
    .dropdown-arrow {
        font-size: 8px;
    }
}

/* Fix for form styling */
.input-field .phone-input-container input[type="tel"] {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0 16px;
}

.input-field .phone-input-container input[type="tel"]:focus {
    border: none;
    box-shadow: none;
}