.sm-subscribe-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.sm-subscribe-popup.sm-popup-active {
    display: flex;
}

.sm-subscribe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.sm-subscribe-modal {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 15px;
    padding: 45px 40px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: smPopupAnimation .3s ease;
    box-sizing: border-box;
}

@keyframes smPopupAnimation {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sm-subscribe-close {
    position: absolute;
    right: 18px;
    top: 12px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    padding: 0;
}

.sm-subscribe-close:hover {
    color: #000;
}

.sm-subscribe-content {
    text-align: center;
}

.sm-subscribe-content h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.3;
    color: #222;
}

.sm-subscribe-content > p {
    margin: 0 0 28px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.sm-form-group {
    text-align: left;
    margin-bottom: 18px;
}

.sm-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.sm-form-group input {
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    color: #222;
}

.sm-form-group input:focus {
    border-color: #007ba5;
    box-shadow: 0 0 0 3px rgba(0, 123, 165, .10);
}

.sm-submit-button {
    width: 100%;
    min-height: 52px;
    margin-top: 3px;
    border: 0;
    border-radius: 7px;
    background: #007ba5;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
}

.sm-submit-button:hover {
    background: #006488;
}

.sm-submit-button:disabled {
    opacity: .7;
    cursor: not-allowed;
}

#sm-subscribe-message {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.5;
}

#sm-subscribe-message.success {
    color: #14853c;
}

#sm-subscribe-message.error {
    color: #d63638;
}

@media (max-width: 600px) {
    .sm-subscribe-modal {
        padding: 40px 22px 30px;
    }

    .sm-subscribe-content h2 {
        font-size: 23px;
    }
}
