
.popup {
    display: flex; /* Use flexbox to center the content */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    opacity: 0; 
    transform: translateY(-30px); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
}

    /* Popup content styles */
    .popup-content {
    background-color: #fff;
    padding: 30px;
    width: 460px;
    text-align: center;
    position: relative;
    max-height: calc(100vh - 90px);
    overflow: auto;
}

/* Close button styles */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
}
@media screen and (max-width: 767px) {
    .popup-content {
        width: 460px;
    }
}
/* Keyframes for fadeInDown animation */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px); 
    }
    100% {
        opacity: 1;
        transform: translateY(0); 
    }
}

.popup.visible {
    z-index: 10000;
    opacity: 1;
    transform: translateY(0); /* Slide into view */
    animation: fadeInDown 0.5s ease forwards; /* Apply the fadeInDown animation */
}

/* Hide popup with transition */
.popup.hidden {
    display: none; /* Hide the element completely */
}
.tmpcoder-newsletter-img{
    text-align:center
    
}
.tmpcoder-newsletter-img img{
    vertical-align:middle;display:inline-block; margin-bottom: 20px;      
}

.tmpcoder-newsletter-first-header{
    margin-bottom: 0;
    font-size: 25px !important;
}
.tmpcoder-newsletter-text{
    margin-bottom: 20px;
    color: #838383;
}
#newsletterPopup  .wpcf7-email{
    margin-bottom: 10px
}
#newsletterPopup  .wpcf7-submit{
    font-weight: 600;
    margin-bottom: 0;
    width: 100%;
    margin-bottom:10px;
    background-color: transparent;
    background-image: linear-gradient(120deg, #5729D9 0%,  #BF1864 100%);
    border: none;

}
#newsletterPopup .wpcf7-spinner{
    position: absolute;
    right: 29px;
    /* top: 5px; */
    z-index: 2;
    margin: 7px;
}

h2.tmpcoder-newsletter-first-header {
    background: linear-gradient(to right, #5729D9, #BF1864);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}