#newsletter-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#newsletter-popup .popup-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#newsletter-popup .close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#newsletter-popup .close-popup:hover,
#newsletter-popup .close-popup:focus {
    color: black;
}

#newsletter-popup .newsletter-form h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

#newsletter-popup .newsletter-form form {
    margin: 15px 0;
}

#newsletter-popup .newsletter-form form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#newsletter-popup .newsletter-form form input[type="email"] {
    width: calc(100% - 24px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#newsletter-popup .newsletter-form form button {
    padding: 10px 20px;
    background-color: #e74c3c;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

#newsletter-popup .newsletter-form form button:hover {
    background-color: #c0392b;
}

#newsletter-popup .newsletter-form p {
    margin-top: 15px;
    font-size: 14px;
    color: #777;
}

/* Success Popup Styles */
#success-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#success-popup .success-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border: none;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

#success-popup .success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#success-popup .success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color9), #5fa55d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    animation: successPop 0.5s ease-out;
}

#success-popup h3 {
    color: var(--color4);
    margin: 0;
    font-size: 24px;
}

#success-popup p {
    color: var(--color3);
    margin: 5px 0 0 0;
    font-size: 16px;
    line-height: 1.4;
}

.close-success-popup {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-success-popup:hover,
.close-success-popup:focus {
    color: var(--color4);
    text-decoration: none;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
