/* ============================================================
   [ cs.css ] 고객센터 (문의, 공지사항 등) 전용 스타일
   ============================================================ */

/* ── 1. 인트로 여백 ── */
.cs-intro { padding: 60px 0 60px; }
.cs-form-sec { padding: 0 0 160px; }

/* ── 2. 문의 폼 (Table Layout) ── */
.inquiry-form { width: 100%; max-width: 1200px; margin: 0 auto; }

.iq-table { 
  border-top: 2px solid #222; 
  border-bottom: 1px solid #ddd; 
}

.iq-row { 
  display: flex; 
  border-bottom: 1px solid #eee; 
}

/* 좌측 라벨 (시안의 옅은 회색 배경 적용) */
.iq-label { 
  flex: 0 0 220px; 
  background: #f9f9f9; /* 아주 옅은 회색 */
  padding: 24px 30px; 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: #111; 
  display: flex; 
  align-items: center; 
}

/* 우측 입력 영역 */
.iq-input { 
  flex: 1; 
  padding: 20px 30px; 
  background: #fff; 
  display: flex; 
  align-items: center; 
}

/* ── 3. 폼 컨트롤 요소들 (Input, Select, Textarea) ── */
.form-input, .form-select { 
  height: 46px; 
  border: 1px solid #ddd; 
  border-radius: 4px; 
  padding: 0 16px; 
  font-family: var(--font-kr); 
  font-size: 0.95rem; 
  color: #333; 
  transition: border-color 0.3s; 
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #333; }
.form-select { cursor: pointer; }

/* 가로 너비 조절용 클래스 */
.width-xs { width: 100px; text-align: center; }
.width-sm { width: 180px; }
.width-md { width: 300px; }
.width-full { width: 100%; }

/* 다중 입력 레이아웃 */
.flex-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flex-column { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; width: 100%; }
.dash { color: #888; }
.at { color: #888; font-weight: 600; margin: 0 4px; }

/* 라디오 버튼 그룹 */
.radio-group { display: flex; flex-wrap: wrap; gap: 24px; }
.form-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; color: #333; font-weight: 500; }
.form-radio input[type="radio"] { 
  width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--c-darkgray);
}

/* 텍스트 에어리어 (내용) */
.form-textarea { 
  width: 100%; 
  height: 240px; 
  border: 1px solid #ddd; 
  border-radius: 4px; 
  padding: 16px; 
  font-family: var(--font-kr); 
  font-size: 0.95rem; 
  color: #333; 
  resize: vertical; 
  outline: none; 
  transition: border-color 0.3s;
}

/* 파일 첨부 및 캡차 버튼 */
.file-wrap { display: flex; gap: 10px; align-items: center; width: 100%; }
.hidden-file { display: none; }
.btn-file { 
  display: inline-flex; justify-content: center; align-items: center;
  height: 46px; padding: 0 24px; background: #111; color: #fff; 
  border-radius: 4px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.3s;
}
.btn-file:hover { background: #333; }

.btn-refresh { font-size: 0.85rem; color: #666; border: none; background: transparent; padding: 0; cursor: pointer; }
.btn-refresh:hover { color: #111; text-decoration: underline; }

/* 안내 문구 */
.iq-note { font-size: 0.85rem; color: #888; line-height: 1.6; margin: 0; }
.iq-note-dark { font-size: 0.85rem; color: #333; font-weight: 600; margin: 0; }
.captcha-img-box img { display: block; border: 1px solid #ddd; height: 60px; width: auto; }

/* ── 4. 개인정보 수집 동의 ── */
.privacy-box { 
  width: 100%; height: 150px; border: 1px solid #ddd; border-radius: 4px; padding: 20px; 
  overflow-y: auto; background: #fff; font-size: 0.9rem; color: #666; line-height: 1.6; 
  scrollbar-width: thin; scrollbar-color: #ccc #f0f0f0;
}
.privacy-box strong { color: #111; display: block; margin: 12px 0 6px; }
.privacy-box strong:first-child { margin-top: 0; }

.form-checkbox { 
  display: flex; align-items: center; gap: 8px; cursor: pointer; 
  font-size: 0.95rem; font-weight: 600; color: #111; align-self: flex-end; margin-top: 8px;
}
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-darkgray); cursor: pointer; margin: 0; }

/* ── 5. 하단 전송 버튼 ── */
.iq-submit-wrap { text-align: center; margin-top: 60px; }
.btn-submit { 
  display: inline-flex; justify-content: center; align-items: center;
  width: 240px; height: 60px; background: var(--c-darkgray); color: #fff;
  font-size: 1.2rem; font-weight: 800; border-radius: 4px; transition: background 0.3s;
}
.btn-submit:hover { background: var(--c-green); }


/* ============================================================
   📱 모바일 반응형 (폼 최적화)
   ============================================================ */
@media(max-width: 768px) {
  .cs-intro { padding: 40 20px 60px !important; }
  .cs-form-sec { padding: 0 20px 100px; }

  /* 테이블을 위아래 배치로 변경 */
  .iq-row { flex-direction: column; }
  .iq-label { 
    flex: auto; width: 100%; padding: 16px 20px; font-size: 1rem; 
    border-bottom: 1px solid #eaeaea; 
  }
  .iq-input { padding: 20px; }

  /* 인풋 요소 100% 꽉 차게 */
  .form-input, .form-select { width: 100% !important; }
  .flex-wrap { flex-direction: column; align-items: stretch; gap: 8px; }
  
  .dash, .at { display: none; } /* 모바일에서는 구분선 숨김 */

  .radio-group { gap: 16px 24px; }
  .form-radio { width: calc(50% - 12px); /* 2단 배열 */ }

  .file-wrap { flex-direction: column; align-items: stretch; }
  .btn-file { width: 100%; }

  .iq-submit-wrap { margin-top: 40px; }
  .btn-submit { width: 100%; }
}


/* ✨ 문의 전 필수 안내사항 박스 */
.inquiry-notice-box {
  background: #fdfbf7; /* 부드러운 베이지/노란빛 배경으로 눈에 띄게 */
  border: 1px solid #e5dfd3;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.nt-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #d32f2f; /* 중요함을 알리는 붉은 톤 */
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nt-title i { font-size: 1.5rem; }
.nt-sub-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
}
.nt-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
  word-break: keep-all; overflow-wrap: break-word;
}
.nt-highlight {
  display: inline-block;
  color: #d32f2f;
  font-weight: 700;
  margin-top: 8px;
}

/* 모바일 반응형 */
@media(max-width: 768px) {
  .inquiry-notice-box { padding: 24px 20px; margin-bottom: 40px; }
  .nt-title { font-size: 1.2rem; margin-bottom: 16px; }
  .nt-sub-title { font-size: 1.05rem; margin-bottom: 8px; }
  .nt-text { font-size: 0.95rem; line-height: 1.6; }
}

/* ============================================================
   [ 주요 거래처 ] 표(Table) 스타일
   ============================================================ */
.cs-list-sec { padding: 0 0 160px; }

.partner-table-wrap {
  width: 100%;
  max-width: 1000px; /* 테이블이 너무 넓게 퍼지지 않도록 고정 */
  margin: 0 auto;
  border-top: 2px solid #222;
}

.partner-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

/* 테이블 헤더 (시안과 동일한 연회색 배경) */
.partner-table th {
  background: #f9f9f9;
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #ddd;
}

/* 테이블 본문 */
.partner-table td {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  color: #555;
  transition: background 0.3s ease;
}

/* 마우스 올렸을 때 살짝 색상 변하는 효과 */
.partner-table tbody tr:hover td {
  background: #fafafa;
}

/* ── 테이블 본문 텍스트 스타일 ── */
.pt-region {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-green); /* 지역은 눈에 확 띄게 초록색으로! */
}

.pt-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.pt-tel {
  font-family: var(--font-en), sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #777;
}

/* 모바일 반응형 추가 (기존 모바일 쿼리 안에 병합) */
@media(max-width: 768px) {
  .cs-list-sec { padding: 0 20px 100px; }
  
  .partner-table th { padding: 16px 0; font-size: 0.95rem; }
  .partner-table td { padding: 16px 0; }
  
  .pt-region { font-size: 0.95rem; }
  .pt-name { font-size: 1rem; }
  .pt-tel { font-size: 1rem; }
}
/* ============================================================
   ✨ 폼 전송 로딩 오버레이
   ============================================================ */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none; /* 평소엔 숨김 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loading-overlay.active { display: flex; } /* 활성화 시 켜짐 */

.spinner {
  width: 50px; height: 50px;
  border: 5px solid rgba(135, 203, 108, 0.2); /* 옅은 연두색 바탕선 */
  border-top-color: var(--c-green); /* 진한 연두색 도는 선 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loading-overlay p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.5;
}


/* ============================================================
   ✨ 검색창 및 검정/빨강 동일 규격 버튼 스타일
   ============================================================ */
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-search input[type="text"] {
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 16px;
  font-family: var(--font-kr), sans-serif;
  font-size: 0.95rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

.board-search input[type="text"]:focus {
  border-color: #111;
}

/* 1) 검색 버튼 (검정색) */
.btn-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  background: var(--c-darkgray, #111);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-search-submit:hover {
  background: #333;
}

/* 2) 취소 버튼 (검색 버튼과 동일 크기, 빨간색) */
.btn-search-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  background-color: #d32f2f; /* 붉은색 배경 */
  color: #ffffff !important;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.btn-search-cancel:hover {
  background-color: #b71c1c; /* 마우스 호버 시 진한 빨간색 */
}

/* 📱 모바일 반응형 */
@media (max-width: 768px) {
  .board-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .board-search {
    width: 100%;
    flex-wrap: wrap;
  }

  .board-search input[type="text"] {
    flex: 1;
    min-width: 0;
  }
}


/* ============================================================
   ✨ 검색창 및 버튼 강제 교정 (취소 버튼 빨간색 상자화)
   ============================================================ */

/* 1. 검색 폼 부모 영역을 Flex로 정렬 */
.board-top .board-search {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* 2. 입력창 / 검색버튼 / 취소버튼 높이 및 박스 세팅 */
.board-top .board-search input[type="text"] {
  height: 46px !important;
  box-sizing: border-box !important;
}

/* 3. 검색 버튼 (검정색) */
.board-top .board-search button,
.board-top .board-search .btn-search-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  padding: 0 20px !important;
  background-color: #333333 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  line-height: 46px !important;
}

/* 4. 취소 버튼 (검색 버튼과 완전 동일한 높이/모양 + 빨간색 배경) */
.board-top .board-search a.btn-search-cancel,
.board-top .board-search .btn-reset-search {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  padding: 0 20px !important;
  background-color: #d32f2f !important; /* 빨간색 배경 */
  color: #ffffff !important; /* 흰색 글자 */
  border: none !important;
  border-radius: 4px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  line-height: 46px !important;
  transition: background-color 0.2s ease !important;
}

/* 취소 버튼 마우스 올렸을 때 */
.board-top .board-search a.btn-search-cancel:hover,
.board-top .board-search .btn-reset-search:hover {
  background-color: #b71c1c !important; /* 약간 더 진한 빨간색 */
  color: #ffffff !important;
}
