@charset "utf-8";

#calendar {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

/* 모달 배경 오버레이 (화면 전체 중앙 정렬 컨테이너) */
.res-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* 팝업 본체 카드 */
.res-popup-layer {
    background-color: #ffffff !important;
    color: #1e293b !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 430px;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.3);
    overflow: hidden;
    box-sizing: border-box;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Malgun Gothic", sans-serif;
    animation: resModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resModalPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 상단 포인트 라인 */
.res-popup-accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #0f172a 0%, #3b82f6 100%);
}

/* 팝업 상단 헤더 */
.res-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 18px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.res-popup-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left !important;
}

.res-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background-color: #f1f5f9;
    color: #0f172a;
    flex-shrink: 0;
}

.res-popup-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-align: left !important;
}

.res-popup-sub {
    margin: 3px 0 0 !important;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
    text-align: left !important;
}

.res-popup-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

    .res-popup-x:hover {
        background-color: #f1f5f9;
        color: #0f172a;
    }

/* 팝업 본문 영역 */
.res-popup-body {
    padding: 22px 24px;
    background-color: #ffffff;
    text-align: left !important;
}

.res-popup-form {
    margin-bottom: 20px;
    text-align: left !important;
}

    .res-popup-form:last-child {
        margin-bottom: 0;
    }

    .res-popup-form label {
        display: block !important;
        margin-bottom: 8px !important;
        font-weight: 600;
        font-size: 13px;
        color: #334155;
        line-height: 1.4;
        text-align: left !important;
    }

        .res-popup-form label .req {
            color: #e11d48;
            margin-left: 2px;
        }

/* 선택 기간 카드 스타일 */
.res-period-card,
.res-period-badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 13px 15px;
    text-align: left !important;
}

.res-period-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

#res_period {
    color: #0f172a;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    line-height: 1.4;
    text-align: left !important;
}

/* 입력창 스타일 */
.res-popup-form input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background-color: #ffffff !important;
    color: #0f172a !important;
    text-align: left !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .res-popup-form input[type="text"]::placeholder {
        color: #94a3b8;
    }

    .res-popup-form input[type="text"]:focus {
        outline: none;
        border-color: #0f172a;
        box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
    }

.res-input-hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    text-align: left !important;
}

    .res-input-hint strong {
        color: #0f172a;
        font-weight: 600;
    }

/* 하단 버튼 영역 */
.res-popup-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

    .res-popup-buttons button {
        height: 42px;
        padding: 0 20px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: -0.01em;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
    }

        .res-popup-buttons button:active {
            transform: scale(0.98);
        }

/* 취소 버튼: 화이트 아웃라인 */
.btn-close {
    flex: 1;
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

    .btn-close:hover {
        background-color: #f1f5f9 !important;
        border-color: #94a3b8 !important;
        color: #0f172a !important;
    }

/* 예약 등록 버튼: 모던 다크 슬레이트 */
.btn-submit {
    flex: 2;
    border: none !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

    .btn-submit:hover {
        background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
    }
