Solicitud de oferta
Contacta con Caslab
Completa los campos del siguiente formulario y nos pondremos en contacto contigo lo antes posible.
.single-product footer {
position: relative;
z-index: 0;
}
#popup-solicitar-oferta {
background: rgb(0 0 0 / 75%);
/*position: fixed;*/
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 999;
position: absolute;
padding: 0 !important;
}
#popup-solicitar-oferta > .et_pb_row {
background: #fff;
/*
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
*/
top: 10%;
}
#popup-solicitar-oferta > .et_pb_row > .et_pb_column {
padding: 4% 0;
}
#popup-solicitar-oferta .close-popup {
cursor: pointer;
position: absolute;
top: 0;
right: 0;
margin: 10px;
z-index: 999999;
}
#popup-solicitar-oferta .et-pb-contact-message {
font-size: 17px;
font-weight: 400;
text-align: center;
max-width: 500px;
margin: 15px auto;
}
#popup-solicitar-oferta .et-pb-contact-message ul {
list-style: none;
font-weight: 500;
color: red;
}
jQuery(document).ready(function() {
/* Click btn, lanzamos popup */
jQuery('#btn-solicitar-oferta').click(function() {
event.preventDefault();
jQuery('#popup-solicitar-oferta').fadeIn('300');
});
/* Click close, cerramos popup */
jQuery('.close-popup').click(function() {
jQuery('#popup-solicitar-oferta').hide();
});
/* Click submit */
jQuery('#solicitar-oferta .et_pb_contact_submit').click(function() {
/* Esperamos 0.5s */
setTimeout(function() {
/* Comprobamos si no hay errores */
if (!jQuery('#solicitar-oferta .input').hasClass("et_contact_error") && !jQuery('#solicitar-oferta p').hasClass("et_contact_error")) {
/* Ocultamos texto 'rellenar campos' */
jQuery('#solicitar-oferta').prev().find('p').hide();
/* Esperamos 5s y ocultamos popup*/
setTimeout(function() {
jQuery('#popup-solicitar-oferta').fadeOut('300');
}, 5000 );
}
}, 500);
});
});