/* AEM Labs Limited - CSS Module: Modal */
/* ==================================== */

.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.newsletter-modal.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.newsletter-modal.show .newsletter-modal-content {
    transform: scale(1);
}

.newsletter-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.newsletter-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-modal-header i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.newsletter-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.newsletter-modal-header p {
    color: #666;
    line-height: 1.6;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-input-group button {
    padding: 15px 25px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-input-group button:hover {
    background: #8b1818;
    transform: translateY(-2px);
}

.newsletter-options {
    margin-bottom: 20px;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.newsletter-checkbox input {
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.newsletter-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-checkbox input:checked+.checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.newsletter-checkbox input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.newsletter-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .newsletter-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .newsletter-modal-content {
        padding-bottom: 16px;
    }

    .newsletter-modal-header i {
        font-size: 32px;
    }

    .newsletter-modal-header h3 {
        font-size: 20px;
    }

    .newsletter-modal-header p {
        font-size: 12px;
    }

    .newsletter-input-group input {
        font-size: 12px;
        padding: 10px;
    }

    .newsletter-input-group button {
        padding: 10px 15px;
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .newsletter-input-group button i {
        font-size: 14px;
    }

    .newsletter-checkbox {
        font-size: 11px;
    }

    .newsletter-checkbox .checkmark {
        width: 16px;
        height: 16px;
    }

    .newsletter-privacy {
        font-size: 10px;
    }
}

/* --- Newsletter Modal End --- */