@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --color-accent: #e6802c;
    --color-bg-input: #f7f7f7;
    --color-text: #222;
    --color-gray: #666;
    --color-border-shadow: rgba(0,0,0,.1);
    --font-main: 'Noto Sans KR', sans-serif;
    --radius: 10px;
}

/* ===========================
   공통 타이틀
   =========================== */
.main_tit { margin-bottom: 48px; }
.main_tit h4 {
    font-size: 14px; font-weight: 500; letter-spacing: 0.15em;
    color: var(--color-accent); margin-bottom: 12px; text-transform: uppercase;
}
.main_tit h3 {
    font-size: 36px; font-weight: 700; line-height: 1.3;
    color: var(--color-text); margin: 0 0 16px;
}
.main_tit h3 font { color: var(--color-accent); }
.main_tit p {
    margin-top: 20px; font-size: 16px; line-height: 1.8; color: var(--color-gray);
}

/* ===========================
   WRITE PAGE
   =========================== */
#bo_w {
    font-family: var(--font-main);
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 200px;
}

/* 그누보드 기본 write_div 숨김 */
#bo_w > h2.sound_only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}
#bo_w .write_div:not(.inq-custom-wrap) { display: none !important; }
#bo_w .btn_confirm.write_div { display: none !important; }

/* 커스텀 래퍼: 좌우 2단 */
.inq-custom-wrap {
    display: flex !important;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
}

.inq-left { flex: 1; min-width: 260px; max-width: 380px; }
.inq-right { width: 50%; min-width: 300px; }

/* ol 입력 필드 */
.inq-right ol { list-style: none; margin: 0; padding: 0; }
.inq-right ol li { margin-bottom: 0; }

.inq-right input[type="text"],
.inq-right input[type="email"],
.inq-right input[type="tel"],
.inq-right input[type="password"],
.inq-right textarea,
.inq-right select {
    background: var(--color-bg-input);
    width: 100%;
    height: 70px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    border: 0;
    box-shadow: 0 0 0 2px var(--color-border-shadow);
    padding: 0 20px;
    font-size: 16px;
    font-family: var(--font-main);
    color: var(--color-text);
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.inq-right input:focus,
.inq-right textarea:focus,
.inq-right select:focus {
    box-shadow: 0 0 0 2px var(--color-accent);
}
.inq-right input::placeholder,
.inq-right textarea::placeholder { color: #aaa; }

.inq-right textarea {
    height: 160px; padding: 20px; resize: none; line-height: 1.7;
}
.inq-right select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-color: var(--color-bg-input);
}

/* 개인정보 동의 */
.inq-right .agree-wrap { margin: 10px 0 20px; }
.inq-right .agree-wrap label {
    font-size: 18px; color: var(--color-text); cursor: pointer;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.inq-right .agree-wrap label input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--color-accent); cursor: pointer; flex-shrink: 0;
}
.inq-right .agree-wrap label a {
    color: var(--color-gray); font-size: 15px; text-decoration: underline;
}

/* 제출 버튼 */
.inq-right .inq-btn-submit {
    margin-top: 40px;
    background: var(--color-accent);
    width: 220px; height: 70px; line-height: 70px;
    border-radius: var(--radius); border: 0;
    font-size: 24px; font-family: var(--font-main); font-weight: 700;
    text-align: center; color: #fff; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: block;
}
.inq-right .inq-btn-submit:hover { background: #d4721f; transform: translateY(-2px); }
.inq-right .inq-btn-submit:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* ===========================
   LIST PAGE
   =========================== */
#bo_list {
    font-family: var(--font-main);
    max-width: 1200px; margin: 0 auto;
    padding: 80px 40px 120px;
}

/* 그누보드 기본 요소 숨김 */
#bo_list #bo_btn_top,
#bo_list .bo_fx,
#bo_list .tbl_head01,
#bo_list #bo_cate,
#bo_list .bo_sch_wrap { display: none !important; }

/* 목록 헤더 */
.inq-list-header {
    display: flex; align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-text);
    flex-wrap: wrap; gap: 16px;
}
.inq-list-header .header-left .list-label {
    display: block; font-size: 13px; font-weight: 500;
    letter-spacing: 0.15em; color: var(--color-accent);
    text-transform: uppercase; margin-bottom: 8px;
}
.inq-list-header .header-left h2 {
    font-size: 28px; font-weight: 700; color: var(--color-text); margin: 0;
}
.inq-list-header .header-right {
    display: flex; align-items: center; gap: 16px;
}
.inq-list-count { font-size: 13px; color: var(--color-gray); }

