/* [LDH 26.09.16] event_multi 테마 제외 입력폼 반응형 css */

/* 이 파일은 각 페이지 body 최하단에서 로드되어 default.css / 스킨 board.css / sub.css 를
   !important 없이 이기는 범용 레이어다. 규칙은 페이지 스코프 없이 범용으로 작성한다.
   브레이크포인트 사다리 : 1366 → 1280 → 1024(구조 전환) → 600 → 480 */


/* ===================================================================
   공통 유틸리티 (브레이크포인트 무관)
   =================================================================== */

/* tab */
.tabArea a {line-height: 1.2; height: 53px; display: flex; align-items: center; justify-content: center; word-break: keep-all; padding: 4px;}

/* content */
.noticeBox {word-break: keep-all;}
.viewHeadBox {word-break: keep-all;}
.space_t {word-break: keep-all;}

.agreeBox.type02 table th,
.agreeBox.type02 table td {word-break: keep-all;}

/* table - 열 너비 (colgroup 이 살아있는 1025px 이상에서만 유효) */
.widcol_160 {width: 160px;}
.widcol_160_cont {width: calc((100% - 320px) / 2);}
.widcol_160_cont_col3 {width: calc((100% - 480px) / 3);}

/* table - 입력 요소 고정 너비 */
.fSize_fix_200 {width: 200px;}
.fSize_fix_250 {width: 250px;}

/* table - 셀 안 줄바꿈 */
.writeForm td, .writeForm th {word-break: keep-all;}
.writeForm th {line-height: 1.2;}

/* table - 입력 요소 래퍼 (느슨한 인라인 노드를 flex 로 묶는다) */
.tbl_num_wrap {display: flex; align-items: center; gap: 2px;}
.tbl_email_wrap {display: flex; flex-wrap: wrap; align-items: center; gap: 4px;}

/* password - 비밀번호 박스 공통 반응형 레이어.
   박스마다 바깥 여백이 제각각이라 .style2 같은 변형으로 마진만 갈아끼운다. */
.passswordBox_res {max-width: 700px; width: 100%; margin: 200px auto 100px;}
.passswordBox_res.style2 {margin: 200px auto 0;}

/* button - 보기 화면 하단 버튼 줄 */
.btnArea .btn_list {display: flex; gap: 10px; justify-content: center;}
.btnArea .btn_list a {width: 150px; display: block;}
.btnArea .btn_list .btn {float: none; margin: 0; width: 100%; min-width: auto;}

/* 게시판 리스트 - 온라인상담 (PC 기본 숨김) */
.counsel_mo_lock,
.counsel_mo_info {display: none;}


/* ===================================================================
   반응형
   =================================================================== */

@media screen and (max-width: 1366px) {
  /* table */
  .widcol_160.col3 {width: 110px;}
}

@media screen and (max-width: 1280px) {
  /* table */
  .writeForm {table-layout: fixed;}
  .writeForm td, .writeForm th {padding: 12px;}

  /* 인라인 style="width:NNNpx" 를 지우지 않고 제압한다 */
  .writeForm td input[type="text"] {width: 100%!important;}

  /* 공간이 넉넉해 굳이 100% 로 늘릴 필요가 없는 입력칸은 폭을 유지한다 */
  .writeForm td input.fSize_fix_250 {width: 250px!important;}
  .writeForm td input[type="text"].number.single_col {width: 100px!important;}
  .writeForm td .tbl_email_wrap input[type="text"] {width: 250px!important;}
}


/***** 반응형 분기 *****/

