/* Simple Modal System - Modern replacement for remodal */

/* Overlay */
.simple-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 46, 56, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.simple-modal-overlay.simple-modal-overlay-open {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.simple-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90vh;
    width: 700px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.simple-modal.simple-modal-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal content */
.simple-modal-content {
    padding: 35px;
    position: relative;
    color: #2b2e38;
    font-size: 14px;
    line-height: 1.6;
}

/* Typography in modal */
.simple-modal-content h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #2b2e38;
    padding-bottom: 10px;
    border-bottom: 2px solid #f99527;
}

.simple-modal-content h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 25px 0 15px 0;
    color: #2b2e38;
}

.simple-modal-content h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 20px 0 12px 0;
    color: #2b2e38;
}

.simple-modal-content h4 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 15px 0 10px 0;
    color: #2b2e38;
}

.simple-modal-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.simple-modal-content strong {
    font-weight: bold;
    color: #2b2e38;
}

.simple-modal-content ul {
    margin: 10px 0 15px 20px;
    padding: 0;
    list-style-type: disc;
}

.simple-modal-content ul li {
    margin: 8px 0;
    line-height: 1.6;
}

.simple-modal-content ul ul {
    margin-left: 20px;
    list-style-type: circle;
}

.simple-modal-content a {
    color: #208ade;
    text-decoration: underline;
}

.simple-modal-content a:hover {
    color: #1a6fb8;
}

.simple-modal-content i {
    font-style: italic;
}

/* Close button */
.simple-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 35px;
    color: #95979c;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    transition: color 0.2s;
}

.simple-modal-close:hover,
.simple-modal-close:focus {
    color: #2b2e38;
    outline: none;
}

/* Body lock when modal is open */
.simple-modal-body-lock {
    overflow: hidden;
}

/* Responsive */
@media only screen and (max-width: 640px) {
    .simple-modal {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
    }
    
    .simple-modal-content {
        padding: 20px;
    }
}

