section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 50px;
    box-sizing: border-box;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../src/oficial/portadas/contactoProveedor/golden-wheat-field.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    filter: blur(5px);
    z-index: -1;
}

.container_contacto{
    background-color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 600px;
    width: 1000px;
    padding: 20px;
    border-radius: 25px;
}

.contendedor_img{
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-self: center;
    padding: 10px;
    overflow: hidden;
}

.contendedor_img img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    border-radius: 25px;
}

form{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contacto{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%;
    gap: 10px;
    width: 55%;
}

.titulo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.titulo h1{
    font-size: 50px;
    text-align: center;
}

.titulo p{
    font-size: 20px;
    text-align: center;
    width: 90%;
}

.formulario_contacto{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #c1c1c1;
    padding: 10px 20px;
    width: 80%;
    border-radius: 10px;
    gap: 5px;
}

input, textarea{
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px #c1c1c1 solid;
    box-sizing: border-box;
}
.form_row {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack Turnstile widget and its error message */
    align-items: center; /* Center the Turnstile widget */
    /* gap: 5px; /* Optional: if you want space between widget and its error message */
    margin: 5px 0; /* Add some vertical margin around the Turnstile row */
}

.form_row {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack Turnstile widget and its error message */
    align-items: center; /* Center the Turnstile widget */
    /* gap: 5px; /* Optional: if you want space between widget and its error message */
    margin: 5px 0; /* Add some vertical margin around the Turnstile row */
}
input{
    height: 30px;
}

textarea{
    resize: none;
    height: 100px;
}

.btn_enviar{
    width: 100%;
    display: flex;
    justify-content: center;
    /* height: 100%; Removed to allow natural height */
}

.btn_enviar button{
    padding: 10px 50px;
    background-color: rgb(166, 25, 46);
    color: #fff;
    border: 3px solid rgb(166, 25, 46);
    border-radius: 15px;
    font-size: 20px;
}

.btn_enviar button:hover{
    background-color: #fff;
    border: 3px solid rgb(166, 25, 46);
    color: rgb(166, 25, 46);
    font-weight: 600;
    cursor: pointer;
}

input:focus, textarea:focus {
    border: 1px solid rgb(166, 25, 46); 
    outline: none; 
}

@media(max-width:1100px){
    .container_contacto{
        width: 800px;
    }
    .titulo h1{
        font-size: 40px;
    }
    
    .titulo p{
        font-size: 17px;
    }
    .btn_enviar button{
        font-size: 15px;
    }
}

@media(max-width:900px){
    .container_contacto{
        width: 700px;
    }

    input{
       height: auto;
    }
}

@media(max-width:760px){
    section{
        margin-top: 207px;
    }
    

    .container_contacto{
        background-color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: start;
        height: 800px;
        width: 550px;
        padding: 20px;
    }

    .contendedor_img{
        width: 100%;
        height: 300px;
    }

    .contacto{
        width: 100%;
        justify-content: start;
    }
    .btn_enviar{
        height: 10%;
    }
}

@media(max-width:600px){
    section{
        background-color: #fff;
        padding: 10px;
    }

    section::before{
        background-image: none;
    }

    .contendedor_img{
        width: 90%;
    }

    .container_contacto{
        height: 100%;
        width: 100%;
        padding: 0px;
    }

    .titulo h1{
        font-size: 35px;
    }

    .titulo p{
        font-size: 15px;
    }

    input, textarea{
        width: 100%;
    }
    .contendedor_img{
        height: 200px;
    }
}