/**
 * Newsletter Captcha Modal Styles
 * Cloudflare Turnstile integration
 */

/* Modal Container */
.captcha-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    display: none;
}

/* Modal Overlay */
.captcha-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

/* Modal Content Box */
.captcha-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10000;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal Header */
.captcha-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Close Button */
.captcha-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.captcha-modal-close:hover {
    color: #333;
}

/* Modal Body */
.captcha-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.captcha-modal-body p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.captcha-modal-body .cf-turnstile,
.captcha-modal-body #turnstile-widget {
    display: inline-block;
}

/* Responsive */
@media (max-width: 500px) {
    .captcha-modal-content {
        width: 95%;
        max-width: none;
    }

    .captcha-modal-header {
        padding: 15px 20px;
    }

    .captcha-modal-header h4 {
        font-size: 16px;
    }

    .captcha-modal-body {
        padding: 25px 20px;
    }
}