﻿.modal-popup {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    padding: 0.75rem;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
}

.modal-popup-content {
    background-color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.modal-popup-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

.popup-banner-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .popup-banner-box img {
        border-radius: 6px;
        max-height: 220px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

.popup-doc-scroll {
    max-height: 310px;
    overflow-y: auto;
}

.modal-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.modal-popup .close {
    color: #64748b;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 200ms ease;
}

    .modal-popup .close:hover,
    .modal-popup .close:focus {
        color: #ef4444;
        text-decoration: none;
    }

@media (max-width: 767.98px) {
    .modal-popup-content {
        max-height: 92vh;
    }

    .popup-banner-box img {
        max-height: 165px;
    }

    .popup-doc-scroll {
        max-height: 230px;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 300ms ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
