/* Stili per Google reCAPTCHA */
.recaptcha-container {
    margin: 15px 0;
    text-align: center;
}

.recaptcha-container .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.recaptcha-container .form-label i {
    color: #27ae60;
    margin-right: 8px;
}

.g-recaptcha {
    display: inline-block;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.g-recaptcha:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.recaptcha-help {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.recaptcha-help i {
    color: #3498db;
    font-size: 13px;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .recaptcha-container {
        margin: 10px 0;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
        margin: 5px 0;
    }
    
    .recaptcha-help {
        font-size: 11px;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
        margin: 0;
    }
    
    .recaptcha-container .form-label {
        font-size: 13px;
        margin-bottom: 5px;
    }
}

/* Stili per errori reCAPTCHA */
.recaptcha-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.recaptcha-error i {
    font-size: 14px;
}

/* Animazione di caricamento */
.recaptcha-loading {
    opacity: 0.6;
    pointer-events: none;
}

.recaptcha-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: recaptcha-spin 1s linear infinite;
}

@keyframes recaptcha-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Integrazione con il tema esistente */
.form-container .recaptcha-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container .recaptcha-container .form-label {
    color: #ecf0f1;
}

.form-container .recaptcha-help {
    color: #bdc3c7;
}
