/* popup container */
#popup-container{
    display: none;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
    background: #00000017;
}

#login-popup-container{
    display: none;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
    background: #00000017;
}


/* for animation */
@keyframes popup {
    from {right: -100%;}
    to {right: 0%;}
}

@keyframes popupClose {
    from {right: 0%;}
    to {right: -100%;}
}

.openPopup{
    position: absolute;
    animation: popup 0.2s ease-in;
    -o-animation:  popup 0.2s ease-in;
    -moz-animation:  popup 0.2s ease-in;
    -webkit-animation:  popup 0.2s ease-in;
    right: 0 ;
    display: block !important;
}

.closePopup{
    position: absolute;
    animation: popupClose 1s ease-in;
    -o-animation:  popupClose 0.2s ease-in;
    -moz-animation:  popupClose 0.2s ease-in;
    -webkit-animation:  popupClose 0.2s ease-in;
    right: -100% ;
}

#closePopup{
    position: absolute;
    right: 100%;
    top: 1%;
    background: white;
    border: 1px solid #f1f4f7;
    border-right: none;
    cursor: pointer;
    width: 43px;
}

/* popupbox */
.popup-box{
    max-width: 420px;
    width: 100%;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 10px 10px 30px #00000029;
    padding: 10px 40px;
    float: right;
    margin: 0;
    min-height: 100vh;
    background-color: white;
}

/* popupbox */
.login-popup-box{
    max-width: 420px;
    width: 100%;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 10px 10px 30px #00000029;
    padding: 10px 40px;
    float: right;
    margin: 0;
    min-height: 100vh;
    background-color: white;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    background-color: white !important;
}

.popup-box h3{
    font-size: 20px;
    line-height: 1.5;
    font-family: 'Montserrat SemiBold';
}

/* form field */
.form-field{
    position: relative;
    width: auto;
    margin-top: 20px;
}

/* form-input-field */
.form-field .form-control{
    width: 100%;
    font-size: 20px;
    padding: 9px 20px;
    border: 1px solid #adb5bd;
    border-radius: 5px;
    color: #000000;
    font-size: 13px;
    font-family: 'Montserrat' !important;
}

/* select */
.form-field select:focus option:nth-child(1){
    display: none;
 }

.form-field select option{
    padding: 20px !important;
}
  
/* placeholder of input fields */
input::-webkit-input-placeholder { /* Edge */
    color: black !important;
  }
  
input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: black !important;
  }
  
input::placeholder {
    color: black !important
}

.demo-btn:hover{
    background-color: white !important;
}

/* form labels */
.form-field .form-label{
    position: absolute;
    top: 6px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    left: 1rem;
    padding-top: 0.37rem;
    pointer-events: none;
    transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    transition: all .2s ease-out;
    -o-transition: all .2s ease-out ;
    -moz-transition:all .2s ease-out ;
    -webkit-transition:all .2s ease-out ;
    color: rgba(0,0,0,.6);
    margin-bottom: 0;
    transform: translateY(-1.4rem) translateY(0.1rem) scale(.8);
    -o-transform:translateY(-1.4rem) translateY(0.1rem) scale(.8);
    -ms-transform:translateY(-1.4rem) translateY(0.1rem) scale(.8);
    -moz-transform:translateY(-1.4rem) translateY(0.1rem) scale(.8);
    -webkit-transform:translateY(-1.4rem) translateY(0.1rem) scale(.8);
    background-color: white;
    padding: 5px 10px;
    color: #7E7E7E;
    font-size: 15px;
    font-family: 'Montserrat Medium' !important;
}

.popup-box .blue-btn{
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 15px;
}

/* input field on focus */
.form-control:focus {
    border-color: #0D83DD;
    outline: none;
    box-shadow: none;
}

/* label on focus */
.form-control:focus + label,
.iti:has(input:focus) + label{
    color: #0D83DD;
}

.modal-btns a{
    color: #0D83DD;
}

.modal {
    z-index: 10600;
}

/* for ReCaptcha */
.g-recaptcha {
    margin-top: 20px;
    margin-bottom: 0px;
}

.rc-anchor-error-message {
    padding: 0 20px;
}

.rc-anchor-logo-portrait {
    margin: 10px 0 0 10px;
}

.rc-anchor-normal .rc-anchor-pt {
    margin-right: 27px;
}

.rc-anchor-error-message {
    font-size: 10px !important;
}

/* ERROR modal */
.modal-header {
    padding: 10px;
    border-bottom: none;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
    float: right;
    display: inline-flex;
}

.modal-body{
    color: white;
}

.btn-close{
    filter: invert(1);
}

.modal-content{
    flex-direction: row-reverse;
}

.modal-content{
    border-color: #dc3545;
    background-color: #dc3545;
}

/* phone input field */
.iti{
    width: 100%;
}

.form-field span{
    position: static;
}

.iti__country-list{
    width: 330px !important;
    max-height: 300px !important;
}

.iti__country{
    background-color: white !important;
}

.iti--separate-dial-code .iti__selected-flag{
    background-color: transparent;
    outline: none !important;
}


/* FOR RESPONSIVENESS */
@media only screen and (max-width: 700px){
    .popup-box{
        max-width: 90%;
    }    
    #closePopup {
        left: unset;
        right: 99%;
        width: 45px;
    }
}
@media only screen and (max-width: 550px){    
    .g-recaptcha {
        transform:none ;
        -o-transform:none ;
        -ms-transform:none ;
        -moz-transform:none ;
        -webkit-transform:none ;      
        margin-top: 24px;
        margin-bottom: 10px;
    }


    .rc-anchor-error-message {
        font-size: 13px;
    }

    .form-field .form-control,
    pre#output{
        font-size: 15px;
    }

    .form-field .form-control + label{
        font-size: 14px;
    }

    .popup-box h3 {
        font-size: 19px;
    }

    form button.blue-btn{
        padding: 7px 25px;
    }

    .popup-box{
        padding: 20px;
    }

    .modal-btns {
        padding: 10px;
    }

    .iti__country-list{
        width: 300px !important;
    }

}
  
@media only screen and (max-width: 400px){
    .rc-anchor-error-message{
        font-size: 14px;
    }

    .blue-btn{
        width: auto;
        padding: 10px 20px;
        min-width: 100px;
    }

    .blue-btn img{
        display: none;
    }

    .form-field .form-control{
        padding: 10px 16px;
        
    }

    .form-field .form-label{
        top: 10px;
    }

    .blue-btn {
        min-width: 100px !important;
    }

    #closePopup {
        top: 20px;
        left: unset;
        right: 98%;
        width: 38px;
    }

    .form-field .form-label{
        font-size: 15px;
    }

    .form-field .form-control{
        font-size: 15px;
    }
    
    .iti__country-list{
        width: 300px !important;
        max-height: 200px !important;
    }

    .form-field span{
        font-size: 9px;
    }
    
    .iti__country{
        padding: 0 2px;
    }
  }

  
@media only screen and (max-width: 320px){
    .g-recaptcha {
        transform:scale(0.7) ;
        -o-transform:scale(0.7) ;
        -ms-transform:scale(0.7) ;
        -moz-transform:scale(0.7) ;
        -webkit-transform:scale(0.7) ;  
        transform-origin:0 0 ;
        -o-transform-origin:0 0 ;
        -ms-transform-origin:0 0 ;
        -moz-transform-origin:0 0 ;
        -webkit-transform-origin:0 0 ;      
        margin-top: 24px;
        margin-bottom: 10px;
    }

    .popup-box h3{
        font-size: 18px;
    }
}