
/* =========================================
   3. 메인 배너 영역 (히어로 섹션)
========================================= */
.hero-section { position: relative; background-color: var(--theme-color2); padding: 140px 20px 100px; text-align: center; color: var(--text-white); transition: background-color 0.3s; z-index: 1; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://goodbus.kr/images/main_bg_mono.jpg'); background-size: 50%; background-position: left; background-repeat: no-repeat; mix-blend-mode: multiply; opacity: 0.07; z-index: -1; }
.hero-section h1 { font-size: 38px; font-weight: 900; margin: 0 0 15px 0; letter-spacing: -1px; }
.hero-section p { font-size: 18px; font-weight: 400; margin: 0 0 40px 0; opacity: 0.9; }

.hero-titles { position: relative; max-width: 800px; margin: 0 auto; }
.hero-text { width: 100%; }
.hero-text.text-second { position: absolute; top: 0; left: 0; opacity: 0; }
.hero-text.text-first { animation: fadeText1 8s infinite ease-in-out; }
.hero-text.text-second { animation: fadeText2 8s infinite ease-in-out; }
@keyframes fadeText1 { 0%, 40% { opacity: 1; transform: translateY(0); } 45%, 95% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeText2 { 0%, 40% { opacity: 0; transform: translateY(10px); } 45%, 95% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }

/* =========================================
   4. 견적 입력 폼 컨테이너 & 프로세스 섹션
========================================= */	
.estimate-wrapper { max-width: 1050px; margin: -60px auto 50px; background: var(--text-white); border-radius: 20px; padding: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: relative; z-index: 10; color: var(--text-dark); }
.type-selector-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.type-selector { display: flex; gap: 10px; }
.type-btn { padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: #fff; cursor: pointer; font-weight: 500; transition: 0.2s; }
.type-btn.active { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }
.promo-text { font-size: 14px; font-weight: 400; color: var(--theme-color); display: flex; align-items: center; gap: 5px; background: #fff; padding: 6px 15px; border-radius: 20px; letter-spacing: 0.5px; }
.promo-text span { font-size: 18px; line-height: 1; }

.search-bar { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.input-group { flex: 1; background: var(--bg-gray); padding: 12px 15px; border-radius: 10px; position: relative; border: 1px solid transparent; min-height: 60px; min-width: 120px; box-sizing: border-box; transition: all 0.3s ease; }
.input-group:focus-within { border-color: var(--theme-color); background-color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.input-group label { display: block; font-size: 11px; color: var(--theme-color); font-weight: 700; margin-bottom: 5px; }
.input-group input { width: 100%; border: none; background: transparent; font-size: 15px; outline: none; padding: 5px 0; font-weight: 500; cursor: pointer; color: var(--text-dark); }

.unfixed-toggle { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 3px 8px; border-radius: 5px; border: 1px solid #ddd; background: #fff; color: #999; cursor: pointer; transition: 0.3s; }
.unfixed-toggle.active { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }
.btn-submit { background: var(--dark-bg); color: #fff; border: none; padding: 0 35px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 16px; white-space: nowrap; transition: 0.2s; }
.btn-submit:hover { background: #000; }
.addr-layer { position: absolute; top: 100%; left: 0; width: 100%; min-width: 300px; background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: none; z-index: 100; max-height: 250px; overflow-y: auto; }
.addr-item { padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 14px; text-align: left; }
.addr-item:hover { background: #f9f9f9; color: var(--theme-color); }

/* 견적 진행 안내 (프로세스) */
.process-section { padding: 80px 20px; background: #fff; text-align: center; }
.process-inner { max-width: 1050px; margin: 0 auto; }
.process-title { font-size: 28px; font-weight: 900; color: var(--text-dark); margin-bottom: 50px; }
.process-title span { color: var(--theme-color); }
.process-grid { display: flex; justify-content: space-between; position: relative; gap: 15px; }
.process-grid::before { content: ''; position: absolute; top: 45px; left: 10%; right: 10%; height: 2px; border-top: 2px dashed #ddd; z-index: 1; }
.process-step { flex: 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.icon-box { width: 90px; height: 90px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border: 3px solid var(--bg-gray); color: #999; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.process-step:hover .icon-box { border-color: var(--theme-color); color: var(--theme-color); transform: translateY(-5px); box-shadow: 0 15px 25px rgba(255, 127, 80, 0.2); }
.icon-box svg { width: 40px; height: 40px; fill: currentColor; }
.step-num { font-size: 13px; color: var(--theme-color); font-weight: 900; margin-bottom: 8px; background: var(--bg-gray); padding: 4px 12px; border-radius: 15px; letter-spacing: 0.5px; }
.step-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: #666; line-height: 1.5; word-break: keep-all; }

/* =========================================
   5. 팝업 / 모달 창 공통 디자인
========================================= */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.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; }

/* ★ [수정됨] 버스 안내 모달 탭 디자인 */
.bus-tabs { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 15px 0; 
    display: flex; 
    border-bottom: 2px solid #ddd; 
    overflow-x: auto; 
    overflow-y: hidden; /* ★ 세로 스크롤 완벽 차단 */
    white-space: nowrap; /* ★ 탭 내용 줄바꿈 방지 */
    scrollbar-width: none; 
}
.bus-tabs::-webkit-scrollbar { display: none; }
.bus-tabs li { margin-bottom: -2px; }
.bus-tabs button { background: none; border: none; border-bottom: 2px solid transparent; padding: 12px 20px; font-size: 15px; font-weight: 500; color: #666; cursor: pointer; white-space: nowrap; }
.bus-tabs button.active { color: var(--theme-color); border-bottom-color: var(--theme-color); font-weight: 700; }

/* =========================================
   ★ [핵심] 모바일 전용 반응형 코드
========================================= */
@media (max-width: 768px) {
    .hero-section { padding: 80px 20px 60px !important; }
    .hero-section::before { display: none !important; }
    .hero-section h1 { font-size: 22px !important; line-height: 1.3; margin-bottom: 8px !important; word-break: keep-all; }
    .hero-section p { font-size: 14px !important; margin-bottom: 20px !important; opacity: 0.8; }

    .estimate-wrapper { margin: -40px 15px 30px !important; padding: 15px !important; border-radius: 15px !important; }
    .search-bar { flex-direction: column; }
    .input-group { width: 100%; min-height: 60px !important; padding: 8px 12px !important; }
    .input-group label { margin-bottom: 2px !important; }
    .btn-submit { width: 100%; padding: 20px 0; margin-top: 10px; }
    .addr-layer { min-width: 100%; }
    .type-selector-wrap { flex-direction: column; align-items: flex-start; }
    .promo-text { display: none; }

    #user_name, #user_phone, #btn_send_auth, #auth_input, #btn_verify_auth { display: block !important; width: 100% !important; max-width: 100% !important; flex: none !important; margin-left: 0 !important; margin-right: 0 !important; margin-bottom: 10px !important; height: 52px !important; box-sizing: border-box !important; }
    .form-section div[style*="display: flex"] { display: block !important; }
    #auth_check_area { display: none; flex-direction: column !important; }
    #auth_check_area[style*="display: flex"], #auth_check_area[style*="display:flex"] { display: block !important; }	

    .process-section { padding: 50px 20px; }
    .process-title { font-size: 24px; margin-bottom: 30px; text-align: center; }
    .process-grid { flex-direction: column; gap: 30px; max-width: 280px; margin: 0 auto; }
    .process-grid::before { top: 0; bottom: 0; left: 35px; right: auto; width: 2px; height: 100%; border-top: none; border-left: 2px dashed #ddd; }
    .process-step { flex-direction: row; align-items: flex-start; text-align: left; width: 100%; }
    .icon-box { width: 70px; height: 70px; margin-bottom: 0; margin-right: 20px; flex-shrink: 0; border-width: 2px; background: #fff; position: relative; z-index: 2; }
    .icon-box svg { width: 30px; height: 30px; }
    .step-text-wrap { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 70px; }
    .step-num { margin-bottom: 5px; }
    .step-title { font-size: 16px; margin-bottom: 5px; }
    .step-desc { font-size: 13px; }
}
