.newspopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(140, 140, 140, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.newspopup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.newspopup-container {
    background: var(--white);
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(17, 64, 73, 0.4);
    transform: translateY(40px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
}

.newspopup-overlay.show .newspopup-container {
    transform: translateY(0) scale(1);
}

.newspopup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newspopup-close:hover {
    background: var(--danger);
    transform: rotate(90deg) scale(1.1);
}

.newspopup-close i {
    font-size: 1rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

.newspopup-close:hover i {
    color: var(--white);
}

.newspopup-image {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newspopup-image::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -40px;
    right: -40px;
}

.newspopup-image::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
}

.newspopup-image-icon {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.newspopup-image-icon i {
    font-size: 2.8rem;
    color: var(--white);
}

.newspopup-content {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newspopup-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.newspopup-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.newspopup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newspopup-input-group {
    position: relative;
}

.newspopup-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    z-index: 1;
}

.newspopup-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.newspopup-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(116, 201, 186, 0.12);
}

.newspopup-input::placeholder {
    color: #a0aec0;
}

.newspopup-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.newspopup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 64, 73, 0.35);
}

.newspopup-submit:active {
    transform: translateY(0);
}

.newspopup-success {
    display: none;
    text-align: center;
    padding: 40px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.newspopup-success.show {
    display: flex;
}

.newspopup-success-icon {
    width: 70px;
    height: 70px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.newspopup-success-icon i {
    font-size: 2rem;
    color: var(--white);
}

.newspopup-success h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.newspopup-success p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .newspopup-container {
        flex-direction: column;
        max-width: 380px;
    }

    .newspopup-image {
        flex: 0 0 160px;
    }

    .newspopup-content {
        padding: 30px 25px;
    }

    .newspopup-content h2 {
        font-size: 1.4rem;
    }

    .newspopup-content p {
        font-size: 0.9rem;
    }

    .demo-content h1 {
        font-size: 2rem;
    }

    .demo-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .newspopup-container {
        max-width: 90%;
    }

    .newspopup-image {
        flex: 0 0 140px;
    }

    .newspopup-image-icon {
        width: 70px;
        height: 70px;
    }

    .newspopup-image-icon i {
        font-size: 2.2rem;
    }

    .newspopup-content {
        padding: 25px 20px;
    }

    .newspopup-content h2 {
        font-size: 1.3rem;
    }

    .newspopup-input {
        padding: 13px 14px 13px 42px;
        font-size: 0.9rem;
    }

    .newspopup-submit {
        padding: 13px 24px;
        font-size: 0.95rem;
    }
}