.phone-with-code {
    position: relative;
}

.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid #a5c4cf;
    overflow: hidden;
    height: 50px;
}

.phone-input-wrapper:focus-within {
    border-bottom: 1px solid #000;
}

.country-selector {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #ffffff4d;
    border-right: 1px solid #ddd;
    cursor: pointer;
    user-select: none;
    min-width: 110px;
    justify-content: space-between;
}

.country-selector .flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.country-selector .dial-code {
    font-weight: 600;
    margin-left: 8px;
    font-size: 15px;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
    margin-left: 6px;
}

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

.phone-input {
    border: none !important;
    flex: 1;
    padding-left: 16px;
}

.country-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-dropdown.open {
    display: block;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

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

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

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

.country-item img {
    width: 24px;
    height: 18px;
    margin-right: 12px;
    border-radius: 2px;
}

.country-item .country-name {
    flex: 1;
    font-size: 14px;
}

.country-item .dial-code {
    color: #666;
    font-size: 13px;
}