/* =========================================
   레이아웃
   ========================================= */
.contact-sec {
  padding: 140px 0 300px;
}

/* 1섹션과 2섹션 사이의 여백 */
#right-content-1, #right-content-2 {
  margin-bottom: 200px;
}

.contact-container {
  max-width: 1444px;
  margin: 0 auto;
  padding: 0 72px;
  display: grid;
  grid-template-columns: 3fr 7fr;
  align-items: start;
  gap: 78px;
}

/* 좌측 고정 (Sticky) */
.col-left {
  width: 100%;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: calc(var(--pl-header-h) + 72px);
}

/* 우측 스크롤 */
.col-right {
  width: 100%;
}

/* 타이틀 및 텍스트 */
.main-contact-title {
  font-family: var(--font-en);
  font-size: 30px !important;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #1d1d1d !important;
  margin: 0 0 18px;
}

.contact-phone {
  margin-bottom: 48px;
}

.phone-label {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1d;
}

.contact-phone a {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1d !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.contact-phone a:hover {
  opacity: 0.6;
}

.contact-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #333 !important;
  margin: 0;
}

/* ==========================================================
    문의하기
   ========================================================== */
.sub-contact-title {
  font-family: var(--font-en);
  font-size: 18px !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1d !important;
  margin: 0 0 28px;
}

.contact-form {
  width: 100%;
}

/* 간격 */
.contact-form .form-row {
  margin-bottom: 8px;
}

.contact-form .form-row.flex-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px !important;
}

.contact-form .form-row.textarea-row {
  margin-bottom: 18px;
}

/* 폰트 스타일 */
.form-input {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #1d1d1d !important;
  padding: 8px 0 10px 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1d;
  background: transparent;
  outline: none;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.form-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.w-100 {
  width: 100%;
}

.w-50 {
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* 내용 */
.form-textarea {
  width: 100%;
  height: 360px;
  border: 1px solid #1d1d1d !important;
  border-radius: 0 !important;
  padding: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: #1d1d1d;
  outline: none;
  resize: none;
  background: transparent;
  box-sizing: border-box;
}

/* 하단 */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;   /* 2026-09-30 사용자: 개인정보 동의를 위쪽 정렬(기존 flex-end) */
}

.agreement-box {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.agreement-label {
  display: flex;
  align-items: flex-start;   /* 2026-09-30 사용자: flex-start — 글이 두 줄이 돼도 체크박스는 첫 줄에 */
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

/* 체크박스 */
.ag-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  flex-shrink: 0;
  border: 1px solid #000 !important;
  border-radius: 0 !important;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  margin: 4px 0 0 !important;   /* 첫 줄(행간 22.4px) 가운데 */
}

/* 체크하면 체크 표시 (2026-09-30 사용자) */
.ag-checkbox:checked {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%231d1d1d' stroke-width='1.6'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.ag-text-kr {
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1d !important;
}

.ag-text-en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1d !important;
  margin: 0;
}

/* 버튼 */
.btn-done {
  font-family: var(--font-en) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: #333 !important;
  background-color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 0 !important;
  padding: 6px 36px !important;   /* 2026-09-30 사용자: MORE 버튼과 같게 */
  margin: 0;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.btn-done:hover {
  color: #fff !important;
  background-color: #000 !important;
}

/* ==========================================================
   채널 (Our Channel)
   ========================================================== */

/* 1. 헤더 및 타이틀 영역 */
.right-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.right-sec-header .sub-contact-title {
  margin-bottom: 0 !important;
}

/* 2. 탭 메뉴 스타일 */
.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ch-tab {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ch-tab:hover {
  color: #1d1d1d;
}

.ch-tab.active {
  color: #1d1d1d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* 3. 탭 콘텐츠 노출 전환 */
.channel-content {
  display: none;
}

.channel-content.active {
  display: block;
}

/* 4. 채널 리스트 그리드 */
.channel-list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #1d1d1d !important;
  border-bottom: none !important;
}

.channel-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: 20px;
  min-height: 150px;
  box-sizing: border-box;
  border-bottom: 1px solid #1d1d1d !important;
  transition: background-color 0.3s ease;
}

/* 위아래 여백이 있는 내부 세로선 그리기 */
.channel-list li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background-color: #1d1d1d;
}

/* 세로선 제거 */
.channel-list li:nth-child(2)::after,
.channel-list li:nth-child(5)::after,
.channel-list li:nth-child(7)::after,
.channel-list li:last-child::after {
  display: none !important;
}

/* 첫 번째 줄 (1~2번째 요소) */
.channel-list li:nth-child(1),
.channel-list li:nth-child(2) {
  flex: 1 1 50%;
}

/* 두 번째 줄 (3~5번째 요소) */
.channel-list li:nth-child(3),
.channel-list li:nth-child(4),
.channel-list li:nth-child(5) {
  flex: 1 1 33.333%;
}

/* 세 번째 줄 (6번째 요소 이후) */
.channel-list li:nth-child(n+6) {
  flex: 1 1 50%;
}

/* 호버 우측 선 숨김 */
.channel-list li:hover::after {
  opacity: 0 !important;
}

/* 호버 왼쪽 선 숨김 */
.channel-list li:has(+ li:hover)::after {
  opacity: 0 !important;
}

/* 5. 채널 텍스트 (좌상단 고정 배치) */
.ch-name {
  position: absolute;
  top: 20px;
  left: 20px;
  width: auto;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1d;
  transition: color 0.3s ease;
}

.ch-name::after {
  content: attr(data-desc);
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #d2d2d2 !important;
  opacity: 0;
  transition: all 0.3s ease;
  word-break: keep-all;
}

.channel-list li:hover .ch-name::after {
  opacity: 1;
}

/* 채널 링크 영역 (정중앙 배치) */
.ch-handles {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

/* 6. 계정 링크 텍스트 */
.handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: #ccc !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.handle::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 2px 0 0;
  background-image: url('/wp-content/uploads/2026/09/channel_arrow_ccc_r.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.3s ease;
}

.channel-list li:hover {
  background-color: #1d1d1d;
}

.channel-list li:hover .ch-name,
.channel-list li:hover .handle {
  color: #fff !important;
}

.channel-list li:hover .handle::after {
  filter: brightness(0) invert(1);
}

/* ==========================================================
    오시는길
   ========================================================== */
.info-label {
  font-family: var(--font-en);
  font-size: 18px !important;
  font-weight: 600;
  color: #1d1d1d !important;
  margin: 0 0 12px;
}

.info-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  color: #333 !important;
  margin: 0;
  word-break: keep-all;
}

.info-text-en {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  color: #333 !important;
  margin: 0;
  word-break: break-word;
}

.contact-action-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-solid-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: #333 !important;
  background-color: #fff;
  border: 1px solid #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-solid-map:hover {
  background-color: #000;
  color: #fff !important;
}

