/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f1f1;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
}

/*.close-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}*/

/* Form Styling */
#mc_embed_signup {
    background: white !important;
    padding: 40px 35px !important;
    width: 100% !important;
    border-radius: 20px;
    clear: none !important;
}

#mc_embed_signup h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

#mc_embed_signup .indicates-required {
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
    text-align: left;
}

.mc-field-group {
    margin-bottom: 20px;
    padding-bottom: 0 !important;
}

.mc-field-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.mc-field-group input[type="text"],
.mc-field-group input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.mc-field-group input[type="text"]:focus,
.mc-field-group input[type="email"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {
    border: 2px solid #e85c41 ! IMPORTANT;
}
/* Submit Button */
#mc-embedded-subscribe {
    background: #D8363D !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: auto !important;
     background-color: #D8363D;
    font-family: "Oswald", Sans-serif;
    font-size: 18px !important;
    font-weight: 400;
    border-style: solid;
    border-color: #D8363D !important;;
    border-radius: 30px ! IMPORTANT;
    padding: 10px 35px !important;
}
.mc-field-group input[type="text"], .mc-field-group input[type="email"] {
    width: 100% ! IMPORTANT;
    padding: 14px 18px ! IMPORTANT;
    border: 2px solid #e0e0e0 ! IMPORTANT;
    border-radius: 10px !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
    outline: none;
}
input#mc-embedded-subscribe:hover {
    background: #231F20 ! IMPORTANT;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}
#mc-embedded-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4) !important;
}

.asterisk {
    color: #e74c3c;
}

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

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

/* Scrollbar */
.popup-container::-webkit-scrollbar {
    width: 8px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Response Messages */
#mce-responses {
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
}

.response {
    margin: 10px 0 !important;
    padding: 12px !important;
    border-radius: 8px;
    font-size: 14px;
}

#mce-error-response {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

#mce-success-response {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Responsive */
@media (max-width: 600px) {
    #mc_embed_signup {
        padding: 30px 25px !important;
    }

    #mc_embed_signup h2 {
        font-size: 24px;
    }

    .popup-container {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
    }
}
