/* ==========================================================
   Global Text Drag & Copy Prevention (Security)
========================================================== */
body {
    -webkit-user-select: none; /* Safari, Chrome, Edge Mobile/PC */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard Modern Browsers */
    -webkit-user-drag: none;   /* Prevent text drag and drop */
    overflow-anchor: none;
}

/* Prevent image dragging completely */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Exceptions: Input fields, Terms containers, and PIN Display 
   Must explicitly use 'text' instead of 'auto' to forcefully bypass body restriction 
*/
input, 
textarea, 
select, 
[contenteditable="true"], 
.law-doc-container,
.law-doc-container *, 
.pin-display, 
.pin-number {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important; 
    cursor: text;
}

/* =========================================
   [Global Layout] Reset origin & Prevent rightward shift
========================================= */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

#mainBody {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important; 
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* =========================================
   [Footer] Flexible height & text wrapping
========================================= */
footer, .footer, #footer, .footer-container {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;         
    min-height: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    padding-bottom: 80px !important; /* Margin for bottom mobile nav */
}

/* Force text wrapping inside footer */
footer p, footer span, footer div, .copyright, .copy, .footer-info {
    white-space: normal !important; 
    word-break: keep-all !important; 
    overflow-wrap: break-word !important; 
    height: auto !important;
    line-height: 1.6 !important;
}

