.modal-block {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.modal-popup {
    position: fixed;
    left: 50%;
}

.modal-popup {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    top: -150%;
    max-width: 380px;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%) scale(1.2);
    /*transition: top 0s 0.2s ease-in-out,*/
    /*opacity 0.2s 0s ease-in-out,*/
    /*transform 0.2s 0s ease-in-out;*/
}

.modal-popup.show {
    top: 50%;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: top 0s 0s ease-in-out,
    opacity 0.2s 0s ease-in-out,
    transform 0.2s 0s ease-in-out;
    border: 1px solid #eee;
    z-index: 999;
}

.modal-popup :is(header, .icons, .field) {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.modal-popup header {
    height: auto;
}

.modal-popup header span {
    font-size: 32px;
    font-weight: 500;
}

.modal-popup header .modal-close, .icons a {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.modal-popup header .modal-close {
    background: var(--black-color);
    height: 40px;
    width: 40px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}
.modal-popup .bx.bx-x::before {
    color: var(--white-color);
}

.modal-popup .modal-content {
    width: 500px;
    margin: 40px auto;
}

.modal-content > .modal-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content-wrapper > div {
    display: flex;
    align-items: center;
    height: 30px;
}

.modal-content-wrapper > div > p:nth-child(1),
.modal-content-wrapper > div > label:nth-child(1) {
    width: 30%;
    flex-shrink: 0;
}

.modal-content select {
    width: 500px;
    height: 60px;
    padding: 0 20px;
    font-size: 18px;
}

.modal-button-wrapper {
    display: flex;
    margin: 20px 0;
    justify-content: center;
    gap: 10px;
}

.modal-inner-button {
    border-radius: 10px;
    background: #246BEB;
    color: var(--white-color);
    transition: var(--transition-2s);
}

.modal-inner-button.btn-detail {
    width: 72px;
    height: 35px;
    background: cyan;
    border-radius: 5px;
    border: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: normal;
}



#modal-term-1 .modal-content,
#modal-term-2 .modal-content,
#modal-term-3 .modal-content {
    width: 1000px;
    min-height: 700px;
    max-height: 1000px;
}

.modal-content .term-content-container {
    height: 100%;
    overflow-y: auto;
    line-height: 1.7;
    text-align: left;

    & .term-main-title {
        font-weight: 700;
        font-size: 2rem;
    }

    & .term-sub-title {
        font-weight: 500;
    }

    & .term-grid-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        width: 100%;
        border: 1px solid #ccc;
    }
    & .term-grid-item {
        padding: 10px;
        border: 1px solid #ccc;
        text-align: center;
        background-color: var(--white-color);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    & .term-grid-header {
        background-color: var(--tertiary);
        font-weight: bold;
    }
}

.description-example {
    height: 100%;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    flex-direction: column;
    justify-content: center;

    & span {
        color: #888;
    }
}