/* Start modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position to cover the screen */
    z-index: 9999; /* Always on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    overflow: auto; /* Enable scrolling if content is larger than screen */
}

.modal .modal-box {
    background-color: #fff;
    margin: 10% auto;
    width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.modal .modal-header h3 {
    margin: 0;
}

.modal .modal-header .close-modal {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.modal .modal-content {
    padding: 25px 20px;
    flex: 1;
}

.modal .modal-footer {
    padding: 10px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.modal .modal-footer .btn {
    padding: 8px 16px;
    background-color: #FF792F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal .modal-footer .btn:hover {
    background-color: #df4f00;
}

.modal .modal-footer .btn.btn-outline {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    cursor: pointer;
}

.modal .modal-footer .btn.btn-outline:hover {
    background-color: #efefef;
}
/* End modal */

/* Start modal search area */
#modal_search_area .modal-content form .item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 30px;
    position: relative;
}

#modal_search_area .modal-content form .item:first-child {
    margin-top: 0px;
}

#modal_search_area .modal-content form .item::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 61%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--color-org-1);
    border-bottom: 3px solid var(--color-org-1);
    pointer-events: none;
}

#modal_search_area .modal-content form label {
    font-weight: 700;
    font-size: 16px;
    color: #000000;
}

#modal_search_area .modal-content form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 50px 12px 12px;
    color: var(--color-org-1);
    font-weight: 600;
    border: 2px solid #e7541c;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
}

#modal_search_area .modal-content form select:focus {
    outline: none;
    border-color: var(--color-org-1);
}
/* End modal search area */

@media screen and (max-width: 767px) {
    /* Start modal mobile */
    .modal .modal-box {
        width: 375px;
        margin: 30% auto;
    }
    /* End modal mobile */
}

@media screen and (max-width: 390px) {
    /* Start modal mobile */
    .modal .modal-box {
        width: 340px;
        margin: 30% auto;
    }
    /* End modal mobile */
}