/* Configuracion General */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: "Raleway", serif;
    font-optical-sizing: auto;
    
    font-style: normal;
}

body{
    overflow-x: hidden;
}

/* --------- Main -------- */

.sectionForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 77px;
    width: 100vw;
    height: 100vh;
    background-image: url("../source/img/contacto_background.png");
    background-repeat: repeat;
    background-size: contain;
    align-items: self-end;

    min-height: fit-content;
}

.form {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    width: 60%;
    height: 100vh;
    background-color: #0e0e0e ;
    color: #f7f7f7;
    margin-top: 0;

    min-height: fit-content;
}
.form .lutente_cloud{
    filter: invert(1);
    width: 60%;
}

.form ul {
    margin-top: 20px;
    list-style: none;
    width: 100%;
}

.listaForm {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.inputForm  {
    width: 400px;
    background-color: rgba(244, 179, 14, 0);
    border: none;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(244, 177, 14);
    margin-left: 15px;
    color:#f7f7f7;
    font-size: 1.6em;
}

.inputForm:focus {
    border-bottom: 1px solid white;
    outline: none;
}

.inputForm::placeholder {
    color: #f7f7f7;
    font-family: 'Raleway', sans-serif;
    font-size: large;
    font-weight: bold;
}

.listaForm textarea {
    margin-top: 10px;
    height: 50px;
}

.iconForm {
    width: 50px;
    height: 50px;
    filter: invert(1);
    margin-right: 20px;
}

.buttonForm {
    margin-top: 100px;
    margin-bottom: 20px;
    width: 180px;
    height: 40px;
    background-color: rgb(244, 177, 14);
    color: #0e0e0e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.6em;
}

.buttonForm:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
    transition: all 0.6s;
}


/* Estilos para el modal */
.modal{
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
}

.modal-content {
    background-color: white;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#close-modal {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background-color: rgb(244, 177, 14);
    color: rgb(0, 0, 0);
    cursor: pointer;
    border-radius: 5px;
    margin-left: 0;
}

#close-modal:hover {
    background-color: black;
    color: white;
}

#loading {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 900;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;

}

#loading img {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ======================= MediaQuerys ================================*/

@media screen and (max-width: 1010px){
    .sectionForm {
        background-image: none;
        align-items: center;
    }

    .form {
        width: 100%;
    }
}

@media screen and (max-width: 700px){
    .listaForm label {
       width: 5%;
    }
    
    .listaForm img{
       width: 100%;
       height: 100%;
    }

    .listaForm input {
        width: 70%;
    }

    .listaForm textarea {
        width: 70%;
    }
}