/* Contenedor principal */
#whatsapp-form-container {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Cambia "right" por "left" */
    z-index: 99999;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Botón flotante de WhatsApp */
#whatsapp-float-button {
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#whatsapp-float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#whatsapp-float-button img {
    width: 30px;
    height: 30px;
}

.whatsapp-form {
    display: none;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 320px;
    overflow: hidden;
    margin-bottom: 15px;
    /* Añade esta nueva propiedad: */
    right: auto; /* Esto asegura que no haya posicionamiento a la derecha */
}

/* Encabezado */
.form-header {
    background-color: #25D366;
    color: white;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* Formulario */
#wp-whatsapp-contact-form {
    padding: 20px;
}

#wp-whatsapp-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

#wp-whatsapp-contact-form input,
#wp-whatsapp-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
    box-sizing: border-box;
}

#wp-whatsapp-contact-form input:focus,
#wp-whatsapp-contact-form textarea:focus {
    border-color: #25D366;
    outline: none;
}

#wp-whatsapp-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botón de enviar */
#wp-whatsapp-submit-button {
    width: 100%;
    padding: 14px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
}

#wp-whatsapp-submit-button:hover {
    background-color: #128C7E;
}

/* Mensajes de error */
.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 12px;
    display: block;
}

/* Estilos responsivos */
@media (max-width: 480px) {
    #whatsapp-form-container {
        bottom: 10px;
        left: 10px; /* Cambia "right" por "left" */
    }
    
    .whatsapp-form {
        width: 280px;
    }
}
    
    .form-header {
        padding: 15px;
        font-size: 15px;
    }
    
    #wp-whatsapp-contact-form {
        padding: 15px;
    }
}