.wsp-whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    padding: 2px;
}

.wsp-whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

/* Overlay */
.wsp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wsp-overlay.wsp-active {
    opacity: 1;
    pointer-events: auto;
}

/* Contenedor del formulario */
.wsp-form-container {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    width: 320px !important;
    max-width: calc(100vw - 40px) !important;
    background: #FFFFFF !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
    z-index: 1002 !important;
    opacity: 0 !important;
    transform: scale(0.9) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    pointer-events: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}

.wsp-form-container.wsp-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Header del formulario */
.wsp-form-header {
    background: #075E54 !important;
    color: #FFFFFF !important;
    padding: 24px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    position: relative !important;
    letter-spacing: -0.015em !important;
    font-family: 'Poppins', sans-serif !important;
    text-align: center !important;
}

.wsp-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease !important;
    line-height: 1 !important;
    letter-spacing: -0.015em !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wsp-close-btn:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

/* Body del formulario */
.wsp-form-body {
    padding: 30px 20px !important;
    background: #FFFFFF !important;
    overflow-y: auto !important;
    font-family: 'Poppins', sans-serif !important;
}


/* Estilos de inputs - Isolated from global styles */
.wsp-form-container .wsp-form-group {
    margin-bottom: 20px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

.wsp-form-container .wsp-input-wrapper {
    position: relative !important;
}

.wsp-form-container .wsp-input,
.wsp-form-container .wsp-textarea {
    box-sizing: border-box !important;
    /* Reset box model */
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #E0E0E0 !important;
    background: #FFFFFF !important;
    background-image: none !important;
    /* Reset background image */
    font-size: 14px !important;
    color: #075E54 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
    /* Enforce font */
    box-shadow: none !important;
    /* Reset shadow */
    border-radius: 8px !important;
    /* Reset radius */
    margin: 0 !important;
    line-height: normal !important;
    height: auto !important;
}

.wsp-form-container .wsp-input:focus,
.wsp-form-container .wsp-textarea:focus {
    outline: none !important;
    border-color: #51ab90 !important;
    box-shadow: 0 0 0 3px rgba(81, 171, 144, 0.1) !important;
    background: #FFFFFF !important;
}

/* Floating label effect */
.wsp-form-container .wsp-input:focus+.wsp-label,
.wsp-form-container .wsp-input:not(:placeholder-shown)+.wsp-label,
.wsp-form-container .wsp-textarea:focus+.wsp-label,
.wsp-form-container .wsp-textarea:not(:placeholder-shown)+.wsp-label {
    color: #666666 !important;
}

.wsp-form-container .wsp-input::placeholder,
.wsp-form-container .wsp-textarea::placeholder {
    color: #B0B0B0 !important;
    opacity: 1 !important;
}

.wsp-form-container .wsp-textarea {
    resize: vertical !important;
    min-height: 80px !important;
    padding: 12px 15px !important;
}

/* Icono de error */
.wsp-error-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF3353;
    font-size: 16px;
    display: none;
    font-weight: 900;
}

/* Validación de error */
.wsp-error-message {
    color: #FF3353 !important;
    font-size: 11px !important;
    margin-top: 6px !important;
    display: none !important;
}

.wsp-input.wsp-error,
.wsp-textarea.wsp-error {
    border-color: #FF3353 !important;
}

.wsp-input.wsp-error~.wsp-error-icon,
.wsp-textarea.wsp-error~.wsp-error-icon {
    display: block !important;
}

.wsp-input.wsp-error~.wsp-error-message,
.wsp-textarea.wsp-error~.wsp-error-message {
    display: block !important;
}

/* Botón de submit */
.wsp-submit-btn {
    width: 100% !important;
    padding: 14px !important;
    background: #51ab90 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 10px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.wsp-submit-btn:hover {
    background: #419974 !important;
}

.wsp-submit-btn:active {
    background: #33795a !important;
}

/* Sobrescribir estilos globales del tema para el botón */
.wsp-form-container input[type="submit"],
.wsp-form-container .wsp-submit-btn {
    background-color: #51ab90 !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
}

.wsp-form-container input[type="submit"]:hover,
.wsp-form-container .wsp-submit-btn:hover {
    background-color: #419974 !important;
}

/* Asegurar que el botón de cerrar no sea afectado */
.wsp-form-header .wsp-close-btn,
button.wsp-close-btn {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.wsp-form-header .wsp-close-btn:hover,
button.wsp-close-btn:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

/* Responsive */
@media(max-width: 768px) {
    .wsp-form-container {
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 320px;
    }

    .wsp-whatsapp-float {
        right: 20px;
        bottom: 20px;
    }
}

/* Icono de WhatsApp SVG */
.wsp-whatsapp-icon {
    width: 30px;
    height: 30px;
}

/* Dynamic handling for this one is done in PHP but keeping it here as fallback/reference */
.nerd-video-wsp-action {
    display: none;
}