/* Inapem Modal Widget CSS */
.inapem-modal-overlay {
    position: fixed !important;
    top: calc(var(--header-height, 0px) + 32px) !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--header-height, 0px) - 32px) !important;

    background-color: rgba(245, 247, 249, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inapem-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.inapem-modal-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--color-subtle-grey, #E6E6E9);
}

.inapem-modal-overlay.active .inapem-modal-box {
    transform: scale(1);
}

.inapem-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.inapem-modal-title {
    font-family: var(--font-primary, "Poppins", Sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary, #25355C);
    margin: 0;
    line-height: 1;
}

.inapem-modal-close {
    background: #FFFFFF !important;
    color: var(--color-primary, #25355C) !important;
    cursor: pointer;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: -8px;
}

.inapem-modal-box .inapem-modal-close i {
    color: var(--color-primary, #25355C) !important;
}

.inapem-modal-close:hover {
    background-color: var(--color-subtle-grey, #F8FAFC) !important;
    transform: translateY(-1px);
}

.inapem-modal-content {
    width: 100%;
}

/* Prevent scroll on body */
body.inapem-modal-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .inapem-modal-box {
        width: calc(100% - 32px);
        padding: 24px;
        margin: 16px;
    }
}