/* reCAPTCHA Modal Container */
#jolisearch_recaptcha_modal {
    display: block;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

/* Modal Overlay */
#jolisearch_recaptcha_modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Modal Content Box */
#jolisearch_recaptcha_modal .modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    animation: slideDown 0.3s ease-out;
    z-index: 10001;
}

/* Modal Animation */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
#jolisearch_recaptcha_modal .modal-header {
    padding: 20px 24px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#jolisearch_recaptcha_modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

/* Close Button */
#jolisearch_recaptcha_modal .close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#jolisearch_recaptcha_modal .close:hover,
#jolisearch_recaptcha_modal .close:focus {
    color: #343a40;
    outline: none;
}

/* Modal Body */
#jolisearch_recaptcha_modal .modal-body {
    padding: 24px;
    text-align: center;
    min-height: 100px;
}

/* reCAPTCHA Container */
#jolisearch_recaptcha_container {
    display: inline-block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 576px) {
    #jolisearch_recaptcha_modal .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    #jolisearch_recaptcha_modal .modal-header {
        padding: 16px 20px;
    }

    #jolisearch_recaptcha_modal .modal-header h3 {
        font-size: 16px;
    }

    #jolisearch_recaptcha_modal .modal-body {
        padding: 20px 16px;
    }
}

/* Loading State */
#jolisearch_recaptcha_modal .modal-body.loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
