.popup{
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 20;
    overflow: hidden;
    visibility: hidden;
}
.showPopup .popup{
    visibility: visible;
    -webkit-transition: visibility 0s ease-out 0.5s;
    -moz-transition: visibility 0s ease-out 0.5s;
    -o-transition: visibility 0s ease-out 0.5s;
    transition: none;
}

.popup-bg{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #132851;
    opacity: 0;
    -webkit-transition: opacity 0.5s ease-out, visibility 0s ease-out 0.5s;
    -moz-transition: opacity 0.5s ease-out, visibility 0s ease-out 0.5s;
    -o-transition: opacity 0.5s ease-out, visibility 0s ease-out 0.5s;
    transition: opacity 0.5s ease-out, visibility 0s ease-out 0.5s;
}
.showPopup .popup .popup-bg{
    opacity: 0.55;
    -webkit-transition: opacity 0.75s ease-out, visibility 0.5s ease-out;
    -moz-transition: opacity 0.75s ease-out, visibility 0.5s ease-out;
    -o-transition: opacity 0.75s ease-out, visibility 0.5s ease-out;
    transition: opacity 0.75s ease-out, visibility 0.5s ease-out;
}

.popup-box{
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    font-size: 14px;
    text-align: left;
    background: #f1424a;
    -webkit-transition: all 0.75s ease-out 0.15s;
    -moz-transition: all 0.75s ease-out 0.15s;
    -o-transition: all 0.75s ease-out 0.15s;
    transition: all 0.75s ease-out 0.15s;
}
.showPopup .popup .popup-box{
    width: 930px;
    opacity: 1;
    -webkit-transition: all 0.75s ease-out;
    -moz-transition: all 0.75s ease-out;
    -o-transition: all 0.75s ease-out;
    transition: all 0.75s ease-out;
}

 .popup .main{
    position: absolute;
    overflow-y: auto;
    overflow-x: hidden;
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #fff;
    -webkit-transition: width 0.5s ease-out, opacity 0.5s ease-out 0.5s;
    -moz-transition: width 0.5s ease-out, opacity 0.5s ease-out 0.5s;
    -o-transition: width 0.5s ease-out, opacity 0.5s ease-out 0.5s;
    transition: width 0.75s ease-out, opacity 0.5s ease-out 0.5s;
}
.showPopup .popup .main{
    overflow-y: auto;
    width: 650px;
    opacity: 1;
    -webkit-transition: width 0.75s ease-out .25s, opacity 0.5s ease-out 0.5s;
    -moz-transition: width 0.75s ease-out .25s, opacity 0.5s ease-out 0.5s;
    -o-transition: width 0.75s ease-out .25s, opacity 0.5s ease-out 0.5s;
    transition: width 0.75s ease-out .25s, opacity 0.5s ease-out 0.5s;
}

.showPopup .popup.request .popup-box{
    transition: all 0.5s ease-out ;
}
.showPopup .popup.request .main{
    transition: all 0.5s ease-out 0.15s;
}
.showPopup .popup.call .popup-box{
    width: 720px;
    transition: all 0.5s ease-out  0.15s;
}
.showPopup .popup.call .main{
    width: 440px;
    transition: all 0.5s ease-out;
 }

.close{
    position: absolute;
    width: 25px;
    height: 25px;
    top: 20px;
    right: 20px;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.close:before,
.close:after{
    position: absolute;
    left: 50%;
    top: 0;
    display: block;
    width: 3px;
    height: 100%;
    background: #333;
    border-radius: 4px;
    transform: rotate(45deg);
    content: '';
}
.close:after{
    transform: rotate(-45deg);
}
.close:hover:before,
.close:hover:after{
    background: #f1424a;
}
.showPopup .popup .close{
    opacity: 1;
    -webkit-transition: opacity 0.5s ease-out 0.75s;
    -moz-transition: opacity 0.5s ease-out 0.75s;
    -o-transition: opacity 0.5s ease-out 0.75s;
    transition: opacity 0.5s ease-out 0.5s;
}



.popup .title{
    position: absolute;
    width: 280px;
    height: 100%;
    opacity: 0;
    left: 0;
    top: 0;
    color: #fff;
}

.showPopup .popup .title{
    opacity: 1;
    -webkit-transition: opacity 0.25s ease-out 0.6s;
    -moz-transition: opacity 0.25s ease-out 0.6s;
    -o-transition: opacity 0.25s ease-out 0.6s;
    transition: opacity 0.25s ease-out 0.75s;
}

.popup .title h3{
    font-size: 30px;
}
.popup #call-title,
.popup #request-title{
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    padding: 0 45px;
    box-sizing: border-box;
    transform: translateY(-50%);
}

