.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.popup-modal.is-visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.popup-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.popup-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .popup-modal__content {
        padding: 30px 20px;
        max-width: 90%;
    }
}

.popup-modal.is-visible .popup-modal__content {
    animation: slideIn 0.3s ease;
}

.popup-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.popup-modal__close:hover {
    color: #000;
}

.popup-modal__title {
    margin: 0 0 20px 0;
    padding-right: 40px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

@media (max-width: 768px) {
    .popup-modal__title {
        font-size: 20px;
    }
}

.popup-modal__body {
    color: #666;
    line-height: 1.6;
}

.popup-modal__body p {
    margin: 0 0 15px 0;
}

.popup-modal__body p:last-child {
    margin-bottom: 0;
}

.popup-modal__body a {
    color: #0073aa;
    text-decoration: underline;
}

.popup-modal__body a:hover {
    color: #005177;
}

.popup-modal__body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

body.popup-modal-open {
    overflow: hidden;
}
