/**
 * reCAPTCHA Modal Styles for AI Chat Widget
 * Protezione anti-spam e bot
 */

/* Overlay */
.st-recaptcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.st-recaptcha-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.st-recaptcha-header {
    text-align: center;
    margin-bottom: 24px;
}

.st-recaptcha-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #002f5f;
}

.st-recaptcha-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Body */
.st-recaptcha-body {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

#st-recaptcha-widget {
    transform-origin: center;
}

/* Footer */
.st-recaptcha-footer {
    display: flex;
    justify-content: center;
}

.st-btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.st-btn-cancel:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .st-recaptcha-content {
        padding: 24px;
        width: 95%;
    }
    
    .st-recaptcha-header h3 {
        font-size: 20px;
    }
    
    .st-recaptcha-header p {
        font-size: 13px;
    }
    
    /* Scala reCAPTCHA su mobile se necessario */
    #st-recaptcha-widget {
        transform: scale(0.9);
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    #st-recaptcha-widget {
        transform: scale(0.8);
    }
}
