/* Popup Background */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;             
    pointer-events: none;   
    transition: opacity 0.5s ease;
    z-index: 1000;
}

/* When popup becomes visible */
.popup.show {
    opacity: 1;
    pointer-events: auto;
}

/* Popup Content Box */
.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* Animation */
    transform: translateY(-100px); /* Start higher */
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* When popup shows, move it down smoothly */
.popup.show .popup-content {
    transform: translateY(0); /* Slide down to normal position */
}

/* Close (X) Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

/* Form Fields */
.popup-content input,
.popup-content textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Submit Button */
.popup-content button {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

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