.inq-btn-write {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--color-accent); color: #fff;
    font-family: var(--font-main); font-size: 14px; font-weight: 500;
    padding: 12px 26px; border-radius: var(--radius); text-decoration: none;
    transition: background 0.2s;
}
.inq-btn-write:hover { background: #d4721f; color: #fff; text-decoration: none; }

/* 테이블 */
.inq-table { width: 100%; border-collapse: collapse; }
.inq-table thead tr { border-bottom: 1px solid #e0e0e0; }
.inq-table thead th {
    font-size: 12px; letter-spacing: 0.1em; font-weight: 500;
    color: var(--color-gray); padding: 16px 12px; text-align: left;
}
.inq-table thead th.center { text-align: center; }
.inq-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
.inq-table tbody tr:hover { background: #fdf8f3; }
.inq-table tbody td {
    padding: 20px 12px; font-size: 14px; color: var(--color-text); vertical-align: middle;
}
.inq-table .td-num { width: 70px; text-align: center; color: var(--color-gray); font-size: 13px; }
.inq-table .td-subject a {
    color: var(--color-text); text-decoration: none; font-weight: 500;
    display: flex; align-items: center; gap: 8px; transition: color 0.15s;
}
.inq-table .td-subject a:hover { color: var(--color-accent); }
.notice-badge {
    font-size: 11px; background: var(--color-accent); color: #fff;
    padding: 2px 8px; border-radius: 4px; letter-spacing: 0.05em; flex-shrink: 0;
}
.cmt-count { font-size: 12px; color: var(--color-accent); font-weight: 400; }
.new-dot {
    display: inline-block; width: 6px; height: 6px;
    background: var(--color-accent); border-radius: 50%; flex-shrink: 0;
}
.inq-table .td-center { width: 110px; text-align: center; color: var(--color-gray); font-size: 13px; }
.inq-table-empty { text-align: center; padding: 80px 0; color: var(--color-gray); font-size: 14px; }

/* 페이지네이션 */
#bo_list .pg_wrap { text-align: center; margin: 36px 0; }
#bo_list .pg_wrap a,
#bo_list .pg_wrap strong {
    display: inline-block; min-width: 36px; height: 36px; line-height: 36px;
    text-align: center; font-size: 13px; color: var(--color-gray);
    text-decoration: none; border-radius: var(--radius); margin: 0 2px;
    transition: all 0.15s; padding: 0 6px;
}
#bo_list .pg_wrap strong { background: var(--color-accent); color: #fff; font-weight: 700; }
#bo_list .pg_wrap a:hover { background: #f7f7f7; color: var(--color-text); }

/* 검색 */
.inq-search-area { display: flex; justify-content: center; margin-top: 32px; }
.inq-search-form {
    display: flex; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 0 0 2px var(--color-border-shadow); background: #fff;
}
.inq-search-form select {
    border: none; border-right: 1px solid #e8e8e8; padding: 0 14px;
    font-family: var(--font-main); font-size: 13px; color: var(--color-text);
    background: #fff; outline: none; cursor: pointer; height: 46px;
}
.inq-search-form input[type="text"] {
    border: none; padding: 0 16px; font-family: var(--font-main);
    font-size: 13px; color: var(--color-text); width: 220px; outline: none; height: 46px;
}
.inq-search-form button {
    background: var(--color-accent); color: #fff; border: none;
    padding: 0 18px; cursor: pointer; font-size: 16px; transition: background 0.15s; height: 46px;
}
.inq-search-form button:hover { background: #d4721f; }

/* ===========================
   VIEW PAGE
   =========================== */
#bo_v {
    font-family: var(--font-main); max-width: 900px;
    margin: 0 auto; padding: 80px 40px 120px; background: transparent;
}

/* 그누보드 기본 뷰 요소 숨김 */
#bo_v header,
#bo_v #bo_v_info,
#bo_v #bo_v_top,
#bo_v #bo_v_act,
#bo_v #bo_v_share,
#bo_v #bo_v_img,
#bo_v #bo_v_con,
#bo_v .bo_v_nb,
#bo_v #bo_v_atc_title { display: none !important; }

/* 커스텀 뷰 */
.inq-view-label {
    display: inline-block; font-size: 13px; font-weight: 500;
    letter-spacing: 0.15em; color: var(--color-accent); text-transform: uppercase; margin-bottom: 14px;
}
.inq-view-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700;
    color: var(--color-text); margin: 0 0 24px; line-height: 1.35;
}
.inq-view-meta {
    display: flex; flex-wrap: wrap; gap: 20px;
    padding: 18px 0;
    border-top: 2px solid var(--color-text);
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 40px;
}
.inq-view-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-gray); }
.inq-view-meta-item .m-label {
    font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: #bbb;
}

