/*
Theme Name: Lumesia Insurance CMS
Description: This is a custom child theme for Salient - FAI Lumesia Insurance
Author: Paolo Beraldo
Author URI:  https://paolo-beraldo.com/
Template: salient
Version: 1.0
*/

/* Stili per popup consensi con loading spinner */
#send_consent.disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

#send_consent .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Spinner alternativo se Font Awesome non è disponibile */
#send_consent .loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 16px;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Miglioramenti per il popup consensi */
.consent-popup {
    max-width: 600px;
    padding: 20px;
}

.consent-popup .consensi {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.consent-popup .label-text {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.consent-popup .label-text strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.consent-popup input[type="radio"] {
    margin-right: 8px;
    margin-left: 0;
}

.consent-popup label {
    margin-right: 20px;
    cursor: pointer;
    color: #555;
}

.consent-popup input[type="radio"].required {
    border: 2px solid #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .consent-popup {
        padding: 15px;
        margin: 10px;
    }
    
    .consent-popup .consensi {
        max-height: 300px;
    }
    
    .consent-popup .label-text {
        padding: 12px;
    }
}





