.phone-input-container {
    display: flex;
    gap: 8px;
}

.country-select {
    position: relative;
    width: 140px;
    flex-shrink: 0;
}

.country-trigger {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    height: 47px;
}

#selected-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    overflow: hidden; /* Clips children to border radius */
}

/* STICKY SEARCH BAR */
.country-search {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

#country-search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    outline: none;
}

#country-search-input:focus {
    border-color: var(--accent);
}

.country-list {
    max-height: 350px;
    overflow-y: auto;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.1s;
}

.country-item:hover {
    background: #f9fafb;
}

.country-item .flag-icon {
    width: 20px;
    border-radius: 1px;
}

.country-item .name {
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-item .code {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 600;
}

/* Scrollbar Styling */
.country-list::-webkit-scrollbar {
    width: 6px;
}
.country-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}