/*  POPUP   */

.overlay{
    background: rgba(0, 0, 0, 0.3);
    position: fixed;
    padding: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    overflow: auto;
}

.overlay.active{
    visibility: visible;
}

.hide{
    visibility: visible;
}

.popup{
    box-shadow: 0px 0px 5px 0px rgba(0, 255, 26, 0.3);
    border-radius: 5px;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 2%;
    text-align: center;
    width: 25%;
    transition: 0.3s ease all;
    transform: scale(0.3);
    /*transform: scale(0.7);*/
    opacity: 0;
    background: rgba(0, 0, 0, 0.8);
}

.popup .btn-cerrar-popup{
    font-size: 16px;
    line-height: 16px;
    display: block;
    text-align: right;
    color: #BBBBBB;
    transition: .3s ease all;
}

.popup .btn-cerrar-popup:hover{
    color: greenyellow;
}

.popup h3{
    font-size: 2.5rem;
    margin-bottom: 3%;
    opacity: 0;
}

.popup h4{
    font-size: 1.6rem;
    margin-bottom: 7%;
    opacity: 0;
}

.popup form .contenedor-inputs{
    opacity: 0;
}

.popup form .contenedor-inputs input{
    width: 100%;
    margin-bottom: 3%;
    /*height: 3rem;*/
    height: 2rem;
    line-height: 3rem;
    font-size: 1.1rem;
    text-align: center;
    /*border: 1px solid #BBBBBB;*/
}

.col .col-5 .contenedor-inputs{
    margin-top: 1% !important;
    margin-bottom: 1% !important;
}

.contenedor-inputs select{
    width: 100%;
    margin-bottom: 3%;
    /*height: 3rem;*/
    height: 2rem;
    line-height: 3rem;
    font-size: 1.1rem;
    text-align: center;
    border: 1px solid #BBBBBB;
    line-height: normal;
}
#Text_Services{
    padding-bottom: 1% !important;
}
#Text_Subservices.hide{
    display: none;
}
#Text_Subservices.active{
    display: block;
    animation: entradaInputs .8s ease 0s forwards !important;
}

.container-txtarea{
    width: 100% !important;
    margin-bottom: 3%;
    height: 6rem;
    line-height: 3rem;
    font-size: 1.1rem !important;
    text-align: justify;
    border: 1px solid #BBBBBB !important;
    resize: none !important;
}

input textarea select{
    text-shadow: none !important;
}

.form-select{
    background-position: right 0.2rem center !important;
    padding: 0.375rem 1.25rem 0.375rem 0rem !important;
}

.popup form .btn-submit{
    padding: 0 3%;
    margin-top: 3%;
    height: 2.5rem;
    line-height: 2.5rem;
    border: none;
    color: white;
    background: #54bb24;
    border-radius: 5px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: .3s ease all;
}

.popup .botones{
    opacity: 0;
}

.popup .btn-submit:hover{
    color:greenyellow !important;
    background: #000 !important;
}

.popup .btn-submit:active{
    color:greenyellow !important;
    background: rgb(24, 24, 24) !important;
}

/*  ANIMACIONES   */

.popup.active{
    opacity: 1;
    transform: scale(1);
}

.popup.popup.active h3{
    animation: entradaTitulo .8s ease .5s forwards;
}

@keyframes entradaTitulo {
    from{
        transform: translateY(-25px);
        opacity: 0;
    } to{
        transform: translateY(0);
        opacity: 1;
    }
}

.popup.popup.active h4{
    animation: entradaText .8s ease .5s forwards;
}

@keyframes entradaText {
    from{
        transform: translateY(25px);
        opacity: 0;
    } to{
        transform: translateY(0);
        opacity: 1;
    }
}

.popup.popup.active .contenedor-inputs{
    animation: entradaInputs 1s ease 1s forwards !important;
}

select{
    animation: entradaInputs 1s ease 1s forwards !important;
}

@keyframes entradaInputs {
    from{
        opacity: 0;
    } to{
        opacity: 1;
    }
}

.popup.popup.active .botones{
    animation: entradaBotones 1.3s ease 1.3s forwards;
}

@keyframes entradaBotones {
    from{
        opacity: 0;
    } to{
        opacity: 1;
    }
}

/*  RESPONSIVE  */

@media screen and (min-width: 2500px) {
    .popup{
        width: 18%;
        padding: 1.5%;
    }
}
@media screen and (max-width: 2000px) {
    .popup{
        width: 25%;
        padding: 2%;
    }
}

@media screen and (max-width: 1080px){
    .popup{
        width: 50%;
    }
    .popup form .contenedor-inputs input{
        margin-bottom: 3%;
        height: 2rem;
        line-height: 2rem;
        font-size: 1rem;
    }
    .contenedor-inputs select{
        margin-bottom: 3% !important;
        height: 2rem !important;
        line-height: 2rem !important;
        font-size: 1rem !important;
    }
    .container-txtarea{
        margin-bottom: 3%;
        height: 4rem;
        line-height: 2rem;
        font-size: 1rem !important;
    }
    .form-select{
        background-position: right 0.2rem center !important;
        padding: 0.015rem 1.25rem 0.25rem 0rem !important;
    }
    .popup form .btn-submit{
        padding: 0 3%;
        height: 2rem;
        line-height: 2rem;
        font-size: 16px;
    }
    .popup h3{
        font-size: 2.2rem;
        margin-bottom: 3%;
    }
    
    .popup h4{
        font-size: 1rem;
        margin-bottom: 7%;
    }
    .popup .btn-cerrar-popup{
        font-size: 1rem;
        line-height: 1rem;
    }
}

@media screen and (max-width: 720px){
    .popup{
        width: 60%;
    }
    .popup form .contenedor-inputs input{
        margin-bottom: 3%;
        height: 1.5rem;
        line-height: 1.5rem;
        font-size: .6rem;
    }
    .contenedor-inputs select{
        margin-bottom: 3% !important;
        height: 1.5rem !important;
        line-height: 1.5rem !important;
        font-size: .6rem !important;
    }
    .container-txtarea{
        margin-bottom: 3%;
        height: 3rem;
        line-height: 1.5rem;
        font-size: .6rem !important;
    }
    .form-select{
        background-position: right 0.2rem center !important;
        padding: 0.015rem 1rem 0.175rem 0.1rem !important;
    }

    .popup form .btn-submit{
        padding: 0 3%;
        height: 1.5rem;
        line-height: 1.5rem;
        font-size: .8rem;
    }
    .popup h3{
        font-size: 1.5rem;
        margin-bottom: 3%;
    }
    
    .popup h4{
        font-size: .8rem;
        margin-bottom: 7%;
    }
    .popup .btn-cerrar-popup{
        font-size: .7rem;
        line-height: .7rem;
    }
}

@media screen and (max-width: 480px){
    .popup{
        width: 80%;
    }
}