.phone-area{
    position: relative;
}
.phone-area input{
    padding-left: 30px;
}
.phone-area .flag{
    position: absolute;
    left: 5px;
    top: 50%;
    height: 19px;
    width: 19px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 0px #000;
    transition: 0.5s;
    margin-top: -10px;
}
.phone-area .flag:hover{
    transform: scale(1.2);
    box-shadow: 0 0 1px #000;
}
.phone-area .flag.ka{
    background:url(kazakhstan.svg) center center no-repeat;
}
.phone-area .flag.be{
    background:url(belarus.svg) center center no-repeat;
}
.phone-area .flag.ru{
    background:url(russia.svg) center center no-repeat;
}
.phone-area .state-list{
    max-width: 0;
    max-height: 0;
    transform: scale(0);
    transition: 0.5s;
    list-style: none;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    box-shadow: 0 0 4px #000;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    z-index: 55;
}
.phone-area .state-list.selected{
    display: none;
}
.phone-area .state-list.active{
    max-width: 200px;
    max-height: 200px;
    transform: scale(1) translate(0, -25%);
}
.phone-area .state-item:last-child{
    margin-bottom: 0;
}
.phone-area .state-item{
    margin-bottom: 10px;
    cursor:pointer;
    transition: 0.5s;
    padding-left:30px;
    position: relative;
}
.phone-area .state-item:before{
    content: '';
    position: absolute;
    left:0;
    top:50%;
    margin-top: -10px;
    height: 20px;
    width:20px;
    box-shadow: 0 0 1px #000;
    transition: 0.5s;
    border-radius: 50%;
}
.phone-area .state-item.be:before{
    background:url(belarus.svg) left center no-repeat;
}
.phone-area .state-item.ru:before{
    background:url(russia.svg) left center no-repeat;
}
.phone-area .state-item.ka:before{
    background:url(kazakhstan.svg) left center no-repeat;
}
.phone-area .state-item:hover:before{
    transform: scale(1.3);
    box-shadow: 0 0 3px #000;
}
.phone-area .state-item:hover{
    text-decoration: underline;
}