#openModalBtn {
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 35px;
    /* The .witr_btn class from your theme handles the rest */
}

.modal-overlay {
    position: fixed; /* Sit on top of the page content */
    z-index: 10000;  /* High z-index to ensure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6); /* Darker background */
    overflow: hidden; /* Enable scroll if content is long */

    /* Initial state: hidden */
    visibility: hidden;
    opacity: 0;

    /* Smooth transition for appearing */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* The Modal Content Box */
.modal-content {
    background-color: #ffffff;
    position: relative;
    margin: 5% auto;                /* трохи менше відступів зверху */
    padding: 30px 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;               /* розширив для таблиці */
    max-height: 90vh;               /* обмежує висоту */
    overflow-y: auto;               /* скрол тільки коли потрібно */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);

    /* Initial state: slightly moved up */
    transform: translateY(-50px);

    /* Smooth transition for sliding in */
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #888;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content .twr_form_box {
    margin-bottom: 20px;
}
.modal-content .twr_form_box input {
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.modal-content .contact_page_button .btn {
    width: 100%;
}