/* Popup Styles */
.popup {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    width: 700px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.popup.hidden {
    display: none;
}

.popup-content h2 {
    margin: 0;
    font-size: 1.5rem;
}

.popup-content p {
    margin: 10px 0 20px;
}

.popup-content input {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-content button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:hover {
    background: #218838;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.popup-overlay.hidden {
    display: none;
}

.popup-overlay.active {
    display: block;
}

/* Ensure popup is above the overlay */
.popup {
    z-index: 1000;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    z-index: 999; /* Below the popup, above the rest of the content */
    display: none; /* Default to hidden */
}

.popup-overlay.active {
    display: block !important; /* Show when active */
}

#success-message {
    display: none; /* Hidden by default */
    text-align: center;
}

#success-message.active {
    display: block; /* Show when active */
}

#form-container.hidden {
    display: none; /* Hide the form when the success message is active */
}

#form-container img {
    /* width: 100%;  Make the image scale with the width of the container */
    max-width: 150px !important; /* Constrain the image to a maximum width */
    height: auto;  /* Maintain the aspect ratio */
    margin: 0 auto; /* Center the image */
    display: block; /* Prevent image from stretching */
}
/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .popup {
        width: 80%;
        max-width: 400px;
        padding: 10px;
    }

    .popup-content h2 {
        font-size: 1.5em;
    }

    .popup-content p {
        font-size: 1em;
    }

    .close-btn {
        top: 5px;
        right: 5px;
    }

    input[type="email"], button {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .popup {
        width: 90%;
        max-width: 350px;
        padding: 8px;
    }

    .popup-content h2 {
        font-size: 1.3em;
    }

    .popup-content p {
        font-size: 0.9em;
    }

    .close-btn {
        top: 3px;
        right: 3px;
    }

    input[type="email"], button {
        font-size: 0.9em;
    }
}
