/* ==========================================
   reservation.css - 프로그램 예약 페이지 전용
   ========================================== */

/* --- 레이아웃 / 구조 --- */
.ui-sect:not(.seper) .sect + .sect:not(.sight) {
    border-top: none !important;
    padding: var(--padding) 0;
}
.ui-sect.no-border .sect > div.calendar .calendar-in {
    border: none;
    border-radius: 8px;
}

/* --- 팝업 --- */
.popup {
    padding: 0;
    top: 90px;
    border: 3px solid #fff;
    position: absolute;
    z-index: 9990;
    background: #fff;
    max-width: 500px;
}
#popup2 { left: 45%; }
#popup3 { left: 60%; }

/* --- CSS 변수 --- */
html {
    --type1: #a5d8ff;
    --type2: #00b3b3;
    --type3: #dd00bc;
    --type4: var(--orange);
    --type5: var(--green-color);
}
:root {
    --color1: var(--type1);
    --color2: var(--type2);
    --color3: var(--type2);
}

/* --- 색상 클래스 --- */
p.sect01 span { background-color: #364fc7; }
p.sect02 span { background-color: #00b3b3; }

/* --- GNB --- */

/* --- 로딩 --- */
.loading-wrap {
    pointer-events: unset;
    display: flex;
    z-index: 99;
}
.loading-wrap p {
    display: block;
    padding-top: 210px;
    position: absolute;
    font-weight: bold;
    text-align: center;
}

/* --- 시간별모집 뱃지 --- */
.badge-timeslot {
    color: #fff;
    background: #1C61A6;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* --- 프로그램 소개 목록 초기 안내 --- */
.initial-guide {
    flex-direction: column;
    align-items: flex-start;
}
.initial-guide .guide-item {
    margin-right: 10px;
}

/* --- 커스텀 알림/확인 모달 --- */
.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.custom-alert-overlay.show { display: flex; }
.custom-alert-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 340px;
    width: 85%;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    text-align: center;
    animation: alertSlideUp .25s ease;
}
@keyframes alertSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.custom-alert-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-alert-icon .material-symbols-sharp {
    font-size: 1.6rem;
    color: #e65100;
}
.custom-alert-msg {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.7;
    white-space: pre-line;
    word-break: keep-all;
    margin-bottom: 20px;
}
.custom-alert-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.custom-alert-btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 10px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.custom-alert-btn.confirm-btn {
    background: #ffa726;
    color: #fff;
}
.custom-alert-btn.confirm-btn:hover { background: #fb8c00; }
.custom-alert-btn.cancel-btn {
    background: #e0e0e0;
    color: #555;
}
.custom-alert-btn.cancel-btn:hover { background: #bdbdbd; }

/* --- 반응형 --- */
@media (max-width: 600px) {
    #popup1 {
        width: 90%;
        left: 0 !important;
        transform: translate(0, 0);
    }
    #popup2 { left: 50%; transform: translate(-50%, 0); width: 90%; }
    #popup3 { left: 50%; transform: translate(-50%, 0); width: 90%; }
}

@media (max-width: 812px) {
    .full .reserv-ui .agree-policy:has(input[type='checkbox']:checked) + .total-payment { max-width: 2000px; }
    .full .reserv-ui .agree-policy:has(input[type='checkbox']) + .total-payment { max-width: 2000px; }
    body:has(.ui-sect) .sect { background-color: var(--white); }
    .sect {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    .sect.shop-info {
        padding: 0 !important;
        margin-top: -1px;
        padding-bottom: var(--padding) !important;
        overflow-x: hidden !important;
        border-radius: 0 !important;
    }
    body:has(.ui-sect) .ui-sect { padding: 0 10px !important; }
    .sect:not(.date):not(.shop-info) { padding: var(--padding) !important; }
    .ui-sect.no-border .sect:not(.date) .head { padding: 0; }
    
    .sect, .sect .option, .sub .detail .detail-contents, .sub .detail, .sub {
        overflow-x: visible !important;
        width: 100%;
    }
    .sub .contents .article .header h3 { padding: 0 var(--padding); }
}

