@charset "utf-8";

/* 전체 레이아웃 */
#inquiry_form_wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #333;
}

/* 각 단계별 섹션 */
.inquiry_step {
    margin-bottom: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* 단계 제목 */
.step_tit {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.step_tit strong {
    color: #7C5833;
    font-size: 1.5em;
    margin-right: 10px;
}

.step_tit span {
    font-size: 1.5em;
    font-weight: bold;
}

/* 단계 내용 */
.step_con {
    padding: 20px;
    background-color: #fff;
}

/* 개인정보취급방침 박스 */
.privacy_box {
    border: 1px solid #eee;
    padding: 15px;
    height: 120px;
    overflow-y: auto;
    font-size: 1.5em;
    color: #666;
    margin-bottom: 10px;
    background-color: #fafafa;
    line-height: 1.6;
}

/* 개인정보 동의 체크박스 */
.privacy_chk {
    text-align: right;
    font-size: 0.95em;
}

.privacy_chk label {
    cursor: pointer;
    font-size: 16px;
}

/* 폼 테이블 스타일 */
.form_table .row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.chk_group label {
    display: inline-flex;  /* 라벨들을 옆으로 나열하면서 Flex 속성 사용 */
    align-items: center;   /* 체크박스와 텍스트의 수직 중앙 정렬 */
    margin-right: 15px;    /* 각 항목 사이의 간격 */
    cursor: pointer;       /* 마우스 올렸을 때 손가락 모양 */
}

.chk_group input[type="checkbox"] {
    margin: 0;             /* 브라우저 기본 여백 제거 */
    margin-right: 6px;     /* 체크박스와 텍스트 사이 간격 */
    position: relative;    /* 미세 조정이 필요할 경우 사용 */
    top: 1px;              /* 시각적으로 1px 정도 내려야 딱 맞는 경우가 많음 */
    width: 20px;
    height: 20px;

}

.form_table .row:last-child {
    border-bottom: none;
}

.form_table .th {
    width: 120px;
    font-weight: 500;
    padding-left: 10px;
    color: #444;
    font-size: 16px;
}

.form_table .td {
    flex: 1;
}

.req {
    color: #ff0000;
    margin-left: 3px;
}

/* 입력 필드 공통 */
.frm_input {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 1.25em;
    outline: none;
    transition: border-color 0.3s;
}

.frm_input:focus {
    border-color: #007bff;
}

.frm_input.full {
    width: 100%;
    box-sizing: border-box; /* padding 포함 너비 계산 */
}

/* 이메일 입력 */
.email_wrap input {
    width: 150px;
}

.email_wrap select {
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: 5px;
    height:40px;
}

/* 연락처 입력 */
.phone_wrap input {
    text-align: center;
}

/* 배너 영역 (버팀목 소개 등) - 필요 시 스타일 조정 */
.info_banner {
    display: flex;
    justify-content: space-around;
    background-color: #f1f3f5;
    padding: 15px 0;
    font-weight: bold;
    color: #555;
    border-radius: 4px;
    margin-top: 20px;
    flex-wrap: wrap; /* 모바일 대응 */
}
.info_banner div {
    padding: 5px 10px;
}


/* 상담유형 체크박스 그룹 */
.chk_group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chk_group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
}

.chk_group input[type="checkbox"] {
    margin-right: 5px;
}

/* 전송 버튼 */
.inquiry_btn_wrap {
    text-align: center;
    margin-top: 30px;
}

#btn_submit_inquiry {
    background-color: #7C5833;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

#btn_submit_inquiry:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 반응형 (모바일 대응) */
@media (max-width: 768px) {
    .form_table .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form_table .th {
        width: 100%;
        margin-bottom: 8px;
        padding-left: 0;
    }

    .form_table .td {
        width: 100%;
    }

    .email_wrap input {
        width: 40%; /* 이메일 필드 너비 조정 */
    }
    
    .email_wrap select {
        width: 100%;
        margin-top: 5px;
        margin-left: 0;
    }
    
    .chk_group {
        flex-direction: column;
    }
}





/* ==========================================================================
   초기화 및 공통 스타일
   ========================================================================== */
ul, li { list-style:none; padding:0; margin:0; }
#bo_list, #bo_v, #bo_w { font-family: 'Noto Sans KR', sans-serif; letter-spacing: -0.05em; color: #333; }
a { text-decoration: none; color: inherit; }

/* --- [중요 수정] 게시판 내부의 폼 요소만 스타일 적용 (푸터 깨짐 방지) --- */
#bo_list input[type="text"], #bo_list input[type="password"], #bo_list select, #bo_list textarea,
#bo_v input[type="text"], #bo_v input[type="password"], #bo_v select, #bo_v textarea,
#bo_w input[type="text"], #bo_w input[type="password"], #bo_w select, #bo_w textarea {

}

