/**
 * NEWSLETTER SUCCESS MODAL STYLES
 * Modal popup displayed after successful newsletter subscription
 */

/* Modal overlay - covers entire screen */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Modal container */
.newsletter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal header */
.newsletter-modal .modal-header {
    background: linear-gradient(135deg, #14B8A6 0%, #0d4f52 100%);
    padding: 24px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.newsletter-modal .modal-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: scaleIn 0.5s ease;
}

.newsletter-modal .modal-icon svg {
    width: 40px;
    height: 40px;
    color: #14B8A6;
}

.newsletter-modal .modal-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

/* Modal body */
.newsletter-modal .modal-body {
    padding: 32px 24px;
    text-align: center;
}

.newsletter-modal .modal-message {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.newsletter-modal .modal-submessage {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

/* Modal footer */
.newsletter-modal .modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}

.newsletter-modal .modal-close-btn {
    background: #14B8A6;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.newsletter-modal .modal-close-btn:hover {
    background: #0d4f52;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.newsletter-modal .modal-close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

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

    .newsletter-modal .modal-header {
        padding: 20px;
    }

    .newsletter-modal .modal-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .newsletter-modal .modal-icon svg {
        width: 32px;
        height: 32px;
    }

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

    .newsletter-modal .modal-body {
        padding: 24px 20px;
    }

    .newsletter-modal .modal-message {
        font-size: 15px;
    }

    .newsletter-modal .modal-footer {
        padding: 0 20px 20px;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    .newsletter-modal-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .newsletter-modal {
        border: 2px solid #000;
    }

    .newsletter-modal .modal-close-btn {
        border: 2px solid #fff;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .newsletter-modal-overlay,
    .newsletter-modal,
    .newsletter-modal .modal-close-btn {
        transition: none;
    }

    .newsletter-modal .modal-icon {
        animation: none;
    }
}