/* Header Styles */
.header-fixed { position: sticky !important; top: 0 !important; z-index: 1000 !important; background: #fff !important; border-bottom: 1px solid #eee !important; width: 100% !important; }
.header-top { max-width: 1100px !important; margin: 0 auto !important; height: 80px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 0 20px !important; box-sizing: border-box !important; background: #fff !important; }

.logo { display: flex !important; align-items: center !important; }
.logo a { display: block !important; }
.logo svg { height: 42px !important; width: 105px !important; }

.right-area { display: flex !important; align-items: center !important; gap: 15px !important; }
.icon-btn { display: flex !important; align-items: center !important; justify-content: center !important; width: 35px !important; height: 35px !important; cursor: pointer !important; text-decoration: none !important; }
.icon-btn svg { width: 24px !important; height: 24px !important; stroke: #333 !important; fill: none !important; stroke-width: 2 !important; }

/* Hamburger Menu Icon (Forced on PC) */
.btn-menu-open { display: flex !important; flex-direction: column !important; justify-content: space-around !important; width: 26px !important; height: 20px !important; cursor: pointer !important; margin-left: 10px !important; padding: 0 !important; background: transparent !important; }
.btn-menu-open span { display: block !important; width: 100% !important; height: 3px !important; background-color: #111 !important; border-radius: 3px !important; pointer-events: none !important; transition: 0.3s !important; }

/* Bottom GNB Navigation (Forced on PC) */
.header-nav { display: block !important; background: #fff !important; border-top: 1px solid #f8f8f8 !important; border-bottom: 1px solid #eee !important; width: 100% !important; }
.gnb { max-width: 1100px !important; margin: 0 auto !important; display: flex !important; justify-content: center !important; gap: 40px !important; padding: 0 20px !important; box-sizing: border-box !important; list-style: none !important; overflow-x: auto !important; }
.gnb li { display: block !important; }
.gnb li a { display: block !important; padding: 15px 0 !important; font-size: 16px !important; font-weight: 700 !important; color: #333 !important; white-space: nowrap !important; text-decoration: none !important; position: relative !important; transition: color 0.2s !important; }
.gnb li a:hover, .gnb li.on a { color: #27ae60 !important; }
.gnb li.on a::after { content: '' !important; position: absolute !important; bottom: 0 !important; left: 0 !important; width: 100% !important; height: 3px !important; background-color: #27ae60 !important; }

/* =========================================
   [Right Side Panel Hamburger Menu]
========================================= */
#allmenu-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100vh !important; background: rgba(0,0,0,0.6) !important; z-index: 9998 !important; opacity: 0; visibility: hidden; transition: 0.3s; display: block; }
#allmenu-overlay.active { opacity: 1 !important; visibility: visible !important; }

#allmenu { 
    position: fixed !important; 
    top: 0 !important; 
    right: -340px !important; /* Hide outside viewport initially */
    width: 100% !important; 
    max-width: 300px !important; 
    height: 100vh !important; 
    background: #fff !important; 
    z-index: 9999 !important; 
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; 
    display: flex !important; 
    flex-direction: column !important; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important; 
    box-sizing: border-box !important; 
}
#allmenu.active { right: 0 !important; }

.allmenu-header { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 20px !important; border-bottom: 1px solid #f0f0f0 !important; }

/* Profile Buttons in Hamburger Menu */
.btn-login-top, .btn-signup-top { flex: 1 !important; padding: 10px 0 !important; text-align: center !important; font-size: 14px !important; font-weight: 700 !important; border-radius: 4px !important; box-sizing: border-box !important; text-decoration: none !important; transition: background 0.2s; }
.btn-login-top { background: #131522 !important; color: #fff !important; }
.btn-login-top:hover { background: #000 !important; color: #fff !important; }
.btn-signup-top { background: #fff !important; border: 1px solid #ddd !important; color: #333 !important; }
.btn-signup-top:hover { background: #f9f9f9 !important; }

.allmenu-body { flex: 1 !important; overflow-y: auto !important; padding: 0 0 20px 0 !important; }
.menu-group { border-bottom: 1px solid #f5f5f5 !important; padding: 15px 20px !important; }
.menu-group:last-child { border-bottom: none !important; }
.menu-label { font-size: 18px !important; font-weight: 700 !important; color: #222 !important; margin-bottom: 12px !important; }

.vertical-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.vertical-list li { margin-bottom: 0 !important; }
.vertical-list li a { display: flex !important; justify-content: space-between !important; align-items: center !important; font-size: 15px !important; color: #555 !important; padding: 12px 0 !important; text-decoration: none !important; transition: color 0.2s; }
.vertical-list li a:hover { color: #1b9e75 !important; font-weight: 600 !important; }
.vertical-list li a::after { content: '>' !important; font-size: 16px !important; color: #ccc !important; font-family: 'Pretendard', sans-serif !important; font-weight: 300 !important; }

/* =========================================
   [Mobile Bottom Nav Fixed (Hidden on PC)]
========================================= */
.mobile-bottom-nav { display: none !important; }

/* ==========================================================
   Global Toast Message Style
========================================================== */
#lawsee-toast {
    visibility: hidden; 
    min-width: 250px;
    max-width: 80%;
    
    /* Core code for perfect center alignment */
    position: fixed !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Reset margin to 0 to prevent existing margins from interfering! */
    margin: 0 !important;
    background-color: rgba(40, 40, 40, 0.95); 
    color: #fff;
    text-align: center;
    border-radius: 30px; 
    padding: 14px 20px;
    z-index: 9999999; 
    bottom: 30px; 
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    word-break: keep-all;
}

#lawsee-toast.show {
    visibility: visible;
    bottom: 90px !important; 
    opacity: 1;
}

/* =========================================
   Common Header/Footer & Mobile Nav Fixes
   ========================================= */
header .icon-btn svg { width: 24px; height: 24px; }

.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: #fff; border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 9999; 
}
.mobile-bottom-nav ul { display: flex; justify-content: space-around; align-items: center; margin: 0; padding: 0; list-style: none; }
.mobile-bottom-nav li { flex: 1; }
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; padding: 10px 0; font-size: 11px; color: #666; text-decoration: none; }
.mobile-bottom-nav a svg { width: 24px; height: 24px; margin-bottom: 4px; fill: none; stroke: #666; stroke-width: 2; }

/* ==========================================================
   Customer Service (Notice, FAQ, Inquiry) Styles
========================================================== */
.cs-wrapper { display: flex; justify-content: center; padding: 40px 20px 80px; box-sizing: border-box; background-color: #f7f7f7; }
.cs-container { width: 100%; max-width: 900px; background: #fff; padding: 40px; border-radius: 12px; border: 1px solid #e5e5e5; box-shadow: 0 4px 20px rgba(0,0,0,0.03); box-sizing: border-box; }
.cs-page-title { font-size: 28px; font-weight: 800; color: #222; text-align: center; margin-top: 0; margin-bottom: 30px; }

/* Tab Menu */
.cs-tab-menu { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 40px; }
.cs-tab-menu a { flex: 1; text-align: center; padding: 15px 0; font-size: 16px; font-weight: 600; color: #666; text-decoration: none; background: #f9f9f9; border: 1px solid #ddd; border-bottom: none; margin-right: -1px; transition: all 0.2s ease; }
.cs-tab-menu a:first-child { border-top-left-radius: 8px; }
.cs-tab-menu a:last-child { border-top-right-radius: 8px; margin-right: 0; }
.cs-tab-menu a:hover { background: #f1f1f1; }
.cs-tab-menu a.active { background: #fff; color: #27ae60; font-weight: 800; border-top: 3px solid #27ae60; border-bottom: 1px solid #fff; position: relative; top: 1px; z-index: 2; }

/* Page Description & Title */
.page-title { margin-top: 0; margin-bottom: 10px; font-size: 24px; font-weight: 800; color: #222; }
.page-desc { font-size: 15px; color: #666; margin-bottom: 30px; line-height: 1.5; word-break: keep-all; }

/* Accordion Common */
.list-wrap { border-top: 2px solid #333; }
.list-item { border-bottom: 1px solid #eee; }

/* Notice Specific */
.notice-title-row { padding: 20px 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: background 0.2s; }
.notice-title-row:hover { background: #f9f9f9; }
.notice-title-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.badge-notice { background: #e74c3c; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 3px; flex-shrink: 0; }
.notice-title-txt { font-size: 16px; font-weight: 600; color: #333; line-height: 1.4; word-break: keep-all; }
.notice-date { font-size: 14px; color: #999; margin-left: auto; margin-right: 15px; flex-shrink: 0; }
.notice-content-row { display: none; padding: 30px 20px; background: #f4f7f6; color: #555; line-height: 1.6; font-size: 15px; border-top: 1px dashed #eee; word-break: keep-all; }
.list-item.active .notice-content-row { display: block; }
.list-item.active .notice-title-txt { color: #00796b; font-weight: 800; }

/* FAQ Specific (Details/Summary tags) */
.list-item summary { display: flex; align-items: center; padding: 20px 10px; font-size: 16px; font-weight: 700; color: #333; cursor: pointer; list-style: none; transition: background 0.2s; word-break: keep-all; }
.list-item summary::-webkit-details-marker { display: none; }
.list-item summary:hover { background: #fdfdfd; color: #007071; }
.faq-q-mark { color: #007071; font-size: 18px; margin-right: 15px; font-weight: 800; flex-shrink: 0; }
.faq-arrow { margin-left: auto; color: #999; font-size: 14px; transition: transform 0.3s; padding-left: 10px; }
.faq-answer { padding: 0 20px 25px 43px; font-size: 15px; color: #555; line-height: 1.6; background: #fff; word-break: keep-all; }
.faq-a-mark { color: #e74c3c; font-weight: 800; margin-right: 5px; }
.list-item[open] summary .faq-arrow { transform: rotate(180deg); color: #007071; }

/* 1:1 Inquiry Form Specific */
.login-induce-box { display: flex; justify-content: space-between; align-items: center; background: #e8f5f5; border: 1px solid #cce8e8; padding: 20px 25px; border-radius: 6px; margin-bottom: 30px; }
.login-induce-text { font-size: 14px; color: #333; line-height: 1.5; }
.login-induce-text strong { color: #007071; font-size: 15px; }
.btn-induce-login { background: #fff; color: #007071; font-size: 14px; font-weight: 700; padding: 10px 20px; border: 1px solid #007071; border-radius: 4px; text-decoration: none; transition: 0.2s; white-space: nowrap; margin-left: 20px; }
.form-row { display: flex; border-top: 1px solid #eee; padding: 18px 0; align-items: flex-start; }
.form-row:last-of-type { border-bottom: 1px solid #eee; }
.form-label { width: 160px; font-size: 15px; font-weight: 700; color: #333; flex-shrink: 0; padding-top: 10px; }
.req { color: #e74c3c; margin-left: 3px; font-size: 14px; }
.form-input-box { flex-grow: 1; width: 100%; }
.form-input-box input, .form-input-box select, .form-input-box textarea { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 15px; font-family: inherit; transition: border-color 0.2s; outline: none; }
.form-input-box input:focus, .form-input-box select:focus, .form-input-box textarea:focus { border-color: #1b9e75; box-shadow: 0 0 0 3px rgba(27, 158, 117, 0.1); }
.form-input-box textarea { height: 200px; resize: vertical; }
.radio-group { display: flex; align-items: center; height: 44px; }
.radio-group label { margin-right: 20px; font-size: 15px; cursor: pointer; display: flex; align-items: center; }
.radio-group input { margin-right: 6px; width: 18px; height: 18px; accent-color: #1b9e75; cursor: pointer; }
.file-notice { font-size: 13px; color: #888; margin-top: 8px; display: block; }
.privacy-box { background: #fbfbfb; border: 1px solid #eee; padding: 20px; border-radius: 4px; margin-top: 30px; }
.privacy-box .term-text { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 15px; }
.privacy-check label { font-size: 15px; font-weight: 700; color: #222; cursor: pointer; display: flex; align-items: center; }
.privacy-check input { width: 18px; height: 18px; margin-right: 8px; accent-color: #1b9e75; cursor: pointer; }
.btn-wrap { text-align: center; margin-top: 40px; }
.btn-submit { background: #007071; color: #fff; font-size: 16px; font-weight: 700; padding: 16px 60px; border: none; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.btn-submit:hover { background: #0b5e5e; }

/* ==========================================================
   Terms Popup (Modal) and Iframe Styles
========================================================== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center;
}

/* Modal size responsive for both Mobile and PC */
.modal-content.terms-content {
    background: #fff; width: 95%; max-width: 800px; height: 85vh; padding: 20px; border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative;
    display: flex; flex-direction: column;
}

.modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; }
.modal-header { margin-bottom: 15px; font-size: 18px; font-weight: 700; color: #222; border-bottom: 2px solid #00796b; padding-bottom: 10px; margin-top: 10px; }

/* Iframe Container */
.iframe-container { flex: 1; width: 100%; margin-bottom: 15px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #f7f7f7; }
.iframe-container iframe { width: 100%; height: 100%; display: block; }
.modal-btn { width: 100%; padding: 15px; background-color: #00796b; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; flex-shrink: 0; }
.modal-btn:hover { background-color: #00605d; }

/* =========================================
   Filter & Search Map Layout Elements
========================================= */
/* Filter and Map Mode Containers */
.filter-section { background: #f9f9f9; padding: 30px 20px; border-bottom: 1px solid #eee; }
.container { max-width: 1100px; margin: 0 auto; }

/* Common Job Tab Styles */
.category-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 2px solid #333; padding-bottom: 15px; }
.tab-btn { padding: 12px 30px; border: 1px solid #ddd; background: #fff; border-radius: 30px; cursor: pointer; font-size: 16px; font-weight: 700; color: #666; text-decoration: none; display: inline-block; transition: all 0.2s; white-space: nowrap; }
.tab-btn:hover { border-color: #27ae60; color: #27ae60; }
.tab-btn.active { background: #27ae60; color: #fff; border-color: #27ae60; box-shadow: 0 4px 10px rgba(39,174,96,0.3); }

/* Search Mode Toggle */
.search-mode-toggle { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
.btn-mode { padding: 12px 25px; font-size: 15px; font-weight: 700; border-radius: 30px; border: 1px solid #ddd; background: #fff; color: #888; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.btn-mode:hover { background: #f9f9f9; }
.btn-mode.active { background: #333; color: #fff; border-color: #333; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

#mode-condition, #mode-map { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Filter Controls */
.filter-controls { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.filter-select { padding: 10px; border-radius: 5px; border: 1px solid #ddd; min-width: 180px; height: 45px; }
.search-box { display: flex; flex: 1; border: 1px solid #ddd; border-radius: 5px; overflow: hidden; background: #fff; height: 45px; }
.search-box input { border: none; padding: 0 15px; flex: 1; outline: none; }
.btn-search { background: #333; color: #fff; border: none; padding: 0 20px; cursor: pointer; }

/* Map Wrapper */
.map-wrapper-svg { position: relative; width: 100%; max-width: 380px; margin: 0 auto; padding: 30px 20px; transition: max-width 0.3s ease; }
.svg_map_in { width: 100%; height: auto; filter: drop-shadow(0 3px 10px rgba(0,0,0,0.05)); }
.svg_map_in .group1 path { fill: #e5e5e5; stroke: #ffffff !important; stroke-width: 3px !important; paint-order: stroke fill; stroke-linejoin: round; transition: fill 0.2s ease; cursor: pointer; }
.svg_map_in .group1 path:hover, .svg_map_in .group1 path.active { fill: #27ae60 !important; }
.svg_map_in .group2 { pointer-events: none; } 
.svg_map_in .group2 text { pointer-events: none; fill: #737373; stroke: #ffffff; stroke-width: 2.5px; paint-order: stroke fill; transition: fill 0.2s ease; }

/* Region Popup */
.region-popup { display: none; position: absolute; background: #fff; border: 2px solid #333; border-radius: 8px; padding: 5px 0; z-index: 100; min-width: 160px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); text-align: left; }
.region-popup.show { display: block; animation: popUpAnim 0.2s ease-out forwards; }
@keyframes popUpAnim { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.region-popup::before { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); border-width: 8px 8px 0; border-style: solid; border-color: #333 transparent transparent transparent; }
.region-popup::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-width: 6px 6px 0; border-style: solid; border-color: #fff transparent transparent transparent; }
.region-popup a { display: block; padding: 10px 15px; color: #444; text-decoration: none; font-size: 13px; border-bottom: 1px solid #f0f0f0; transition: all 0.2s; }
.region-popup a:last-child { border-bottom: none; }
.region-popup a:hover { background: #f0fdf4; color: #27ae60; font-weight: bold; padding-left: 20px; }
#popup-seoul { top: 10%; left: 10%; }
#popup-gyeonggi { top: 5%; left: 40%; }

/* Map Result Header */
#map-result-header { position: relative; display: none; background: #fff; border-top: 2px solid #333; padding: 40px 30px; min-height: 220px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-radius: 0 0 12px 12px; margin-bottom: 30px; overflow: hidden; }
.header-content-wrapper { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-start; padding-left: 10%; }
.header-text-content { position: relative; z-index: 10; text-align: left; }
#dynamic-region-title { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 20px;}
#map-result-header.show-flex { display: flex !important; justify-content: center; }

/* Sub Region Styles */
.map-result-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 800px; margin: 0 auto; }
.header-left { flex: 1; text-align: left; }
.map-result-title { font-size: 26px; font-weight: 800; color: #333; margin: 0 0 15px 0; line-height: 1.3;}
.map-result-title span.highlight { color: #27ae60; }
.btn-reset-map { padding: 8px 18px; background: #fff; color: #555; border: 1px solid #ddd; border-radius: 20px; font-size: 13px; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.btn-reset-map:hover { border-color: #333; color: #333; background: #f9f9f9; }
#regional-map-container { position: absolute; right: -80px; top: -20px; bottom: -20px; width: 650px; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#unified-mini-map { position: absolute !important; left: 0 !important; top: 0 !important; width: calc(100% - 100px) !important; max-width: 400px !important; height: 100% !important; margin: 0 !important; }
.mini-map-paths path { fill: #f4f4f4; stroke: #ffffff; stroke-width: 1.5px; transition: all 0.3s ease; }
.mini-map-paths path.highlight { fill: #27ae60 !important; stroke: #ffffff !important; stroke-width: 1.5px !important; paint-order: stroke fill; }
.detail-map-svg { display: none; width: 100%; height: auto; overflow: visible !important; }
.sub-region-paths path { fill: #e0e0e0; stroke: #ffffff; stroke-width: 1.5px; cursor: pointer; transition: fill 0.3s ease; }
.sub-region-paths path:hover, .sub-region-paths path.active { fill: #27ae60 !important; }
.detail-region-map { width: 100%; min-width: 600px; height: auto; }

/* Expert Card Styles */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 30px 0; }
.expert-card { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.card-top { padding: 25px 0; text-align: center; background: #fafafa; position: relative; }
.status-badge { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: bold; }
.status-badge.group1 { background: #e8f5e9; color: #27ae60; }
.status-badge.group2 { background: #f5f5f5; color: #999; }
.profile-img img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.card-body { padding: 20px; text-align: center; flex-grow: 1; }
.expert-job { color: #27ae60; font-size: 13px; font-weight: bold; margin-bottom: 5px; }
.expert-name { font-size: 17px; font-weight: 700; margin: 0; }
.office-name { font-size: 12px; color: #888; font-weight: normal; display: block; margin-top: 4px; }
.card-footer { display: flex; border-top: 1px solid #eee; }
.card-footer a { flex: 1; padding: 14px 0; text-align: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.btn-detail { background: #fff; color: #666; }
.btn-online { background: #333; color: #fff; }
.btn-call-hpass { background: #27ae60; color: #fff; border-left: 1px solid #eee; border-right: 1px solid #eee; }
.btn-card-only { background: #e8f5e9; color: #27ae60; border-left: 1px solid #eee; border-right: 1px solid #eee; }

/* Filter Layout Maintenance */
.filter-section .container.detail-mode { display: flex; flex-direction: column; }
.filter-section .container.detail-mode #job-tabs { order: 2; border-bottom: none; justify-content: center; padding-bottom: 0; margin-bottom: 25px; display: none !important; }
.filter-section .container.detail-mode .search-mode-toggle { order: 1; justify-content: flex-start; border-top: none !important; border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 20px !important; margin-top: 15px !important; }
#map-job-tabs { display: none !important; }
.filter-section .container.detail-mode #map-job-tabs { display: block !important; }
.filter-section .container.detail-mode #mode-condition { order: 3; }
.filter-section .container.detail-mode #mode-map { order: 4; }
.detail-mode #unified-mini-map { width: 100%; min-width: 600px; max-width: 650px; height: auto; }
.btn-view-terms { font-size: 12px; color: #888; text-decoration: underline; background: none; border: none; cursor: pointer; margin-right: 12px; flex-shrink: 0; }

/* ==========================================================
   Payment Modal Styles (Common Module)
========================================================== */
/* High z-index to completely cover the mobile bottom navigation */
#payLayerOverlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; align-items: center; justify-content: center; }
.pay-modal { background: #fff; width: 90%; max-width: 500px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); font-family: 'Pretendard', sans-serif; max-height: 90vh; display: flex; flex-direction: column; }
.pay-modal-header { background: #0f4c3a; color: #fff; padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.pay-modal-header h4 { margin: 0; font-size: 18px; }
.btn-close-modal { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.pay-modal-body { padding: 25px; overflow-y: auto; }

/* Payment Information Rows */
.pay-info-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 15px; }
.pay-info-label { color: #888; }
.pay-info-value { color: #333; font-weight: 600; text-align: right; word-break: keep-all; }
.pay-info-value.price { color: #d32f2f; font-size: 18px; font-weight: 700; }

.point-usage-box { background: #f9f9f9; border: 1px solid #eee; padding: 15px; border-radius: 8px; margin: 20px 0; }

/* Point Input Area (Fix for Galaxy Fold / Android layout breaking) */
.point-input-wrap { display: flex; gap: 8px; margin-top: 10px; align-items: center; width: 100%; }
/* min-width: 0 allows the input to shrink flexibly on extremely narrow screens */
.point-input { flex: 1; min-width: 0; height: 40px; box-sizing: border-box; margin: 0; outline: none; border: 1px solid #ddd; padding: 0 10px; border-radius: 4px; text-align: right; font-size: 14px; }
/* flex-shrink: 0 prevents the button from being squished */
.btn-use-all { flex-shrink: 0; height: 40px; box-sizing: border-box; padding: 0 15px; white-space: nowrap; background: #555; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; }

/* Payment Methods Grid */
.section-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #333; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.btn-method { border: 1px solid #ddd; padding: 12px 5px; text-align: center; border-radius: 6px; cursor: pointer; font-size: 13px; color: #666; background: #fff; transition: all 0.2s; }
.btn-method.active { border-color: #27ae60; background: #f8fdfa; color: #27ae60; font-weight: 600; }

/* Sub Payment Methods (Virtual Account, Mobile, etc.) */
.btn-method-sub { padding: 10px; border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s;}
.btn-method-sub.active { border-color: #27ae60 !important; background: #f8fdfa !important; color: #27ae60 !important; font-weight: 600; }

/* Final Action Button */
.btn-final-pay { width: 100%; background: #27ae60; color: #fff; border: none; padding: 16px; font-size: 16px; font-weight: 700; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.btn-final-pay:hover { background: #219653; }

/* Phone & PIN input: green text */
#userPhone,
#userPhone060,
#payUserPhone,
#userPinNumber {
    color: #27ae60 !important;
    font-weight: 700 !important;
}


/* =========================================
   [Mobile Responsive Processing]
========================================= */

@media (max-width: 1300px) { .map-wrapper-svg { max-width: 380px; } }
@media (max-width: 1024px) { 
    .map-wrapper-svg { max-width: 350px; } 
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
    /* Prevent horizontal scroll and hamburger menu overflow on mobile */
    html, body, #mainBody { width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important; position: relative !important; }
    
    /* Add bottom padding to prevent bottom nav from hiding content */
    body { padding-bottom: 70px !important; }

    /* Completely hide GNB */
    .header-nav { display: none !important; opacity: 0 !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }

    /* Fixed mobile bottom nav (App bar) */
    .mobile-bottom-nav { display: block !important; position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important; background: #fff !important; box-shadow: 0 -3px 15px rgba(0,0,0,0.05) !important; z-index: 9990 !important; border-top: 1px solid #eee !important; }
    .mobile-bottom-nav ul { display: flex !important; justify-content: space-around !important; align-items: center !important; margin: 0 !important; padding: 0 !important; list-style: none !important; height: 65px !important; width: 100% !important; }
    .mobile-bottom-nav li { flex: 1 !important; text-align: center !important; height: 100% !important; }
    .mobile-bottom-nav li a { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; color: #888 !important; text-decoration: none !important; font-size: 11px !important; font-weight: 600 !important; gap: 5px !important; height: 100% !important; padding: 5px 0 !important; box-sizing: border-box !important; }
    
    /* Force fix SVG icons */
    .mobile-bottom-nav li a svg { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; stroke: #888 !important; fill: none !important; stroke-width: 2 !important; stroke-linecap: round !important; stroke-linejoin: round !important; }
    .mobile-bottom-nav li a:hover, .mobile-bottom-nav li.on a { color: #27ae60 !important; }
    .mobile-bottom-nav li a:hover svg, .mobile-bottom-nav li.on a svg { stroke: #27ae60 !important; }
}

@media (max-width: 768px) {
    .header-top { height: 60px !important; padding: 0 15px !important; }
    .logo svg { height: 35px !important; width: 89px !important; } 
    .allmenu-header { padding: 15px 20px !important; }
    .pc-info-text { display: none !important; }
    .mobile-info-text { display: block !important; }
    .footer-menu-wrapper { align-items: center !important; text-align: center !important; }
    .footer-menu-row { justify-content: center !important; }

    /* Mobile specific for map */
    .map-wrapper-svg { max-width: 300px; } 
    #map-result-header { padding: 15px 10px 5px 10px !important; margin-bottom: 10px !important; min-height: auto; }
    .header-content-wrapper { padding-left: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; margin: 0; }
    .header-text-content { max-width: 100%; text-align: center; margin-bottom: 5px; z-index: 2; } 
    #dynamic-region-title { font-size: 25px; text-shadow: none; }
    #regional-map-container { position: relative; right: auto; top: auto; bottom: auto; left: auto; width: 100%; max-width: 350px; height: 250px; margin: 0 auto; display: flex; justify-content: center; align-items: center; border: none !important; background: transparent; }
    #unified-mini-map { width: 100% !important; max-height: 100% !important; }
    .detail-map-svg { height: auto !important; max-height: none !important; }
    .detail-region-map { min-width: 0 !important; }

    /* Mobile specific for CS */
    .cs-wrapper { padding: 20px 15px 50px; }
    .cs-container { padding: 25px 20px; }
    .cs-tab-menu a { font-size: 14px; padding: 12px 0; }
    .notice-title-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 10px; }
    .notice-meta-wrap { display: flex; justify-content: space-between; width: 100%; }
    .notice-date { margin-left: 0; font-size: 13px; }
    .faq-item summary { font-size: 15px; padding: 18px 5px; line-height: 1.4; }
    .login-induce-box { flex-direction: column; align-items: flex-start; padding: 15px; }
    .btn-induce-login { margin-left: 0; margin-top: 15px; width: 100%; text-align: center; box-sizing: border-box; }
    .form-row { flex-direction: column; padding: 15px 0; }
    .form-label { width: 100%; padding-bottom: 10px; padding-top: 0; }
    .btn-submit { width: 100%; padding: 16px 0; }
}

@media (max-width: 640px) {
    .category-tabs { gap: 6px; justify-content: center; } 
    .tab-btn { padding: 10px 16px; font-size: 14px; } 
    .search-mode-toggle { gap: 8px; }
    .btn-mode { padding: 10px 14px; font-size: 13px; letter-spacing: -0.5px; white-space: nowrap; }
    .expert-grid { grid-template-columns: repeat(1, 1fr); }
}

@media (max-width: 600px) {
    #lawsee-toast { margin-left: -45%; width: 90%; min-width: auto; }
}