.info-divider {
  border: 0;
  border-top: 1px solid #e5e5e5 !important;
  margin: 28px 0;
}

.info-time-dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 8px;
  margin: 0 0 18px;
}

.info-time-dl dt, .info-time-dl dd {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #1d1d1d !important;
  margin: 0;
}

.info-holiday {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  color: #333;
  margin: 0;
}

.margin-bottom-large {
  margin-bottom: 30px;
}

/* ==========================================================
   위챗 모달 팝업
   ========================================================== */
.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.custom-modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  padding: 16px;
  width: 480px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border-radius: 10px;
}

.modal-header {
  text-align: right;
  margin-bottom: 28px;
}

.btn-modal-close {
  background: none;
  border: none;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  padding: 0;
}

.btn-modal-close:hover {
  text-decoration: underline;
}

.modal-body img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
}

@media (max-width: 959px) {
  /* 타이틀 */
  .contact-container {
    display: flex !important;
    flex-direction: column;
    gap: 100px;
    padding: 0 20px;
  }

  .col-left, .col-right {
    width: 100%;
    position: static !important;
  }

  .contact-sec {
    padding: 48px 0 160px;
  }

  .main-contact-title {
    font-size: 24px !important;
    margin: 0 0 8px;
  }

  .phone-label {
    font-size: 12px !important;
  }

  .contact-phone a {
    font-size: 12px !important;
  }

  .contact-phone {
    margin-bottom: 28px;
  }

  .contact-sub {
    font-size: 14px !important;
  }

  /* 문의하기 */
  .contact-form .form-row.flex-row {
    gap: 18px;
    margin-bottom: 38px !important;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 58px;
    margin: 0;
  }

  .ag-text-kr, .ag-text-en {
    font-size: 12px;
  }

  .ag-checkbox { margin-top: 3px !important; }   /* 모바일 첫 줄(행간 19.2px) 가운데 */

  .btn-done {
    align-self: center;
    font-size: 12px !important;
    padding: 6px 36px !important;
  }

  /* 콘텐츠 간격 */
  #right-content-1, #right-content-2 {
    margin-bottom: 120px;
  }

  /* 채널 */
  .right-sec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .channel-tabs {
    gap: 12px;
  }

  /* 리스트 배열 */
  .channel-list li {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    min-height: 120px;
    padding: 12px;
    min-width: 0;
  }

  .channel-list li:last-child:nth-child(odd) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .channel-list li:nth-child(odd)::after {
    display: block !important;
  }

  .channel-list li:nth-child(even)::after,
  .channel-list li:last-child::after {
    display: none !important;
  }

  /* 텍스트, 카드뷰 최적화 */
  .ch-name {
    top: 12px;
    left: 12px;
    width: auto !important;
    font-size: 12px;
  }

  .ch-name::after {
    font-size: 12px;
  }

  .handle::after {
    width: 8px;
    height: 8px;
    margin: 0;
  }

  .ch-handles {
    width: 100% !important;
    gap: 6px;
  }

  .handle {
    font-size: 13px;
  }

  /* 오시는길 */
  .info-block + .info-block {
    margin-top: 28px;
  }

  .info-label {
    font-size: 16px !important;
    margin-bottom: 8px;
  }

  .info-text, .info-text-en {
    font-size: 14px;
  }

  .contact-action-row {
    padding: 0 20px;
  }

  .btn-solid-map {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 12px 0 !important;
  }

  .info-time-dl {
    grid-template-columns: 160px 1fr;
  }

  .info-time-dl dt, .info-time-dl dd {
    font-size: 16px;
  }

  .info-holiday {
    font-size: 14px;
  }
}

/* 채널 조건 */
@media (min-width: 960px) {
  .channel-list li:nth-child(1):last-child,
  .channel-list li:nth-child(3):last-child,
  .channel-list li:nth-child(6):last-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* 허니팟(봇 방지) 필드 숨김 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
