/* =========================================
   0. 공통 변수 및 초기화
========================================= */
:root { 
    --theme-color: #FF7F50; 
    --theme-color2: #FF7F50; 
    --bg-gray: #F8F9FA; 
    --border-color: #E0E0E0; 
    --text-dark: #333333;
    --text-white: #ffffff;
    --dark-bg: #1d325f;
	--main-red: #E74C3C; 
	--blue-badge: #3498db; 
	--point-orange: #E67E22;
}

body, html { margin: 0; padding: 0; font-family: 'Noto Sans KR', sans-serif; background-color: #f5f6f8; }
a { text-decoration: none; color: inherit; }

/* =========================================
   1. 상단 헤더 (PC 기본)
========================================= */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: transparent; color: var(--text-white); padding: 15px 0; transition: all 0.3s ease-in-out; }
.nav-inner { max-width: 1050px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 0px;}
.logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; }
.logo img { height: 35px; vertical-align: middle; transition: 0.3s; border-radius: 5px; }
.nav-links { display: flex; gap: 25px; font-weight: 700; font-size: 15px; }
header.scrolled { background: var(--theme-color); color: var(--text-white); padding: 15px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

/* =========================================
   2. 사이드 메뉴 및 햄버거 버튼 (PC 기본)
========================================= */
.menu-btn { display: none; background: none; border: none; color: var(--text-white); font-size: 28px; cursor: pointer; padding: 5px; }
header.scrolled .menu-btn { color: var(--text-white); }
.side-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1001; opacity: 0; transition: opacity 0.3s ease; }
.side-menu-overlay.show { display: block; opacity: 1; }
.side-menu { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; z-index: 1002; transition: left 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.side-menu.open { left: 0; }
.side-menu-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.side-menu-header .logo img { height: 30px; }
.side-menu-close { background: none; border: none; font-size: 32px; color: #333; cursor: pointer; line-height: 1; }
.side-menu-body { padding: 20px; flex: 1; overflow-y: auto; }
.side-menu-item { display: block; padding: 15px 0; border-bottom: 1px solid #f5f5f5; font-size: 16px; font-weight: 500; color: var(--text-dark); }

/* =========================================
   6. 푸터 (하단 영역)
========================================= */
.main-footer { background-color: var(--dark-bg); color: #fff; padding: 50px 20px; font-size: 14px; line-height: 1.6; margin-top: 50px; }
.footer-inner { max-width: 1050px; margin: 0 auto; display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.footer-cs { flex: 1; min-width: 280px; }
.cs-title-wrap { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.cs-title { font-size: 16px; font-weight: 700; }
.btn-kakao { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 5px; font-size: 13px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.btn-kakao:hover { border-color: #FEE500; color: #FEE500; }
.cs-phone { font-size: 28px; font-weight: 900; margin-bottom: 5px; letter-spacing: -0.5px; }
.cs-email { font-size: 15px; margin-bottom: 15px; color: #d1d5db; }
.cs-hours { font-size: 13px; color: #9ca3af; }
.footer-info { flex: 2; min-width: 300px; }
.footer-links { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.footer-links a { color: #d1d5db; position: relative; font-size: 14px; }
.footer-links a::after { content: '|'; position: absolute; right: -10px; color: rgba(255,255,255,0.2); }
.footer-links a:last-child::after { content: ''; }
.footer-links a strong { color: #fff; }
.footer-time-badge { font-size: 14px; margin-bottom: 15px; color: #d1d5db; display: flex; align-items: center; gap: 10px; }
.footer-time-badge .badge { background: rgba(255,255,255,0.1); color: #4ade80; padding: 3px 10px; border-radius: 15px; font-size: 12px; font-weight: 700; }
.company-details { font-size: 13px; color: #9ca3af; word-break: keep-all; }

/* =========================================
   5. 팝업 / 모달 창 공통 디자인
========================================= */
.body-scroll-lock {
    overflow: hidden !important;
    touch-action: none !important; /* 모바일에서 화면 밀림 방지 */
}
.modal-overlay { 
	display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
	background: rgba(0,0,0,0.6); z-index: 9999; 
	align-items: center; justify-content: center; 
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-lg { background: #fff; width: 800px; max-width: 95%; max-height: 90vh; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative;overscroll-behavior: contain; }
.modal-header-lg { padding: 20px 25px; border-bottom: 2px solid var(--theme-color); display: flex; justify-content: space-between; align-items: center; background: var(--theme-color); color: white; flex-shrink: 0; }
.modal-header-lg h2 { margin: 0; font-size: 18px; font-weight: 900; }
.btn-close { background: none; border: none; color: white; font-size: 28px; cursor: pointer; }
.modal-body-lg { padding: 25px; overflow-y: auto; flex: 1;overscroll-behavior: contain; }
.modal-body-lg::-webkit-scrollbar { width: 6px; }
.modal-body-lg::-webkit-scrollbar-track { background: transparent; }
.modal-body-lg::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.modal-footer-lg { padding: 15px 25px; background: #fff; border-top: 1px solid #eee; display: flex; gap: 15px; flex-shrink: 0; }
.btn-action { flex: 1; padding: 15px; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn-lg-cancel { background: #eee; color: #333; }
.btn-lg-submit { background: var(--theme-color); color: #fff; opacity: 0.4; pointer-events: none; transition: 0.3s; }
.btn-lg-submit.ready { opacity: 1; pointer-events: auto; }

.summary-box { background: var(--bg-gray); padding: 15px; border-radius: 10px; margin-bottom: 25px; border: 1px solid #eee; font-size: 13px; line-height: 1.8; }
.summary-box b { color: var(--theme-color); }
.form-section { margin-bottom: 20px; }
.form-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); display: flex; align-items: center; gap: 5px; }
.help-icon { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; background: #ccc; color: #fff; font-size: 11px; cursor: pointer; }
.select-grid { display: flex; gap: 10px; }
.select-btn { flex: 1; padding: 15px; border: 1px solid #ddd; background: #fff; border-radius: 10px; cursor: pointer; font-size: 14px; text-align: center; font-weight: 500; transition: 0.2s; }
.select-btn.active { border-color: var(--dark-bg); background: var(--dark-bg); color: #fff; }
.full-input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; box-sizing: border-box; font-family: inherit; transition: 0.3s; cursor: pointer; background: #fff; color: var(--text-dark); }
.full-input.active { background-color: var(--dark-bg) !important; color: #fff !important; border-color: var(--dark-bg) !important; }
.full-input.active::placeholder { color: #aaa; }
textarea.full-input { resize: none; height: 100px; cursor: text; }

.auth-group { display: flex; gap: 10px; margin-bottom: 10px; }
.auth-group input { flex: 1; cursor: text; }
.btn-auth { padding: 0 15px; background: #666; color: #fff; border: none; border-radius: 10px; cursor: pointer; font-weight: 700; white-space: nowrap; font-size: 13px; transition: 0.2s; }
.auth-check-group { display: none; gap: 10px; }

.sub-modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:3000; align-items:center; justify-content:center; }
.sub-content { background:#fff; width: 90%; max-width: 400px; border-radius: 15px; padding: 25px; text-align: center; box-sizing:border-box; }
.grid-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.grid-btn { padding: 15px 5px; border: 1px solid #eee; background: var(--bg-gray); border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 500; transition: 0.2s; }
.grid-btn:hover { background: #f9f9f9; border-color: var(--theme-color); color: var(--theme-color); }

#customAlertModal h3 { margin-top: 0; color: var(--theme-color); font-size: 18px; }
#customAlertModal button { background: var(--theme-color) !important; color: #fff; border: none; }
.toast-msg { background: #3498db !important; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; padding: 15px 30px; border-radius: 30px; font-size: 14px; font-weight: 700; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s, top 0.3s; text-align:center; width:80%; max-width:300px; }
.toast-msg.show { opacity: 1; top: 45%; }
.spinner { border: 4px solid rgba(0, 0, 0, 0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: var(--theme-color); animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }		

.modal-sm { background: #fff; width: 90%; max-width: 380px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.show .modal-sm { transform: translateY(0); }
.modal-header-sm { padding: 15px; text-align: center; font-weight: 700; border-bottom: 1px solid #eee; font-size: 16px; color: var(--text-dark); }
.cal-table { width: 100%; border-collapse: collapse; }
.cal-table th { font-size: 12px; color: #999; padding-bottom: 10px; }
.cal-table td { padding: 5px 0; text-align: center; cursor: pointer; }
.date-circle { width: 34px; height: 34px; line-height: 34px; margin: 0 auto; border-radius: 50%; font-size: 14px; transition: 0.2s; }
.cal-table td:not(.disabled):hover .date-circle { background: #f0f0f0; color: var(--theme-color); }
.cal-table td.active .date-circle { background: var(--theme-color) !important; color: #fff !important; font-weight: 700; }
.cal-table td.disabled .date-circle { color: #ddd; cursor: not-allowed; }
.time-picker { display: flex; justify-content: center; height: 250px; position: relative; overflow: hidden; }
.time-column { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; text-align: center; scrollbar-width: none; z-index: 2; }
.time-column::-webkit-scrollbar { display: none; }
.time-column div { height: 50px; line-height: 50px; scroll-snap-align: center; font-size: 18px; color: #ccc; user-select: none; transition: 0.2s; }
.time-column div.active { color: #000; font-weight: 700; font-size: 22px; }
.time-center-bar { position: absolute; left: 0; top: 100px; width: 100%; height: 50px; background: rgba(0,0,0,0.03); border-top: 1px solid #eee; border-bottom: 1px solid #eee; z-index: 1; pointer-events: none; }
.modal-footer-sm { display: flex; gap: 10px; padding: 15px; border-top: 1px solid #eee; }
.btn-sm-action { flex: 1; padding: 14px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px; }
.btn-sm-action:last-child { background: var(--theme-color) !important; color: #fff !important; }	

/* =========================================
   ★ [핵심] 모바일 전용 반응형 코드
========================================= */
@media (max-width: 768px) {
    .main-footer { padding: 40px 20px; }
    .footer-inner { flex-direction: column; gap: 40px; }
    .footer-links { gap: 12px; }
    .footer-links a { font-size: 13px; }
    .footer-links a::after { right: -8px; }
    .cs-phone { font-size: 24px; }

    .nav-inner { justify-content: center; position: relative; min-height: 40px; }
    .menu-btn { display: block; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
    .nav-links { display: none; }
    .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .logo img { height: 28px; }
}
