/*
|--------------------------------------------------------------------------
| Modal Open Button
|--------------------------------------------------------------------------
*/

.modal-open-button {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: #005ea8;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.modal-open-button:hover,
.modal-open-button:focus-visible {
    background: #00477f;
}

/*
|--------------------------------------------------------------------------
| Modal Container
|--------------------------------------------------------------------------
*/

.site-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-modal.is-open {
    display: flex;
}

/*
|--------------------------------------------------------------------------
| Modal Background Overlay
|--------------------------------------------------------------------------
*/

.site-modal-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Modal Window
|--------------------------------------------------------------------------
*/

.site-modal-window {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.site-modal-window h2 {
    margin-top: 0;
    padding-right: 45px;
}

.site-modal-window li {
    margin-bottom: 10px;
}

/*
|--------------------------------------------------------------------------
| Close Button
|--------------------------------------------------------------------------
*/

.site-modal-close {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.site-modal-close:hover,
.site-modal-close:focus-visible {
    background: #eeeeee;
}

/*
|--------------------------------------------------------------------------
| Modal Action Buttons
|--------------------------------------------------------------------------
*/

.site-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.site-modal-primary-button {
    padding: 11px 20px;
    border: 0;
    border-radius: 6px;
    background: #005ea8;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.site-modal-primary-button:hover,
.site-modal-primary-button:focus-visible {
    background: #00477f;
}

/*
|--------------------------------------------------------------------------
| Prevent Page Scrolling
|--------------------------------------------------------------------------
*/

body.modal-open {
    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| Mobile Adjustments
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {
    .site-modal {
        padding: 10px;
    }

    .site-modal-window {
        max-height: 90vh;
        padding: 25px 20px;
        border-radius: 8px;
    }
}