/* ============================================================
 * 파크골프 예약페이지 이동 확인 모달 (yjpgReservationConfirmModal.jsp)
 * 동적 색상(park-name color)은 fragment 의 인라인 <style> 블록 참조
 * ============================================================ */

/* === 모달 기본 (열림/닫힘, 위치, 백드롭) === */
.modal-on {
    overflow: hidden;
    overscroll-behavior: none;
}

.modal-on .modal.on {
    height: 100%;
}

.modal {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
    height: 0;
    top: 0;
    left: 0;
    z-index: 50;
}

.modal-on .modal .dimed {
    opacity: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-on .modal.login .dimed {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* === 팝업 박스 === */
.modal .modal-popup {
    max-width: 90%;
    max-height: 90%;
    min-width: 39%;
    overflow: hidden;
    overscroll-behavior: none;
    border-radius: 20px;
    transition: 0.4s;
    z-index: 2;
    box-shadow: 60px 60px 90px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal .modal-popup h1 {
    font-size: 1.75em;
}

.modal .modal-popup h2 {
    color: #6f737a;
    font-weight: normal;
    margin-top: 20px;
    font-size: 2.7em;
    word-break: keep-all;
}

.modal .modal-popup h3 {
    color: #6f737a;
    font-weight: normal;
    margin-top: 20px;
    font-size: 2em;
    word-break: keep-all;
}

/* === 팝업 본문 (split) === */
.modal.login .modal-popup .popup-content.split > li {
    width: 650px;
    padding: 0.5em;
    flex-grow: 1;
}

.modal .modal-popup .popup-content.split {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: max-content;
    border-radius: 0;
    padding: 30px;
    font-size: 24px;
    overflow: scroll;
}

.modal.login .modal-popup .popup-content {
    width: 100%;
    height: 90%;
    background-color: #fff;
}

/* === 강조 텍스트 (color 는 인스턴스별 인라인 <style> 에서 주입) === */
.modal .park-name {
    font-size: 1.4em;
    font-weight: 800;
}

/* === 하단 버튼 영역 === */
.modal .btn-set {
    display: flex;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.modal .btn-set a {
    height: 70px;
    line-height: 70px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    background-color: #6f737a;
    width: 100%;
    transition: 0.3s;
}

.modal .btn-set .submit {
    border: 0;
    background: linear-gradient(to left, #ff7100, #f54900);
    color: #fff;
}

@media (max-width: 600px) {
    .modal .modal-popup {
        min-height: initial;
    }
    .modal.login .modal-popup .popup-content {
        padding: 0.5em;
        height: auto;
    }
    .modal .modal-popup h1 {
        font-size: 1.65em;
        text-align: center;
        letter-spacing: -2px;
        word-break: keep-all;
    }
    .modal .modal-popup h2 {
        font-size: 1.8em;
        text-align: center;
    }

    .modal .modal-popup h3 {
        font-size: 1.6em;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .modal .modal-popup {
        min-height: initial;
    }
    .modal.login .modal-popup .popup-content {
        padding: 0.2em;
        height: auto;
    }
    .modal .modal-popup h1 {
        font-size: 1.15em;
        text-align: center;
        letter-spacing: -2px;
        word-break: keep-all;
    }
    .modal .modal-popup h2 {
        font-size: 1.25em;
        text-align: center;
    }

    .modal .modal-popup h3 {
        font-size: 1.05em;
        text-align: center;
    }
}