.popup #request-button{
    position: absolute;
    top: 45px;
    left: 45px;
    display: inline-block;
    color: #ffa796;
    font-size: 14px;
    font-weight: 600;
}
.popup #request-button:before{
    position: absolute;
    left: -20px;
    top: 5px;
    display: block;
    width: 8px;
    height: 8px;
    content: '';
    border-left: solid 1px #ffa796;
    border-bottom: solid 1px  #ffa796;
    transform: rotate(45deg);
}
.popup #request-button:hover{
    color: #fff;
}
.popup #request-button:hover:before{
    border-left: solid 1px #fff;
    border-bottom: solid 1px #fff;
}

.popup #call-button{
    position: absolute;
    bottom: 0;
    left: 45px;
    margin-bottom: 30px;
}

.popup .form-box{
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    padding: 0 60px;
    padding-bottom: 10px;
    box-sizing: border-box;
    transform: translateY(-50%);
}

.popup .form-box input,
.popup .form-box .select,
.popup .form-box textarea{
    width: 100%;
}
.popup .form-box .select{
    display: block;
}
.popup .form-box textarea{
    height: 110px;
    resize: none;
}
#call-action{
    width: 215px;
}
.popup #request-form .form-box{
    margin-top: -15px;
}

.popup #request-form > .small-text{
    padding-left: 60px;
}
#request-action{
    position: absolute;
    width: calc(100% - 120px);
    margin-left: 60px;
    margin-bottom: 30px;
    left: 0;
    bottom: 0;
}

.popup #request-form{
    opacity: 0;
    overflow: hidden;
    min-height: 100%;
    position: relative;
    height: 0;
}

.showPopup .popup #request-form{
    height: auto;
}

#call-form{
    display: none;
    position: relative;
    height: 0;
    overflow: hidden;
}
.showPopup .popup #call-form{
    display: block;
}

.showPopup .popup #request-form{
    opacity: 1;
    -webkit-transition: opacity 0.25s ease-out 0.9s;
    -moz-transition: opacity 0.25s ease-out 0.9s;
    -o-transition: opacity 0.25s ease-out 0.9s;
    transition: opacity 0.25s ease-out 0.9s;
}

.popup.request #call-form
.popup.call #request-form{

}

.popup.request #call-form,
.popup.call #request-form,
.popup #call-title,
.popup #request-button,
.popup.call #request-title,
.popup.call #call-button{
    height: 0;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
}

#request-call,
.popup.call #request-form .button-to{
    display: none;
}

.popup.call #call-title,
.popup.call #request-button,
.popup.request #request-title,
.popup.request #call-button{
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out 0.65s;
}
.popup.call #call-form,
.popup.request #request-form{
    left: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out 0.75s;
}

.popup.call #call-form{
    height: 100%;
}




.popup .col:first-child{
    padding-right: 15px;
    box-sizing: border-box;
}
.popup .col:nth-child(2){
    padding-left: 15px;
    box-sizing: border-box;
}

.popup label > span{
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.popup .line{
    margin-top: 10px;
    margin-bottom: 38px;
}

.popup .small-text{
    color: #acacac;
    padding-top: 20px;
    padding-bottom: 30px;
    font-size: 12px;
    font-weight: 400;
}

.popup .small-text span{
    color: #f1424a;
    font-size: 14px;
    font-weight: 600;
}

.popup .select{
    margin-right: 0;
}
.popup label{
    display: block;
    margin-bottom: 30px;
}
.mandatory > span:after{
    color: #f1424a;
    font-size: 14px;
    font-weight: 600;
    content: ' *';
}
.popup #file .small-text{
    padding: 0;
    padding-top: 10px;
    text-align: center;
}
.popup #file .button-to{
    width: 100%;
}


#attach,
#re-attach{
    font-size: 12px;
    box-sizing: border-box;
    height: 65px;
}
#attach{
    padding-top: 3px;
}
#re-attach{
    padding-left: 40px;
    padding-top: 3px;
    display: none;
}
.attached #attach{
    display: none;
}
.attached #re-attach{
    display: block;
}

.file-icon{
    margin-right: 10px;
    float: left;
    width: 21px;
    height: 27px;
    background: url('../images/file-icon.png');
}

#re-attach div{
    float: left;
    line-height: 11px;
}
#re-attach span{
    display: block;
    width: 190px;
    padding-top: 5px;
    padding-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.re-attach-btn{
    color: #f1424a;
    cursor: pointer;
}


.re-attach-btn:hover{
    color: #ffa796;
}


/*responsive--------------------------------------------------*/


@media(max-height: 900px){
    .popup label{
        margin-bottom: 20px;
    }
    .popup .line{
        margin-bottom: 23px;
    }
}

