﻿/* Background Overlay */
.modal-wrapper {
    display: none; /* Hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

/* The Popup Box */
.modal-box {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    position: relative;
    animation: slideDown 0.5s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #fff; /* White to show over the header image */
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 10;
}

.modal-body {
    padding: 25px;
    text-align: center;
}

.modal-body h2 { color: #d32f2f; margin-top: 0; }

.modal-body input, .modal-body select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-submit {
    background: #1976d2;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}