@charset "utf-8";

/* ============================================================================
   문의하기 스킨
   사이트 CSS(common/layout/sub) 위에 얹히므로 색·폰트는 사이트 변수를 따른다.
   ============================================================================ */

:root {
  --inq-navy: #002a71;
  --inq-line: #e5e5e5;
  --inq-field: #f3f3f3;
  --inq-req: #e60012;
}

#inq_w {
  position: relative;
  font-family: var(--f-main);
  color: #222;
  width: 75%;
  margin-left: auto;
}

/* ── 입금계좌 안내 (정적 문구) ─────────────────────────── */
.inq_bank {
  display: inline-block;
  float: right;
  padding: 12px 24px;
  background: var(--inq-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.inq_req_desc {
  clear: both;
  padding-top: 12px;
  text-align: right;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin-bottom: 30px;
  border-top: 2px solid var(--inq-navy);
}

.req {
  color: var(--inq-req);
  font-weight: 700;
}

/* ── 행 : 라벨 + 입력 ──────────────────────────────────── */
.inq_row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 0;
}

.inq_lb {
  flex: 0 0 120px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

.inq_fd {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── 입력 요소 공통 ────────────────────────────────────── */
.inq_input,
.inq_select,
.inq_textarea {
  background: var(--inq-field);
  border: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  border-radius: 0;
}

.inq_input:focus,
.inq_select:focus,
.inq_textarea:focus {
  outline: 2px solid var(--inq-navy);
  outline-offset: -2px;
}

.inq_input.full {
  width: 100%;
}

.inq_input.w_name {
  width: 320px;
  max-width: 100%;
}

.inq_select {
  min-width: 110px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--inq-line);
  background-color: #fff;
}

.inq_textarea {
  width: 100%;
  height: 260px;
  line-height: 1.6;
  resize: vertical;
}

/* ── 라디오 그룹 ───────────────────────────────────────── */
.inq_radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  padding-top: 8px;
}

.inq_radio li {
  flex: 0 0 33.3333%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inq_radio input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--inq-navy);
  flex: 0 0 auto;
}

.inq_radio label {
  font-size: 15px;
  cursor: pointer;
}

/* ── E-mail / 전화번호 ─────────────────────────────────── */
.inq_email,
.inq_tel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inq_email .inq_input {
  width: 220px;
}

.inq_email .at,
.inq_tel .dash {
  color: #666;
}

.inq_tel .inq_input {
  width: 140px;
}

/* ── 첨부파일 ──────────────────────────────────────────── */
.inq_file {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sr_only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.btn_upload {
  flex: 0 0 auto;
  padding: 12px 26px;
  background: #767676;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.btn_upload:hover {
  background: #5c5c5c;
}

/* ── 보안코드 ──────────────────────────────────────────── */
.inq_captcha {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inq_captcha input[type="text"] {
  background: var(--inq-field);
  border: 0;
  padding: 12px 14px;
  font-size: 15px;
}

/* ── 개인정보 동의 ─────────────────────────────────────── */
.inq_agree {
  margin-top: 40px;
  border-top: 1px solid var(--inq-navy);
  border-bottom: 1px solid var(--inq-navy);
  padding: 20px 4px;
}

.inq_agree_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.agree_chk {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agree_chk input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--inq-navy);
}

.agree_chk label {
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.agree_more {
  background: none;
  border: 0;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
}

.agree_more i {
  transition: transform .25s;
  margin-left: 4px;
}

.agree_more.on i {
  transform: rotate(180deg);
}

.inq_agree_body {
  margin-top: 18px;
  padding: 20px;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.inq_agree_body dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 0;
}

.inq_agree_body dt {
  font-weight: 700;
  color: #333;
}

.agree_note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
  color: #888;
}

/* ── 제출 버튼 ─────────────────────────────────────────── */
.inq_btn {
  margin-top: 36px;
}

.btn_inq_submit {
  min-width: 270px;
  padding: 22px 40px;
  background: var(--inq-navy);
  color: #fff;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .25s;
}

.btn_inq_submit:hover {
  background: #001d4f;
}

.btn_inq_submit:disabled {
  background: #999;
  cursor: default;
}

/* ============================================================================
   접수 완료 화면 (방문자가 목록 주소로 들어왔을 때)
   ============================================================================ */
#inq_done {
  padding: 60px 0 20px;
  text-align: center;
}

.inq_done_box i {
  font-size: 56px;
  color: var(--inq-navy);
}

.inq_done_box h3 {
  margin: 20px 0 14px;
  font-size: 26px;
  font-weight: 800;
}

