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

.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: transparent;
    border-bottom: 1px solid #172030;
    height: 50px !important;
    cursor: pointer;
    font-family: inherit;
}

.country-selector:focus {
    outline: none;
}

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

.dial-code {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.dropdown-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

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

.phone-input {
    flex: 1;
    border: none !important;
    background: transparent;
    padding: 12px 14px;
    font-size: inherit;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    border: 1px solid #ccc;
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    max-height: 320px;
    overflow: hidden;
}

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

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

.country-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}

.country-item:hover,
.country-item:focus {
    background: #f5f5f5;
}

.country-item img {
    width: 28px;
    height: 21px;
    object-fit: cover;
    border-radius: 2px;
}

.country-item .country-name {
    flex: 1;
}

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