@import url('../css/navbar.css');

.container {
    display:flex;
    width: 80%;
    margin: auto;
}

.form{
    margin-left:12%;
    margin-right:7%;
    width: 30%;
}
form {
    margin:5%;
    display:flex;
    flex-direction:column;
}
input {
    margin-bottom:15px;
    border-radius: 5px;
    border: 2px solid rgb(145, 145, 145);
    height: 20px;
}
.mensaje {
    height: 100px;
    border-radius: 5px;
    border: 2px solid rgb(145, 145, 145);
    resize: both;
    overflow: auto;
}
form button {
    color:white;
    background-color:#00476e;
    border-radius:3px;
    width: 40%;
    height:30px;
    margin-top:3%;
    border:none;
}
.mapa {
    width: 50%;
    height: auto;
}
h1 {
    color: #202020;
}
p {
    color: #353535;
}

@media (max-width: 850px) {
    .container {
        display: flex;
        flex-direction: column;
    }
    .form {
        width: 100%;
        margin: 0;
    }
    form input, 
    form textarea {
        justify-content: center;
    }
    .form button {
        width: 30%;
    }
    .mapa {
        margin: auto;
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-bottom: 8%;
    }
    .mapa > iframe {
        margin: auto;
        width: 90%;
        height: 100%;
        border: 0;
        display: block;
    }
}

@media (min-width: 851px) and (max-width: 1000px) {
    .container {
        display:flex;
        width: 80%;
    } 
    .form {
        width: 100%;
        margin: 0;
    }
    form input, 
    form textarea {
        justify-content: center;
    }
    .form button {
        width: 30%;
    }
    .mapa {
        margin: auto;
        width: 100%;
        margin-right: 5%;
        aspect-ratio: 16 / 9;
    }
    .mapa > iframe {
        margin: auto;
        width: 90%;
        height: 100%;
        border: 0;
        display: block;
    }
}