/* Popup Form Styles */
.popup-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex; /* Hidden initially via opacity */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden; /* Hidden by default */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
}

.popup-form.active {
    opacity: 1; /* Fully visible */
    visibility: visible; /* Make it visible */
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Responsive width */
    max-width: 500px; /* Maximum width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.8); /* Scale down initially */
    transition: transform 0.3s ease; /* Smooth scaling transition */
}

.popup-form.active .popup-content {
    transform: scale(1); /* Scale to normal size when active */
}

.popup-content h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #0079B5;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    resize: none;
    height: 100px;

}

.submit-btn {
    background: #0079B5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #005f8c;
}

/* Close Button Styling */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0079B5;
    color: #fff;
    border: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 43%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
}

.close-btn:hover {
    background: #e04040;
    transform: scale(1.1); /* Slight zoom effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        padding: 15px;
    }

    .submit-btn {
        font-size: 14px;
    }

    .close-btn {
        font-size: 14px;
        padding: 5px 8px;
    }
}