.inq_done_box p {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}

.inq_done_btn {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn_line,
.btn_fill {
  display: inline-block;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: 600;
}

.btn_line {
  border: 1px solid #ccc;
  color: #333;
}

.btn_line:hover {
  border-color: var(--inq-navy);
  color: var(--inq-navy);
}

.btn_fill {
  background: var(--inq-navy);
  color: #fff;
}

.btn_fill:hover {
  background: #001d4f;
}

/* ============================================================================
   관리자 목록 / 상세
   ============================================================================ */
.inq_list_head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.inq_list_head h3 {
  font-size: 20px;
  font-weight: 800;
}

.inq_list_head .cnt {
  color: var(--inq-navy);
}

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

.inq_table {
  width: 100%;
  border-top: 2px solid var(--inq-navy);
  border-collapse: collapse;
}

.inq_table th,
.inq_table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--inq-line);
  font-size: 15px;
}

.inq_table th {
  background: #f7f8fa;
  font-weight: 700;
}

.inq_table td.c {
  text-align: center;
}

.inq_table td.subj a {
  font-weight: 600;
}

.inq_table td.empty {
  text-align: center;
  padding: 50px 0;
  color: #888;
}

.inq_paging {
  margin-top: 24px;
  text-align: center;
}

.inq_v_head {
  border-top: 2px solid var(--inq-navy);
  border-bottom: 1px solid var(--inq-line);
  padding: 20px 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.inq_v_head h3 {
  font-size: 20px;
  font-weight: 800;
}

.inq_v_head .date {
  font-size: 14px;
  color: #888;
  white-space: nowrap;
}

.inq_v_info {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--inq-line);
}

.inq_v_info dt,
.inq_v_info dd {
  padding: 12px 8px;
  font-size: 15px;
  border-bottom: 1px solid #f2f2f2;
}

.inq_v_info dt {
  font-weight: 700;
  background: #fafafa;
}

.inq_v_con {
  padding: 30px 4px;
  min-height: 180px;
  font-size: 16px;
  line-height: 1.75;
  word-break: break-all;
}

.inq_v_file {
  padding: 16px 4px;
  border-top: 1px solid var(--inq-line);
  font-size: 15px;
}

.inq_v_file strong {
  margin-right: 10px;
}

.inq_v_file span {
  color: #999;
}

.inq_v_btn {
  margin-top: 30px;
  display: flex;
  gap: 8px;
}

/* ============================================================================
   반응형
   ============================================================================ */
@media (max-width: 1024px) {

  .inq_lb {
    flex-basis: 100px;
    font-size: 15px;
  }

  .inq_radio li {
    flex-basis: 50%;
  }
}

@media (max-width: 768px) {

  .inq_bank {
    float: none;
    display: block;
    text-align: center;
    font-size: 14px;
    padding: 10px 14px;
  }

  .inq_req_desc {
    margin-bottom: 20px;
    font-size: 13px;
  }

  /* 라벨을 위로 올려 세로 배치 */
  .inq_row {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .inq_lb {
    border-right: 0;
    padding: 0 0 8px;
    font-size: 15px;
  }

  .inq_radio {
    padding-top: 0;
  }

  .inq_radio li {
    flex-basis: 50%;
  }

  .inq_input.w_name,
  .inq_email .inq_input,
  .inq_tel .inq_input {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .inq_email .inq_select {
    flex: 1 1 100%;
    min-width: 0;
  }

  .inq_textarea {
    height: 200px;
  }

  .inq_file {
    flex-wrap: wrap;
  }

  .inq_file .inq_input.full {
    flex: 1 1 100%;
  }

  .inq_agree_head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .agree_chk label {
    font-size: 15px;
  }

  .inq_agree_body dl {
    grid-template-columns: 100px 1fr;
  }

  .btn_inq_submit {
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    font-size: 16px;
  }

  .inq_done_box h3 {
    font-size: 20px;
  }

  .inq_done_box p {
    font-size: 15px;
  }

  /* 관리자 목록 : 좁은 화면에서 가로 스크롤 */
  #inq_list {
    overflow-x: auto;
  }

  .inq_table {
    min-width: 720px;
  }

  .inq_v_info {
    grid-template-columns: 90px 1fr;
  }
}

@media (max-width: 480px) {

  .inq_radio li {
    flex-basis: 100%;
  }

  .inq_email,
  .inq_tel {
    gap: 6px;
  }

  .inq_email .at,
  .inq_tel .dash {
    font-size: 13px;
  }
}