@media screen and (max-width: 1024px) {
  /* container */
  #board_content {margin: 50px auto 50px;}

  /* table - colgroup 을 버리고 tr 을 2열 그리드로 재구성한다 */
  .writeForm colgroup {display: none;}
  .writeForm tr {display: grid; width: 100%; grid-template-columns: 160px 1fr;}
  .writeForm tr > td:only-child {grid-column: 1 / -1;}
  .writeForm th {display: flex; align-items: center; font-size: 14px;}

  .writeForm td {font-size: 14px;}
  .writeForm td * {font-size: 14px;}
  .writeForm td select {width: 100%; background-position: right center!important;}
  .writeForm td textarea {width: 100%; box-sizing: border-box;}
  .writeForm td input[type="password"] {width: 100%!important;}
  /* 짧은 입력칸은 100% 로 풀되 상한을 둔다. 칼럼이 넓은 태블릿에서 과하게 늘어나는 것을 막는다.
     칼럼이 상한보다 좁아지는 폰 폭에서는 자연히 무효가 되므로 따로 풀어줄 필요가 없다 */
  .writeForm td input.fSize_fix_250 {width: 100%!important;}

  /* 입력폼 - 연락처 3분할 */
  .writeForm td select.number {width: 100%; min-width: 82px; padding-right: 22px;}
  .writeForm td input[type="text"].number {width: 100%!important;}
  .writeForm td input[type="text"].number.single_col {width: 100%!important; min-width: 0;}
  /* 래퍼 안에서는 3분할이 한 줄을 나눠 쓰고 수신동의 줄만 다음 줄로 내려간다.
     wrap 은 여기서만 켠다 — PC 는 한 줄을 유지해야 하기 때문이다 */
  .tbl_num_wrap {flex-wrap: wrap;}
  .writeForm td .tbl_num_wrap select.number {flex: 0 0 82px; width: 82px!important; min-width: 0;}
  .writeForm td .tbl_num_wrap input[type="text"].number {flex: 1 1 0; width: 100%!important; min-width: 0;}
  .tbl_num_wrap .space_t,
  .tbl_num_wrap .boardTxt {flex: 1 1 100%; padding-left: 0;}

  /* 입력폼 - 이메일 (입력 @ 입력 / 도메인 / 수신동의)
     래퍼가 없는 페이지도 있어 id 로도 잡는다 */
  .writeForm td #mh_email1,
  .writeForm td #mh_email2,
  .writeForm td #strEmail1,
  .writeForm td #strEmail2 {width: calc((100% - 30px) / 2)!important;}
  .writeForm td #mh_email3,
  .writeForm td #strEmail3 {width: 100%; margin-top: 4px;}
  .tbl_email_wrap select,
  .tbl_email_wrap .boardTxt {flex: 1 1 100%;}

  /* 입력폼 - DB 안내행 인라인 여백 */
  .writeForm td[style*="padding-right"] {padding-right: 12px!important;}

  /* 개인정보 동의 - 스크롤 박스형 */
  .agreeBox.type01 {margin: 20px 0; padding: 20px;}
  .agreeBox.type01 h2 {font-size: 14px; line-height: 40px;}
  .agreeBox.type01 .scroll_cont {padding: 15px 20px; font-size: 13px; line-height: 1.7; word-break: keep-all;}
  .agreeBox.type01 .agreeChk {font-size: 13px; word-break: keep-all;}

  /* 비밀번호 입력 - 바깥 여백은 .passswordBox_res, 내부 요소는 박스별 클래스가 맡는다 */
  .passswordBox_res {margin: 160px auto 100px; padding: 90px 25px 25px;}
  .passswordBox_res.style2 {margin: 160px auto 0;}

  .passwordBox .timg {left: 50%; transform: translateX(-50%);}
  .passwordBox strong {font-size: 19px;}
  .passwordBox > p {font-size: 14px; word-break: keep-all;}
  .passwordBox input[type="password"] {width: 100%;}

  /* 게시판 보기 */
  .boardView .top {padding: 15px 10px;}
  .boardView .subject {float: none; width: 100%; font-size: 15px; word-break: keep-all;}
  .boardView .bInfo {position: static; float: none; max-width: 100%; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px;}
  .boardView .bInfo li {float: none; padding: 0 8px; font-size: 13px;}
  .boardView .bInfo li:first-child {padding-left: 0;}
  .boardView .bInfo .btn.small {width: auto; min-width: 62px; height: 24px; font-size: 12px; line-height: 24px;}
  .boardView .contents {padding: 20px;}
  #replay_cont {padding: 20px;}

  /* 파일첨부 */
  .file_upload_box {flex-wrap: wrap;}
  .upload-name {width: 100%!important;}
  #bf_file_remove {transform: none!important;}

  /* reCAPTCHA */
  .btnArea .g-recaptcha {width: 244px!important; margin-right: 0!important; transform: scale(0.8); transform-origin: center top;}

  /* 게시판 리스트 - 온라인상담 : 표를 카드형으로 전환 */
  table.counsel_boardList colgroup,
  table.counsel_boardList thead {display: none;}
  table.counsel_boardList tbody,
  table.counsel_boardList tr,
  table.counsel_boardList td {display: block;}
  table.counsel_boardList tr {position: relative; padding: 12px 80px 12px 0; border-bottom: 1px solid #cbcbcb;}
  table.counsel_boardList td {padding: 0; border: 0; text-align: left;}

  table.counsel_boardList td.td_chk,
  table.counsel_boardList td.td_num,
  table.counsel_boardList td.td_secret,
  table.counsel_boardList td.td_name,
  table.counsel_boardList td.td_date {display: none;}

  table.counsel_boardList td.td_subject {font-size: 14px; line-height: 1.5;}
  table.counsel_boardList td.td_subject > a {display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
  .counsel_mo_lock {display: inline;}
  .counsel_mo_lock img {width: 13px; vertical-align: -1px;}

  .counsel_mo_info {display: flex; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: #999;}
  .counsel_mo_info li {position: relative; padding: 0 8px;}
  .counsel_mo_info li:first-child {padding-left: 0;}
  .counsel_mo_info li + li:before {position: absolute; top: 50%; left: 0; width: 1px; height: 10px; margin-top: -5px; background: #ccc; content: '';}

  table.counsel_boardList td.td_answer {position: absolute; top: 50%; right: 0; margin-top: -13px;}
  table.counsel_boardList td.td_answer .btn.small {width: auto; min-width: 66px; height: 26px; font-size: 12px; line-height: 26px;}

  /* 게시판 버튼 / 페이징 / 검색 - 온라인상담 */
  .counsel_btnArea p.right {float: none; text-align: right;}
  .counsel_mo_hide {display: none;}

  .counsel_pageArea {margin: 30px 0;}
  .counsel_pageArea .pagingList {display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;}
  .counsel_pageArea .pagingList > span,
  .counsel_pageArea .pagingList > a {float: none; margin: 0; order: 2;}
  .counsel_pageArea .pagingList img {width: 32px; height: 32px;}
  .counsel_pageArea .paging {display: flex; flex-wrap: wrap; justify-content: center; float: none; gap: 6px; order: 1; flex: 1 1 100%;}
  .counsel_pageArea .paging li {float: none; width: 32px; height: 32px; margin: 0;}
  .counsel_pageArea .paging li a {height: 32px; font-size: 14px; line-height: 30px;}

  #searchBox.counsel_searchBox {padding: 20px;}
  #searchBox.counsel_searchBox form {display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%;}
  #searchBox.counsel_searchBox select,
  #searchBox.counsel_searchBox input[type="text"],
  #searchBox.counsel_searchBox input[type="submit"] {float: none; margin: 0; height: 40px; font-size: 14px;}
  #searchBox.counsel_searchBox select,
  #searchBox.counsel_searchBox input[type="text"] {width: auto; flex: 1 1 140px; min-width: 0;}
  #searchBox.counsel_searchBox input[type="submit"] {flex: 0 0 auto; width: 100px;}
}


@media screen and (max-width: 600px) {
  /* tab */
  .tabArea a {font-size: 15px;}

  /* content */
  .noticeBox {padding: 20px;}

  .agreeBox.type02 {padding: 20px;}
  .agreeBox.type02 table th, .agreeBox.type02 table td {font-size: 14px;}

  .viewHeadBox {padding: 15px 20px; font-size: 14px;}
  .viewHeadBox strong {padding-right: 10px; margin-right: 10px; font-size: 14px;}

  /* table */
  .writeForm tr {grid-template-columns: 130px 1fr;}
  .writeForm td, .writeForm th {padding: 10px;}

  /* 개인정보 동의 */
  .agreeBox.type01 .scroll_cont {max-height: 180px;}

  /* 게시판 보기 */
  .boardView .contents {padding: 15px;}

  /* 게시판 리스트 - 온라인상담 */
  table.counsel_boardList td.td_subject {font-size: 13px;}

  #searchBox.counsel_searchBox select {flex: 1 1 calc(50% - 3px);}
  #searchBox.counsel_searchBox input[type="text"] {flex: 1 1 calc(100% - 106px);}
}


@media screen and (max-width: 480px) {
  /* common */
  .title01 {font-size: 16px; margin: 20px 0 10px;}

  /* container */
  #board_content {margin: 20px auto 50px;}

  /* tab */
  .tabArea {margin-bottom: 20px;}
  .tabArea a {font-size: 13px; height: 40px;}

  /* content */
  .noticeBox {font-size: 14px; line-height: 1.6; margin: 10px 0 20px}

  .agreeBox.type02 {margin-bottom: 20px;}
  .agreeBox.type02 table td {padding: 5px;}
  .agreeBox.type02 p {font-size: 13px;}

  .viewHeadBox {margin-bottom: 20px;}

  /* table */
  .writeForm tr {grid-template-columns: 90px 1fr;}
  .writeForm th {font-size: 13px;}
  .writeForm td {font-size: 13px;}
  .writeForm td * {font-size: 13px;}

  /* 입력폼 - 연락처 / 이메일 */
  .writeForm td select.number {min-width: 74px; padding-right: 20px;}
  .writeForm td .tbl_num_wrap select.number {flex: 0 0 74px; width: 74px!important;}
  .writeForm td #mh_email1,
  .writeForm td #mh_email2,
  .writeForm td #strEmail1,
  .writeForm td #strEmail2 {width: calc((100% - 26px) / 2)!important;}

  /* 개인정보 동의 */
  .agreeBox.type01 {padding: 15px;}
  .agreeBox.type01 h2 {font-size: 13px; line-height: 36px;}
  .agreeBox.type01 .scroll_cont {padding: 12px 15px; font-size: 12px; max-height: 170px;}
  .agreeBox.type01 .agreeChk {font-size: 12px;}

  /* 비밀번호 입력 */
  .passswordBox_res {margin: 120px auto 50px; padding: 60px 15px 25px;}
  .passswordBox_res.style2 {margin: 120px auto 0;}

  .passwordBox .timg {width: 110px; top: -90px;}
  .passwordBox strong {font-size: 17px;}

  /* 게시판 보기 */
  .boardView .subject {font-size: 14px;}
  .boardView .bInfo li {font-size: 12px; padding: 0 6px;}
  .boardView .contents,
  #replay_cont {padding: 15px;}

  /* 버튼 / reCAPTCHA */
  input[type="submit"].btn,
  .btnArea .btn {min-width: 120px; font-size: 14px;}
  .btnArea {margin: 20px 0 30px;}
  .btnArea .btn_list {display: grid; grid-template-columns: repeat(2, 1fr);}
  .btnArea .btn_list a {width: 100%;}

  .btnArea .g-recaptcha {transform: scale(0.72);}

  /* 게시판 리스트 - 온라인상담 */
  table.counsel_boardList tr {padding: 10px 72px 10px 0;}
  table.counsel_boardList td.td_answer {margin-top: -12px;}
  table.counsel_boardList td.td_answer .btn.small {min-width: 60px; height: 24px; line-height: 24px;}
  .counsel_mo_info {font-size: 11px;}

  .counsel_pageArea .pagingList img {width: 28px; height: 28px;}
  .counsel_pageArea .paging li {width: 28px; height: 28px;}
  .counsel_pageArea .paging li a {height: 28px; font-size: 13px; line-height: 26px;}

  #searchBox.counsel_searchBox {padding: 15px;}
  #searchBox.counsel_searchBox select,
  #searchBox.counsel_searchBox input[type="text"],
  #searchBox.counsel_searchBox input[type="submit"] {height: 36px; font-size: 13px;}
  #searchBox.counsel_searchBox input[type="submit"] {width: 80px;}
  #searchBox.counsel_searchBox input[type="text"] {flex: 1 1 calc(100% - 86px);}
}
