form.submitting {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

form.submitting::after {
    content: "";
    width: 100%;
    height: 100%;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    background: rgb(0, 0, 0, .1);
}

form>.spinner {
    left: 50%;
    top: 50% !important;
    transform: translate(-50%, -50%);
    background: #fff !important;
    z-index: 111;
}

/* Messaggi di alert custom senza plugin di terze parti */
.custom-alert {
    display: none;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
    font-weight: bold;
    max-width: 400px;
    transition: opacity 0.5s ease;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.custom-alert.show {
    display: block;
    opacity: 1;
}

/* Stile per  il container del captcha */
.altcha-wp {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.altcha-wp.disabled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255, .5);
}

div.altcha {
    max-width: 100%;
}