/* 게시판 내부 입력창 클릭 시 효과 */
#bo_list input:focus, #bo_v input:focus, #bo_w input:focus,
#bo_list select:focus, #bo_v select:focus, #bo_w select:focus,
#bo_list textarea:focus, #bo_v textarea:focus, #bo_w textarea:focus {
    border-bottom: 1px solid #3a8afd;
}

/* 체크박스는 별도 처리 */
#bo_list input[type="checkbox"], #bo_v input[type="checkbox"], #bo_w input[type="checkbox"] { 
    vertical-align: middle; margin: -2px 5px 0 0; 
}


/* ==========================================================================
   버튼 스타일 (공통)
   ========================================================================== */

/* 기본 타원형 버튼 */
.btn_oval {
    display: inline-block;
    padding: 8px 25px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    text-align: center;
    font-size: 13px;
    transition: all 0.3s;
    vertical-align: middle;
    margin-left: 5px;
}
.btn_oval:hover { background: #f8f8f8; border-color: #bbb; color: #333; }

/* 강조(글쓰기/확인) 버튼 */
.btn_oval.btn_submit, .btn_oval.btn_highlight {
    background: #3a8afd; border-color: #3a8afd; color: #fff;
}
.btn_oval.btn_submit:hover, .btn_oval.btn_highlight:hover {
    background: #256fd8; border-color: #256fd8;
}


/* ==========================================================================
   1. 게시판 목록 (List Page)
   ========================================================================== */
/* [중요] 높이값 깨짐 방지용 Clearfix 추가 */
#bo_list { position: relative; margin-bottom: 50px; }
#bo_list:after { display: block; visibility: hidden; clear: both; content: ""; }

/* 상단 영역 (Total + 검색창) */
#bo_list_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.total_count { font-size: 14px; color: #555; font-weight: 500; }
.total_count b { color: #333; }

/* 검색창 (밑줄 디자인) */
.sch_simple_wrap { position: relative; display: inline-block; }
.sch_simple_input {
    /* 공통 스타일 상속받음, 너비만 지정 */
    width: 200px;
    font-size: 14px;
}
.sch_simple_btn {
    position: absolute; right: 0; top: 5px;
    background: none; border: 0;
    font-size: 16px; color: #333; cursor: pointer;
}

/* 테이블 (리스트) */
.list_tbl { width: 100%; border-collapse: collapse; border-top: 2px solid #333; }
.list_tbl th { display: none; }
.list_tbl td {
    padding: 34px 10px;
    border-bottom: 1px solid #BCBFC7;
    color: #666;
    font-size: 14px;
}

/* 데스크탑 컬럼 스타일 */
.td_chk { width: 40px; text-align: center; }
.td_num { width: 80px; text-align: center; color: #999; }
.td_date { width: 120px; text-align: right; color: #999; font-size: 13px; font-family: 'Roboto', sans-serif; }

/* 제목 */
.td_subject { text-align: left; }
.td_subject a { color: #1a1a1a; font-weight: 600; font-size: 18px; display: block; }
.td_subject a:hover { color: #7C5833; }
.td_subject .bo_tit { display: block; position: relative; display:flex; }

/* 뱃지 */
.notice_badge {
    display: inline-block;
    background: #0f2e5a;
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 400;
}
.cnt_cmt { color: #3a8afd; font-size: 12px; margin-left: 5px; font-weight: bold; }
.new_icon { color: #ff0000; font-size: 10px; margin-left: 5px; vertical-align: top; }


/* ==========================================================================
   페이지네이션 (스크린샷 스타일)
   ========================================================================== */
.pg_wrap { 
    text-align: center; 
    margin: 40px 0 60px;
    display: block; width: 100%; font-size: 0;
}
.pg_page, .pg_current {
    display: inline-block; vertical-align: middle;
    width: 36px; height: 36px; line-height: 36px;
    text-align: center; border-radius: 50%;
    background: transparent; color: #333;
    font-size: 15px; font-weight: 500; text-decoration: none;
    margin: 0 4px; border: 0;
    font-family: 'Roboto', sans-serif; transition: all 0.2s;
}
.pg_page:hover { background-color: #f5f5f5; color: #000; }
.pg_current {
    background-color: #004b96; color: #fff; font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 75, 150, 0.3);
}
.pg_start, .pg_prev, .pg_next, .pg_end {
    text-indent: -9999px; overflow: hidden; position: relative;
    background: transparent !important; width: 30px; border: 0;
}
.pg_start::after, .pg_prev::after, .pg_next::after, .pg_end::after {
    text-indent: 0; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; line-height: 36px;
    color: #ddd; font-size: 20px; font-weight: 300; font-family: serif; text-align: center;
}
.pg_start::after { content: "«"; font-size: 24px; line-height: 34px; margin-right: 2px;}
.pg_prev::after  { content: "‹"; font-size: 24px; line-height: 32px; }
.pg_next::after  { content: "›"; font-size: 24px; line-height: 32px; }
.pg_end::after   { content: "»"; font-size: 24px; line-height: 34px; margin-left: 2px;}
.pg_start:hover::after, .pg_prev:hover::after, .pg_next:hover::after, .pg_end:hover::after { color: #999; }

.sch_simple_input {
    border: 0;                /* 기존 테두리 모두 제거 */
    border-bottom: 1px solid #ccc; /* 하단에만 1px 회색 실선 추가 */
    border-radius: 0;         /* 둥근 모서리 제거 (선택사항) */
    background: transparent;  /* 배경 투명 (선택사항) */
    outline: none;            /* 포커스 시 브라우저 기본 파란 테두리 제거 */
    padding: 5px 0 10px 15px;           /* 텍스트와 밑줄 사이 간격 조정 */
    width: 220px;             /* 너비는 기존 설정 유지 또는 조절 */
}

/* (옵션) 클릭했을 때(포커스) 밑줄 색상을 진하게 변경 */
.sch_simple_input:focus {
    border-bottom: 1px solid #333; 
    transition: border-color 0.3s; /* 부드럽게 색상 변경 */
}
/* ==========================================================================
   리스트 하단 버튼 그룹
   ========================================================================== */
.list_btn_wrap { margin-top: 20px; text-align: right; font-size: 0; }
.btn_action {
    display: inline-block; width: 110px; height: 45px; line-height: 43px;
    box-sizing: border-box; border-radius: 50px;
    text-align: center; font-size: 14px; font-weight: 500;
    margin-left: 8px; vertical-align: middle; cursor: pointer; transition: all 0.3s;
}
.btn_action.btn_admin { background: #fff; border: 1px solid #ddd; color: #e8180c; }
.btn_action.btn_admin:hover { border-color: #e8180c; background: #fff5f5; color: #e8180c; }
.btn_action.btn_del { background: #fff; border: 1px solid #ddd; color: #555; }
.btn_action.btn_del:hover { border-color: #333; color: #333; }
.btn_action.btn_copy { background: #fff; border: 1px solid #ddd; color: #555; }
.btn_action.btn_copy:hover { border-color: #333; color: #333; }
.btn_action.btn_write { background: #7C5833; border: 1px solid #7C5833; color: #fff; }
.btn_action.btn_write:hover { background: #7C5833; border-color: #7C5833; }


/* ==========================================================================
   2. 게시판 읽기 (View Page)
   ========================================================================== */
#bo_v { margin-bottom: 50px; box-sizing: border-box; position: relative; }
#bo_v:after { display: block; visibility: hidden; clear: both; content: ""; }

#bo_v_title { padding: 20px 0; border-bottom: 2px solid #333; margin-bottom: 20px; }
.bo_v_tit { font-size: 24px; font-weight: bold; color: #000; display: block; word-break: keep-all; line-height: 1.4; }
.bo_v_cate { font-size: 13px; color: #3a8afd; margin-bottom: 5px; display: inline-block; font-weight: bold; }
.bo_v_info { font-size: 13px; color: #888; margin-top: 15px; display: flex; justify-content: space-between; }
#bo_v_atc { min-height: 200px; }
#bo_v_con { line-height: 1.8; padding: 20px 0; font-size: 15px; word-break: break-all; }
#bo_v_con img { max-width: 100%; height: auto; }
.bo_v_top_btns { text-align: right; margin-bottom: 10px; }
#bo_v_file { margin: 20px 0; border: 1px solid #eee; background: #fbfbfb; padding: 10px 20px; border-radius: 5px; }
#bo_v_file li { padding: 5px 0; font-size: 13px; }
#bo_v_file a { color: #555; }
#bo_v_file a:hover { text-decoration: underline; }

#bo_v_nav {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;
    padding: 25px 0; margin-top: 50px;
}
.nav_btn {
    display: inline-flex; align-items: center; color: #666; font-size: 14px; max-width: 100%; transition: color 0.3s;
}
.nav_btn:hover { color: #000; }
.nav_btn i {
    width: 32px; height: 32px; line-height: 32px; text-align: center;
    background: #f5f5f5; border-radius: 50%; color: #999; flex-shrink: 0;
}
.nav_btn.prev i { margin-right: 15px; }
.nav_btn.next { flex-direction: row-reverse; text-align: right; }
.nav_btn.next i { margin-left: 15px; }
.btn_list_oval {
    display: inline-block; padding: 10px 45px; border: 1px solid #ccc;
    border-radius: 50px; color: #333; background: #fff; font-size: 14px; transition: all 0.3s;
}
.btn_list_oval:hover { background: #333; color: #fff; border-color: #333; }
.cmt_btn { background: none; border: 0; font-weight: bold; font-size: 16px; padding: 15px 0; border-bottom: 1px solid #eee; width: 100%; text-align: left; cursor: pointer; }


/* ==========================================================================
   3. 글쓰기 (Write Page)
   ========================================================================== */
#bo_w .write_div { margin-bottom: 15px; position: relative; }
/* #bo_w .frm_input 스타일은 상단 공통 스타일에서 제어됨 */
#bo_w .full_input { width: 100%; box-sizing: border-box; }
.bo_w_flie { border: 1px solid #eee; padding: 10px 15px; border-radius: 5px; background: #f9f9f9; }
.bo_w_flie .file_del { font-size: 13px; color: #888; margin-left: 10px; }
#bo_w .btn_confirm { text-align: right; margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }


/* ==========================================================================
   4. 모바일 반응형 (Media Query) - 스크린샷 대응
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. 상단 영역 */
    #bo_list_top { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
    }
    .total_count { width: auto; font-size: 13px; font-weight: bold; }

    .sch_simple_wrap { width: 55%; margin-top: 0; }
    .sch_simple_input { width: 100%; font-size: 13px; padding-bottom: 5px; }
    .sch_simple_btn { top: 2px; }
    
    /* 2. 리스트 */
    .list_tbl { border-top: 0; }
    .list_tbl thead { display: none; }
    
    .list_tbl tbody tr {
        display: block;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
    }
    
    .list_tbl td {
        display: block;
        border: 0;
        padding: 0 !important;
    }
    
    .td_chk, .td_num { display: none !important; }

    .td_subject { margin-bottom: 8px; }
    .td_subject a {
        font-size: 15px;
        font-weight: bold;
        line-height: 1.4;
        white-space: normal;
    }
    
    .td_date {
        text-align: left;
        color: #999;
        font-size: 12px;
    }

    /* 3. 버튼 및 기타 */
    .list_btn_wrap { text-align: center; }
    .btn_action { width: 30%; margin: 0 1%; font-size: 12px; padding: 0; }
    
    #bo_v_nav { flex-wrap: wrap; justify-content: center; }
    #bo_v_nav > div { width: 100% !important; text-align: center !important; margin-bottom: 10px; }
    .nav_btn { display: none; } 
    .btn_list_oval { width: 100%; box-sizing: border-box; }
}