/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-content img {
    max-width: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.close-modal-btn:hover {
    color: #000;
}

.modal h2 {
    margin-top: 0;
    color: #2c3e50;
}

.modal p {
    color: #555;
    margin-bottom: 20px;
}

.modal input[type="email"],
.modal input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal button[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal button[type="submit"]:hover {
    background-color: #2980b9;
}

/* Button to open popup */
.popup-button {
    background-color: #b8b9b8; /* #27ae60; green */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px;
}

.popup-button:hover {
    background-color: #219a52;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }

    .modal-content img {
        max-width: 150px;
    }

    .modal h2 {
        font-size: 1.3em;
    }

    .popup-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 15px;
        max-height: 80vh;
    }

    .modal-content img {
        max-width: 120px;
    }

    .modal h2 {
        font-size: 1.2em;
    }

    .close-modal-btn {
        font-size: 20px;
        top: 5px;
        right: 10px;
    }
}