.elementor-widget-form.nowLoading {
    position: relative;
    pointer-events: none;
}

.elementor-widget-form.nowLoading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.elementor-widget-form.nowLoading::after {
    content: "Attendi...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 11;
    font-weight: bold;
}

.voted-form,
.vote-restricted-form {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.voted-form::before,
.vote-restricted-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.voted-form form,
.vote-restricted-form form {
    display: none;
}

.voted-form .form-message,
.vote-restricted-form .form-message {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 15px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.voted-form .form-message.success {
    background-color: #e0f3e5;
    color: #2d662d;
    border: 1px solid #c3e6cb;
}

.vote-restricted-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.form-message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.vote-status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vote-status i {
    font-size: 1.2em;
}

.vote-status.not-logged-in {
    background-color: #f8f9fa;
    color: #6c757d;
}

.vote-status.not-voted {
    background-color: #fff3cd;
    color: #856404;
}

.vote-status.partially-voted {
    background-color: #cce5ff;
    color: #004085;
}

.vote-status.voted {
    background-color: #d4edda;
    color: #155724;
}

.vote-status.restricted {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Stili per i messaggi */
.elementor-widget-form form .form-message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.elementor-widget-form form .form-message.success {
    background-color: #e0f3e5;
    color: #2d662d;
    border: 1px solid #c3e6cb;
}

.elementor-widget-form form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Nascondi completamente il form dopo il voto */
.voted-form form {
    display: none;
}

/* Stile per il messaggio di successo */
.voted-form .form-message.success {
    padding: 15px;
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Stili per i radio button disabilitati */
.voted-form input[type="radio"],
.voted-form button[type="submit"],
.vote-restricted-form input[type="radio"],
.vote-restricted-form button[type="submit"] {
    opacity: 0.5;
    cursor: not-allowed;
}