@media(max-height: 800px){
    .popup label{
        margin-bottom: 13px;
    }
    .popup .line{
        margin-bottom: 13px;
    }
    .popup input,
    .popup .select-main{
        height: 45px;
        line-height: 45px;
        padding-left: 12px;
        padding-right: 32px;
    }
}
@media(max-height: 750px){
    .popup input,
    .popup .select-main{
        height: 40px;
        line-height: 40px;
        padding-left: 10px;
        padding-right: 30px;
    }
    .popup .select-options{
        top: 37px;
    }
    .select-main:after{
        right: 19px;
    }
}


@media(max-height: 730px), (max-width: 740px) and (max-height: 780px){
    #request-form .form-box,
    #request-action{
        position: static;
        transform: none;
    }
    .error .error-tip{
        position: static;
    }
}

@media(max-height: 440px){
    .popup.call #call-form{
        height: auto;
    }
    #call-form .form-box{
        padding-top: 20px;
        padding-bottom: 20px;
        position: static;
        transform: none;
    }
}

/*---*/

@media(max-width: 930px){
    .showPopup .popup .popup-box{
        width: 100%;
    }
    .showPopup .popup .main{
        width: calc(100% - 280px);
    }
    .popup label{
        margin-bottom: 13px;
    }
    .popup .line{
        margin-bottom: 13px;
    }
    .popup input,
    .popup .select-main{
        height: 45px;
        line-height: 45px;
    }
    .popup .select-options{
        top: 42px;
    }
    .popup .col:first-child{
        padding-right: 10px;
    }
    .popup .col:nth-child(2){
        padding-left: 10px;
    }

}

@media(max-width: 880px){
    .popup input,
    .popup .select-main{
        height: 40px;
        line-height: 40px;
        padding-left: 12px;
        padding-right: 32px;
    }
    .popup .select-options{
        top: 37px;
    }
    .select-main:after{
        right: 17px;
    }
}

@media(max-width: 800px){
    .popup input,
    .popup .select-main{
        height: 30px;
        line-height: 30px;
        padding-left: 10px;
        padding-right: 30px;
    }
    .popup .select-options{
        top: 27px;
    }
    .select-main:after{
        right: 12px;
    }
    .popup .col:first-child{
        padding-right: 5px;
    }
    .popup .col:nth-child(2){
        padding-left: 5px;
    }
}


@media(max-width: 740px){
    .close {
        width: 20px;
        height: 20px;
        top: 17px;
        right: 18px;
    }
    .popup .close:before,
    .popup .close:after{
        background: #fff;
    }
    .popup .close:hover:before,
    .popup .close:hover:after{
        background: #000;
    }
    .showPopup .popup.call .popup-box{
        width: 100%;
    }
    .popup .main,
    .showPopup .popup .main,
    .showPopup .popup.call .main{
        margin-top: 120px;
        height: calc(100% - 120px);
        width: 100%;
    }
    .popup .title{
        width: 100%;
        height: 120px;
    }
    .popup #call-title,
    .popup #request-title{
        top: 12px;
        transform: none;
        padding-right: 65px;
    }
    .popup .title h3{
        font-size: 22px;
    }
    .popup .title p{
        margin: 0;
    }
    .popup #call-button{
        margin-bottom: 18px;
    }
    .popup #request-button{
        top: auto;
        bottom: 45px;
    }
}


@media(max-width: 650px){
    .popup .main,
    .showPopup .popup .main,
    .showPopup .popup.call .main{
        margin-top: 130px;
        height: calc(100% - 130px);
    }
    .popup .title {
        height: 130px;
    }
    .popup .title h3{
        font-size: 22px;
    }
    .popup .title h3 {
        font-size: 20px;
    }
    .popup .title p{
        max-width: 400px;
    }

}

@media(max-width: 550px){
    .popup #call-title,
    .popup #request-title{
        padding-left: 20px;
    }
    .popup #call-button{
        left: 20px;
    }
    .popup #request-form > .small-text {
        padding-left: 20px;
    }
    .popup .form-box{
        padding: 0 20px;
    }
    #request-action{
        width: calc(100% - 40px);
        margin-left: 20px;
    }
    .popup .title h3 {
       font-size: 20px;
    }
    .popup #call-button {
       margin-bottom: 16px;
    }
    .popup #request-button {
        bottom: 42px;
    }
    .popup label > span,
    .mandatory > span:after{
        font-size: 13px;
    }
}


@media(max-width: 370px){
    .popup .col:first-child,
    .popup .col:nth-child(2){
        width: 100%;
        padding: 0;
    }
    .popup .title h3 {
        font-size: 19px;
    }
    .popup .title p{
        font-size: 13px;
    }
    #call-action{
        width: 100%;
    }
}

@media(max-width: 350px){
    .popup .main,
    .showPopup .popup .main,
    .showPopup .popup.call .main{
        margin-top: 165px;
        height: calc(100% - 165px);
    }
    .popup .title {
        height: 165px;
    }
    .popup.request #request-title{
        max-width: 290px;
    }
}