@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@500&family=Roboto:wght@100;300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;700&family=Open+Sans&family=Roboto:wght@500&display=swap');
@keyframes animation-content{
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.container{
    max-width: 100%;
    width: 100%;
    background-image: url('https://maz-sp.cl/img/fondo.webp');
    background-size: 100% 100%;
    background-position: 40%;

}

.form-container{
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.form-content{
    padding-top: 80px;
}

.title-form{
    width: fit-content;
    height: fit-content;
    color: white;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    padding-top: 30px;
}

.form-text{
    margin-top: 200px;
    margin-bottom: 80px;
    width: 70%;
    font-family: 'Roboto', sans-serif;
    animation-name: animation-content;
    animation-duration: 0.5s;

}

.form{
    max-width: 600px;
    width: 100%;
    height: 800px;
    background-color: rgba(9,27,40,0.8);
    animation-name: animation-content;
    animation-duration: 0.5s;
    margin-top: 60px;
    margin-bottom: 30px;
    border-radius: 10px;
    position: relative;
}

.form-img{
    margin-top: 50px;
    margin-left: 60px;
    width: 200px;
}

.form-item{
    max-width: 100%;
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    color: white;
    padding-left: 60px;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;

}
.label{
    margin-bottom: 10px;
}
.input{
    max-width: 100%;
    width: 90%;
    height: 40px;
    font-size: 18px;

}

.input, .textarea{
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 10px;
}

.form-content .form-item:nth-child(5){
    height: 200px;
}

.textarea{
    max-width: 100%;
    width: 90%;
    height: 100%;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    resize: none;
}

.form-content .form-item:nth-child(6){
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.button-form{
    width: 30%;
    height: 40px;
    background-color: rgba(191, 228, 143, 0.5);
    border: none;
    color: black;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    border-radius: 5px;

}

.button-form:hover{
    background-color: rgba(191, 228, 143, 1);
    cursor: pointer;
}

.form-info{
    max-width: 100%;
    width: 60%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 100px;
    background-color: rgba(191, 228, 143, 0.5);
    animation-name: animation-content;
    animation-duration: 0.5s;
    animation-play-state: paused;
}


.item-info{
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;

}

.item-info p{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    padding-right: 20px;

}

.info{
    display: flex;
    flex-direction: column;
    text-align: left;
}

.content-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.link-form:active, .link-form:focus, .link-form:link, .link-form:visited{
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 100;
}

.item-map{
    max-width: 100%;
    width: 100%;
    margin-bottom: 50px;
    background-color: rgba(9,27,40,1);
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation-name: animation-content;
    animation-duration: 0.5s;
    animation-play-state: paused;
}

.map{
    max-width: 100%;
    width: 97%;
}

.background{
    max-width: 100%;
    width: 100%;
    height: 100vh;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: rgba(9,27,40,0.8);
    position: absolute;
    z-index: 3;
    display: none;
}

.content-confirmation{
    width: 600px;
    height: 400px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 10px;
    z-index: 4;
    display: none;
}

.show-confirmation{
    display: flex;

}

.no-scroll-contact{
    overflow: hidden;
}

.content-confirmation .item-confirmation img:nth-child(1){
    width: 150px;
    position: absolute;
    top: 10%;
    right: 0;
    left: 0;
    margin: auto;
}

.content-confirmation .item-confirmation:nth-child(2){
    max-width: 100%;
    width: 100%;
    font-size: 20px;
    text-align: center;
    padding-top: 250px;
    font-family: 'Roboto', sans-serif;
    color: rgb(88, 88, 88);
    opacity:0.8;
}

.content-confirmation .item-confirmation:nth-child(3){
    font-size: 16px;
    opacity: 0.5;
    padding-top: 20px;
    font-family: 'Roboto', sans-serif;
}

.button-ok{
    width: 100px;
    height: 50px;
    border: none;
    border-radius: 5px;
    font-size: 32px;
    color: white;
    background-color: rgba(9,27,40,0.5);
    margin-top: 30px;
    margin-bottom:50px;
}

.button-ok:hover{
    background-color: rgba(9,27,40,1);
}

.button-ok:focus{
    border: solid 1px black;
}

.button-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.show-message-error{
    display: flex!important;
}

.error-message{
    color: yellow;
    max-width: 100%;
    display: none;
    width: 70%;
    justify-content: left;
}

.error-message i{
    padding-right: 5px;
}



@media screen and (max-width: 1200px) {
    .form{
        margin-top: 70px;
        width: 400px;
        height: 500px;
    }

    .form-content{
        padding-top: 90px;
    }

    .form-item{
        margin: 0;
        height: 50px;
        padding: 0;
        align-items: center;
    }

    .label{
        display: none;
    }

    .input{
        height: 30px;
        font-size: 14px;
        width: 80%;
    }

    .textarea{
        height: 100px;
        font-size: 14px;
        width: 80%;
    }

    .form-content .form-item:nth-child(5) {
        height: 150px;
    }

    .placeholder-active::placeholder {
        color: #888;
        font-style: italic;
    }

    .content-confirmation{
        width: 350px;
        height: 300px;
    }

    .content-confirmation .item-confirmation img:nth-child(1){
        width: 60px;
    }

    .content-confirmation .item-confirmation:nth-child(2){
        font-size: 20px;
        padding-top: 200px;
    }

    .content-confirmation .item-confirmation:nth-child(3){
        padding-top: 50px;
        padding-bottom: 20px;
    }

    .button-ok{
        width: 70px;
        height: 35px;
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 80px;
    }
}

@media screen and (max-width: 500px) {
    .container{
        background-size: 100% 100%;
        background-position: 40%;
    }
    .form{
        width: 100%;
        height: 550px;

        border-radius: 0;
        margin-bottom: 0;
        border-bottom: 1px white solid;

    }

    .form-container{
        padding-top: 20px;
    }

    .error-message{
        font-size: 12px;
    }

    .form-content{
        padding-top: 80px;
    }
}
