/* reCAPTCHA Modal Styles */
.recaptcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.recaptcha-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.recaptcha-modal-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.recaptcha-modal-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.recaptcha-modal-body {
    padding: 20px;
}

.recaptcha-modal-body p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.recaptcha-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    margin: 10px 0;
}

.recaptcha-modal-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.recaptcha-modal-footer .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.recaptcha-modal-footer .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.recaptcha-modal-footer .btn-secondary:hover {
    background-color: #5a6268;
}

.recaptcha-modal-footer .btn-primary {
    background-color: #007bff;
    color: white;
}

.recaptcha-modal-footer .btn-primary:hover {
    background-color: #0056b3;
}

/* reCAPTCHA Widget Integration */
.g-recaptcha {
    margin: 10px 0;
}

/* Loading State */
.recaptcha-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.recaptcha-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 576px) {
    .recaptcha-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .recaptcha-modal-header,
    .recaptcha-modal-body,
    .recaptcha-modal-footer {
        padding: 15px;
    }
    
    .recaptcha-modal-footer {
        flex-direction: column;
    }
    
    .recaptcha-modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
