/* Modal Overlay */
.subscribe-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.subscribe-modal-overlay.active {
    display: flex;
}

/* Modal Box */
.subscribe-modal {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    padding: 0;
}

.modal-close img {
    width: 16px; 
    height: 16px;
    display: block;
}

.modal-close:focus {
    outline: none;     
    box-shadow: none;  
}


/* Modal Content */
.subscribe-modal-content {
    padding: 24px;
    text-align: center;
}

.subscribe-modal-content h3 {
    color:#013366;
    text-align: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 38.4px; 
}

.subscribe-modal-content h3 .smile-text {
    display: inline-block;
    top: 30px;
    width: 60px;
    height: 60px;
    background-image: url('/assets/images/general/smile-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    text-indent: -9999px; 
    padding: 0px 35px 0;
    margin: 10px 3px 0;
}

.subscribe-modal-content p {
    color:#9A99A0;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}

/* Form Group */
.form-group {
    margin: 24px 0;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #0066cc;
}

/* Buttons */
.btn-primary-modal {
    background-image:url(/assets/images/general/button_dark_gradient_bg.jpg);
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;
    background-color: transparent !important;
    color:#FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
    width: 100%;
    border: none;
    padding: 11px 24px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 16px;
    border: none;
    text-transform: none;
}

.btn-primary-modal:hover{
    box-shadow:0px 5px 15px #7F809F80;
    color: #FFF;
}

.btn-primary-modal:focus {
    outline: none;     
    box-shadow: none;  
    border: none;     
}

.btn-secondary-modal {
    color: #013366;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    text-transform: none;

}

.btn-secondary-modal:hover {
    color: #013366;
    border: none;
}

.btn-secondary-modal:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Prevent body scroll */
.body-no-scroll {
    overflow: hidden;
}

/* Animation */
@keyframes fadeIn {
    from {
    opacity: 0;
    }
    to {
    opacity: 1;
    }
}

@keyframes slideUp {
    from {
    transform: translateY(20px);
    opacity: 0;
    }
    to {
    transform: translateY(0);
    opacity: 1;
    }
}

.subscribe-modal-overlay.active {
    animation: fadeIn 0.2s ease-out;
}

.subscribe-modal-overlay.active .modal {
    animation: slideUp 0.3s ease-out;
}

.input-error {
    border: 1px solid #B21A1A !important;
}

.error-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #B21A1A;
}

@media (max-width: 768px) {
    .subscribe-modal {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .modal-close {
        top: 10px;
        right: 0;
        font-size: 20px;
        width: 28px;
        height: 28px;
    }

    .subscribe-modal-content {
        padding: 24px;
    }

    .subscribe-modal-content h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .subscribe-modal-content h3 .smile-text {
        width: 48px;
        height: 48px;
        padding: 0 28px 0;
        margin: 4px 0 0 4px;
    }

    .subscribe-modal-content p {
        font-size: 14px;
        line-height: 21px;
        margin-top: 8px;
    }

    .form-group {
        margin: 24px 0 !important;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .form-group input[type="email"] {
        font-size: 14px;
        padding: 9px 12px;
    }

    .btn-primary-modal {
        font-size: 14px;
        padding: 6px 18px;
        margin-bottom: 20px;
    }

    .btn-secondary-modal {
        font-size: 13px;
        padding: 0;
    }

    .subscribe-modal-overlay.active .subscribe-modal {
        animation: slideUp 0.3s ease-out;
    }
}