/* 필드 카드 */
.inq-view-body { margin-bottom: 48px; }
.inq-view-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e8e8e8;
}
.inq-view-field { padding: 22px 4px; border-bottom: 1px solid #f0f0f0; }
.inq-view-field.full { grid-column: 1 / -1; }
.inq-view-field .fld-label {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: #bbb; font-weight: 500; margin-bottom: 10px;
}
.inq-view-field .fld-value { font-size: 15px; color: var(--color-text); line-height: 1.75; word-break: break-all; }

/* 첨부파일 */
.inq-view-files {
    margin-bottom: 40px; padding: 24px;
    background: var(--color-bg-input); border-radius: var(--radius);
}
.inq-view-files p {
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #bbb; font-weight: 500; margin: 0 0 14px;
}
.inq-view-files ul { list-style: none; margin: 0; padding: 0; }
.inq-view-files li { margin-bottom: 8px; }
.inq-view-files a {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
    color: var(--color-text); text-decoration: none; padding: 8px 14px;
    border: 1px solid #e0e0e0; border-radius: 6px; background: #fff;
    transition: border-color 0.15s, color 0.15s;
}
.inq-view-files a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.inq-view-files .file-info { display: block; font-size: 11px; color: #bbb; margin-top: 4px; }

/* 뷰 액션 버튼 */
.inq-view-actions {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 32px; border-top: 1px solid #e8e8e8; flex-wrap: wrap; gap: 12px;
}
.inq-btn-list {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-main); font-size: 14px; color: var(--color-gray);
    text-decoration: none; padding: 10px 20px;
    border: 1px solid #e0e0e0; border-radius: var(--radius); transition: all 0.15s;
}
.inq-btn-list:hover { border-color: var(--color-text); color: var(--color-text); text-decoration: none; }

.inq-view-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.inq-btn-action {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-main); font-size: 13px; font-weight: 500;
    padding: 10px 20px; border: 1px solid #e0e0e0; border-radius: var(--radius);
    background: #fff; color: var(--color-gray); text-decoration: none; cursor: pointer;
    transition: all 0.15s;
}
.inq-btn-action:hover { border-color: var(--color-text); color: var(--color-text); text-decoration: none; }
.inq-btn-action.danger { color: #c0392b; border-color: #e0b3b0; }
.inq-btn-action.danger:hover { background: #fff5f5; border-color: #c0392b; }
.inq-btn-action.primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.inq-btn-action.primary:hover { background: #d4721f; border-color: #d4721f; color: #fff; }

/* 이전/다음글 */
.inq-view-nb { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid #e8e8e8; }
.inq-view-nb li {
    display: flex; align-items: center; gap: 16px;
    padding: 15px 4px; border-bottom: 1px solid #f0f0f0; font-size: 14px;
}
.inq-view-nb li .nb-dir {
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #bbb; width: 66px; flex-shrink: 0;
}
.inq-view-nb li a {
    flex: 1; color: var(--color-text); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inq-view-nb li a:hover { color: var(--color-accent); }
.inq-view-nb li .nb-date { font-size: 12px; color: #bbb; flex-shrink: 0; }

/* 댓글 (관리자 답변) */
.cmt_btn {
    font-family: var(--font-main); font-size: 14px; font-weight: 700;
    color: var(--color-text); border: none; border-bottom: 1px solid #e8e8e8;
    background: transparent; padding: 16px 0; margin: 32px 0 0;
    width: 100%; text-align: left; cursor: pointer;
}
.cmt_btn .total { color: var(--color-accent); }
.cmt_btn span.cmt_more { display: none; }

/* ===========================
   반응형
   =========================== */
@media (max-width: 768px) {
    #bo_w { padding: 60px 20px 80px; }
    #bo_list { padding: 50px 20px 80px; }
    #bo_v { padding: 50px 20px 80px; }

    .inq-custom-wrap { flex-direction: column; gap: 30px; }
    .inq-left { max-width: 100%; }
    .inq-right { width: 100%; }
    .inq-right input[type="text"],
    .inq-right input[type="email"],
    .inq-right input[type="tel"],
    .inq-right input[type="password"],
    .inq-right select { height: 54px; font-size: 14px; margin-bottom: 16px; }
    .inq-right .agree-wrap label { font-size: 14px; }
    .inq-right .inq-btn-submit { width: 100%; font-size: 18px; height: 58px; line-height: 58px; margin-top: 24px; }

    .inq-list-header { flex-direction: column; align-items: flex-start; }
    .inq-view-grid { grid-template-columns: 1fr; }
    .inq-view-field.full { grid-column: 1; }
    .inq-view-actions { flex-direction: column; align-items: stretch; }
}

/* ===========================
   LIST - 관리자 체크박스 & 관리 버튼
   =========================== */

/* 커스텀 체크박스 */
.inq-chk { position:absolute; opacity:0; width:0; height:0; }
.inq-chk-label {
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.inq-chk-box {
    display: inline-block; width: 16px; height: 16px;
    border: 1.5px solid #ccc; border-radius: 3px; background: #fff;
    transition: all 0.15s; flex-shrink: 0;
    position: relative;
}
.inq-chk:checked + .inq-chk-box {
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.inq-chk:checked + .inq-chk-box::after {
    content: '';
    position: absolute; top: 2px; left: 5px;
    width: 4px; height: 7px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg);
}

/* 체크박스 td */
.td-chk { width: 40px; text-align: center; }

/* 체크된 행 하이라이트 */
.inq-table tbody tr:has(.inq-chk:checked) {
    background: #fff8f2;
}

/* 관리자 버튼 */
.inq-admin-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-main); font-size: 13px; color: var(--color-gray);
    text-decoration: none; padding: 10px 16px;
    border: 1px solid #e0e0e0; border-radius: var(--radius);
    background: #fff; transition: all 0.15s;
}
.inq-admin-btn:hover {
    border-color: var(--color-accent); color: var(--color-accent);
    text-decoration: none;
}

/* 점 3개 더보기 버튼 & 드롭다운 */
.inq-admin-more-wrap { position: relative; }
.inq-admin-more-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: #fff; border: 1px solid #e0e0e0; border-radius: var(--radius);
    cursor: pointer; color: var(--color-gray); transition: all 0.15s;
}
.inq-admin-more-btn:hover {
    border-color: var(--color-accent); color: var(--color-accent);
}
.inq-admin-more-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1px solid #e0e0e0; border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    list-style: none; margin: 0; padding: 6px 0;
    min-width: 120px; z-index: 999;
}
.inq-admin-more-menu.is-open { display: block; }
.inq-admin-more-menu::before {
    content: ''; position: absolute; top: -6px; right: 12px;
    width: 10px; height: 10px; background: #fff;
    border-left: 1px solid #e0e0e0; border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}
.inq-admin-more-menu li { padding: 0; }
.inq-admin-more-menu li button {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 16px;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-main); font-size: 13px; color: var(--color-gray);
    text-align: left; transition: background 0.1s, color 0.1s;
}
.inq-admin-more-menu li button:hover {
    background: #fdf8f3; color: var(--color-accent);
}

/* 공지 행 스타일 */
.inq-table tbody tr.is-notice td { background: #fffbf7; }
.inq-table tbody tr.is-notice .td-subject a { font-weight: 700; }

/* 카테고리 태그 */
.inq-cate-tag {
    display: inline-block; font-size: 11px;
    background: #fff3e6; color: var(--color-accent);
    padding: 2px 8px; border-radius: 4px;
    text-decoration: none; margin-right: 6px; flex-shrink: 0;
}
.inq-cate-tag:hover { text-decoration: none; background: #ffe8cc; }

@media (max-width: 768px) {
    .inq-admin-btn span { display: none; }
}