/* Estilos específicos para Contacto */

body.page-contacto {
    background: #E5E5E5 url('../assets/img/uploads/bg-contact.jpg') no-repeat top 130px center !important;
    background-size: contain !important; /* Changed from cover to contain as requested */
}

.page-contacto .header-top {
    background: #fff !important;
}

.page-contacto .inner-page-content {
    background: transparent;
    padding: 60px 0 40px; /* Reduced padding a bit to match WP look better */
}

/* "Card" look for the main container in Contacto */
.page-contacto .main-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.page-contacto h1 { 
    font-weight: 300; 
    font-size: 26px; 
    color: #575756; 
    border-bottom: 1px solid #e5e5e5; 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
}

.page-contacto h2 {
    font-weight: 400;
    font-size: 16px;
    color: #5D004A;
    margin: 0 0 25px 0;
}

/* Form Styles */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .full-width {
    grid-column: span 2;
}

.contact-form input[type="text"], 
.contact-form input[type="email"],
.contact-form select, 
.contact-form textarea {
    font-size: 14px !important;
    width: 100% !important;
    display: block !important;
    color: #333 !important;
    outline: none !important;
    border: 1px solid #ffffff !important;
    background: #ffffff !important;
    border-radius: 5px !important;
    box-shadow: 0px 0px 4px 2px rgb(63 63 63 / 10%) !important;
    padding: 10px 15px !important;
}

.contact-form input[type="text"], 
.contact-form input[type="email"],
.contact-form select {
    height: 40px !important;
}

.contact-form textarea {
    height: 100px !important;
}

.contact-form input[type="submit"] {
    background: #5D004A !important;
    color: #fff !important;
    height: 38px !important;
    width: 150px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border: none !important;
    margin: 20px 0 0 auto !important;
}

.contact-form input[type="submit"]:hover {
    background: #000 !important;
}

.consent-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

/* Align center logo below form */
.page-contacto .aligncenter {
    margin: 40px auto 0;
    display: block;
    max-width: 280px;
}

@media screen and (max-width: 1024px) {
    .page-contacto .main-container {
        margin: 0 20px;
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    .contact-form .full-width {
        grid-column: span 1;
    }
    .contact-form input[type="submit"] {
        margin: 15px auto 0 !important;
    }
}
