/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    /* Semi-transparent dark overlay */
    backdrop-filter: blur(10px);
    /* Strong blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Higher than everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content Box */
.popup-box {
    background-color: #0d2818;
    /* Dark Green theme */
    color: white;
    padding: 3rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-overlay.active .popup-box {
    transform: translateY(0);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: white;
}

/* Typography */
.popup-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.popup-box p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form Elements */
.popup-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.popup-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.popup-form input[type="email"]::placeholder {
    color: #cbd5e0;
}

.popup-form button {
    background-color: #ecc94b;
    /* Yellow accent */
    color: #1a202c;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.popup-form button:hover {
    background-color: #d69e2e;
    transform: translateY(-2px);
}