@charset "utf-8";

/* =========================================
   표준 서브 구조 - 공통 동기화 (notice 기반)
   ========================================= */
.sub_wrapper { background-color: #fff; min-height: 100vh; }
.sub_hero { position: relative; width: 100%; margin: -1px 0 !important; padding: 0 !important; line-height: 0; font-size: 0; overflow: hidden; background: none !important; }
.sub_hero img { width: 100%; height: auto !important; display: block; margin: 0 !important; padding: 0 !important; border: none !important; }
.hero_text_overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; background-color: rgba(0,0,0,0.2); z-index: 10; padding: 0 20px; }
.hero_text_overlay .hero_title { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 10px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); letter-spacing: -1px; }
.hero_text_overlay .hero_subtitle { font-size: 18px; color: #eee; font-weight: 500; text-shadow: 0 2px 5px rgba(0,0,0,0.3); word-break: keep-all; }

/* LNB Style */
.sub_lnb { border-bottom: 1px solid #eee; background-color: #fcfcfc; position: relative; z-index: 900; height: 60px; display: flex; align-items: center; margin: 0 !important; padding: 5px !important; border-top: none !important; }
.sub_lnb .lnb_inner { display: flex; align-items: center; gap: 15px; }
.sub_lnb .home_btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background-color: #fff; border: 1px solid #eee; border-radius: 50%; font-size: 16px; color: #444; transition: 0.3s; flex-shrink: 0; }
.sub_lnb .lnb_item { position: relative; }
.sub_lnb .lnb_btn { height: 44px; padding: 0 25px; background-color: #fff; border: 1px solid #eee; border-radius: 30px; font-size: 14px; font-weight: 600; color: #444; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; white-space: nowrap; }
.sub_lnb .lnb_btn.color_accent { border-color: var(--accent-color); color: var(--accent-color); background-color: rgba(130, 180, 41, 0.05); }
.sub_lnb .lnb_dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 160px; background-color: #fff; border: 1px solid #eee; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: none; padding: 10px 0; z-index: 1000; list-style: none; }
.sub_lnb .lnb_dropdown.show { display: block !important; }
.sub_lnb .lnb_dropdown li a { display: block; padding: 10px 20px; font-size: 14px; color: #666; text-decoration: none !important; }
.sub_lnb .lnb_dropdown li a:hover, .sub_lnb .lnb_dropdown li.active a { background-color: #f9f9f9; color: var(--accent-color); font-weight: 700; }

/* Sidebar Style */
.sub_content_area { padding: 80px 0 120px; }
.sub_content_area .content_inner { display: flex; gap: 80px; }
.sub_sidebar { width: 260px; flex-shrink: 0; }
.sub_sidebar .side_title_box { background: linear-gradient(45deg, var(--accent-color), #6e9a0f); padding: 30px 25px; border-radius: 8px 8px 0 0; }
.sub_sidebar .side_title { color: #fff; font-size: 24px; font-weight: 800; margin: 0; }
.sub_sidebar .side_menu_list { list-style: none; padding: 0; border: 1px solid #eee; border-top: none; border-radius: 0 0 8px 8px; background: #fff; }
.sub_sidebar .side_menu_list li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; font-size: 16px; color: #555; text-decoration: none !important; border-bottom: 1px solid #f2f2f2; transition: 0.3s; }
.sub_sidebar .side_menu_list li.active a { background-color: #f8faf2; color: var(--accent-color); font-weight: 700; }

.sub_main_content { flex: 1; min-width: 0; }

/* =========================================
   Inquiry Page Styles (Based on visit.css)
   ========================================= */

.consult_wrap {
    padding: 0 0 100px;
}

/* 1. Header Actions */
.consult_header_actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

/* 2. Badge & Status */
.status_badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status_badge.completed {
    background: #333;
    color: #fff;
}

.status_badge.waiting {
    background: #f4f4f4;
    color: #888;
    border: 1px solid #eee;
}

/* 3. List Table */
.consult_list_table_wrap {
    width: 100%;
    overflow-x: auto;
}

.consult_list_table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #333;
}

.consult_list_table th {
    padding: 18px 10px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    font-weight: 700;
    color: #111;
    font-size: 15px;
}

.consult_list_table td {
    padding: 18px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #555;
    font-size: 15px;
}

.consult_list_table td.td_title {
    text-align: left;
    padding-left: 20px;
}

.consult_list_table td.td_title a {
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.consult_list_table td.td_title a:hover {
    color: var(--accent-color);
}

.icon_secret {
    margin-left: 5px;
    color: #aaa;
    font-size: 13px;
}

/* 4. Pagination */
.inquiry_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 60px;
}

.page_btn, .page_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #eee;
    font-size: 14px;
    color: #777;
    transition: 0.3s;
    text-decoration: none !important;
}

.page_num:hover, .page_btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page_current {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* 5. Form Styles */
.consult_form_header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.form_section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form_section.no_border {
    border-bottom: none;
}

.section_title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.section_title i {
    font-size: 20px;
    color: var(--accent-color);
}

.section_title span {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

.consult_form .form_group {
    margin-bottom: 20px;
}

.inquiry_form_row {
    display: flex;
    gap: 20px;
}

.inquiry_form_row .form_group {
    flex: 1;
}

.consult_form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.consult_form select,
.consult_form input[type="text"],
.consult_form input[type="password"],
.consult_form input[type="date"],
.consult_form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: 0.3s;
    outline: none;
    box-sizing: border-box;
}

.consult_form select:focus,
.consult_form input:focus,
.consult_form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(130, 180, 41, 0.1);
}

.consult_form textarea {
    height: 250px;
    line-height: 1.6;
    resize: none;
}

.file_upload_area {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #ccc;
    text-align: center;
}

.form_agreement {
    margin: 40px 0;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.agreement_text {
    height: 180px;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.agreement_text h4 {
    color: #111;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 15px;
}

.agreement_text p {
    margin-bottom: 15px;
}

.agree_label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #333;
    font-size: 15px;
    cursor: pointer;
}

/* Buttons */
.consult_form_actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.btn_submit_inquiry, 
.btn_cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 54px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none !important;
}

.btn_submit_inquiry {
    background: #333;
    color: #fff;
    border: none;
}

.btn_submit_inquiry:hover {
    background: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn_submit_inquiry.red {
    background: #e74c3c;
}

.btn_submit_inquiry.accent {
    background: var(--accent-color);
    color: #fff;
}

.btn_submit_inquiry.accent:hover {
    background: #6e9a0f;
    box-shadow: 0 5px 15px rgba(130, 180, 41, 0.4);
}

.btn_cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.btn_cancel:hover {
    border-color: #999;
    color: #111;
}

/* 6. View Styles */
.consult_view_wrap {
    background: #fff;
    padding-bottom: 50px;
}

.view_header {
    padding-bottom: 25px;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.view_status_wrap {
    margin-bottom: 15px;
}

.status_badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #999;
}

.status_badge.wait { background: #999; }
.status_badge.ing { background: #3498db; }
.status_badge.done { background: var(--accent-color); }

.view_title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.view_meta {
    font-size: 14px;
    color: #888;
}

.view_meta b {
    color: #333;
}

.view_meta .sep {
    margin: 0 10px;
    color: #eee;
}

/* Summary Info Table */
.inquiry_summary_table {
    margin-bottom: 40px;
}

.summary_section {
    margin-bottom: 25px;
}

.summary_section h4 {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary_section h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 2px;
}

.summary_table {
    width: 100%;
    border-top: 1px solid #111;
    border-collapse: collapse;
}

.summary_table th {
    width: 15%;
    padding: 12px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    font-weight: 700;
    text-align: left;
}

.summary_table td {
    width: 35%;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.view_body {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.content_text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    min-height: 200px;
}

.view_files {
    margin-top: 40px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

.view_files h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
}

.view_files ul {
    list-style: none;
    padding: 0;
}

.view_files li {
    margin-bottom: 8px;
}

.view_files li:last-child { margin-bottom: 0; }

.view_files a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.view_files a .fsize {
    font-size: 12px;
    color: #aaa;
    margin-left: 5px;
}

/* 7. Password Gate */
.password_gate {
    padding: 120px 0;
    text-align: center;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    max-width: 600px;
    margin: 50px auto;
}

.pw_form h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}

.pw_form p {
    color: #777;
    margin-bottom: 30px;
    font-size: 15px;
}

.pw_input_flex {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.pw_input_flex input {
    flex: 1;
    height: 50px !important;
}

.pw_input_flex .btn_submit_inquiry {
    min-width: 100px;
    height: 50px;
}

.btn_cancel_link {
    display: inline-block;
    color: #999;
    font-size: 14px;
    text-decoration: underline !important;
}

/* 8. Custom Alert Modal */
.mmdh_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmdh_modal_content {
    width: 380px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: mmdh_modal_pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mmdh_modal_pop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.mmdh_modal_content .modal_header {
    padding: 25px 0 15px;
    text-align: center;
}

.mmdh_modal_content .logo_text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    color: #ddd;
}

.mmdh_modal_content .modal_body {
    padding: 10px 30px 30px;
    text-align: center;
}

.mmdh_modal_content #mmdhAlertMsg {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.6;
    word-break: keep-all;
}

.mmdh_modal_content .modal_footer {
    padding: 0 20px 20px;
}

.btn_modal_confirm {
    width: 100%;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn_modal_confirm:hover {
    background: #6e9a0f;
    box-shadow: 0 5px 15px rgba(130, 180, 41, 0.3);
}

/* =========================================
   Mobile Optimization
   ========================================= */
@media screen and (max-width: 768px) {
    /* 사이드바 숨김 및 본문 확장 */
    .sub_sidebar { display: none !important; }
    .sub_content_area { padding: 40px 0 80px; }
    .sub_content_area .content_inner { display: block; padding: 0 15px; }
    .sub_main_content { width: 100% !important; }

    /* Summary Table Mobile */
    .summary_table th, .summary_table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .summary_table th {
        background: #fdfdfd;
        padding: 5px 15px;
        border-bottom: none;
        color: #999;
        font-size: 12px;
    }
    
    .summary_table td {
        padding: 5px 15px 15px;
        color: #333;
        font-weight: 500;
    }

    /* 리스트 카드형 최적화 (TABLE -> BLOCK) */
    .consult_list_table, 
    .consult_list_table thead, 
    .consult_list_table tbody, 
    .consult_list_table tr, 
    .consult_list_table td {
        display: block;
        width: 100%;
    }

    .consult_list_table thead { display: none; }
    
    .consult_list_table tr {
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    }

    .consult_list_table td {
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .consult_list_table td:first-child { display: none; } /* 번호 숨김 */

    .consult_list_table td.td_title {
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #f5f5f5;
    }

    .consult_list_table td.td_title a {
        font-size: 17px;
        line-height: 1.4;
    }

    /* 폼 최적화 */
    .inquiry_form_row { flex-direction: column; gap: 0; }
    .btn_submit_inquiry, .btn_cancel { width: 100%; min-width: auto; }
    
    .consult_view_wrap { padding: 0; }
    .view_title { font-size: 22px; }
    .pw_form input { width: 100% !important; margin-bottom: 15px; }
}
