/* ========================================================
   pages/inquiry.css — 문의 폼 (FO-COM-04-02-001) — 프리픽스: inq-
   좌: 카테고리 탭 / 우: 동의 + 접수정보 폼
   ※ 폼 원자(.field / .chips / .checkbox), 버튼(.btn), 브레드크럼(.breadcrumb)은
     components.css 공통 사용.
   ======================================================== */

/* 타이틀 영역은 공통 컴포넌트 .page-head 사용 (components.css).
   고정 GNB 여백은 .page-head 의 padding-top(120)이 겸한다 (GNB 오버레이). */

/* ── 본문 (사이드 + 폼) ── */
/* padding-bottom 50 = 스티키 컨테이너(본문 콘텐츠 박스) 하단.
   디자인의 본문↔footer 간격(240)은 우측 영역 하단 패딩으로 마저 채운다. */
.inq__body {
  display: flex;
  align-items: flex-start;
  gap: 80rem;
  padding: 0 var(--side-padding) 50rem;
}

/* 사이드 카테고리 */
.inq__nav {
  display: flex;
  flex-direction: column;
  gap: 48rem;
  flex-shrink: 0;
  align-self: flex-start;
  width: 276rem;
  position: sticky;
  top: 120rem; /* 고정 GNB 높이 */
}
.inq__nav-line {
  width: 100%;
  height: 1px;
  background: var(--color-line-medium);
}
.inq-nav {
  display: flex;
  flex-direction: column;
  gap: 20rem;
}
.inq-nav__item {
  font-family: var(--font-family-kor);
  font-size: var(--kor-h7); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s var(--ease-out-cubic);
}
.inq-nav__item--active {
  color: var(--color-neutral-black);
}
.inq-nav__item:hover,
.inq-nav__item:focus-visible {
  color: var(--color-text-default-highest);
}

/* 카테고리 nav — 안쪽 .swiper (이 페이지 한정). 데스크톱: 세로 리스트(Swiper 비활성) */
.inq-nav .swiper {
  width: 100%;
  overflow: visible; /* 세로 리스트 — swiper 의 overflow:hidden 해제 */
}
.inq-nav .swiper-wrapper {
  flex-direction: column;
  gap: 20rem;
}
.inq-nav .swiper-slide {
  width: auto; /* 데스크톱 세로에선 stretch 로 풀폭 / 모바일 가로에선 버튼 내용폭 */
}

/* ── 폼 영역 ── */
/* Figma: line 요소 2개(최상단 / 버튼 위) + 자식 간 gap 48. 섹션 자체엔 보더 없음. */
.inq__form {
  display: flex;
  flex-direction: column;
  gap: 48rem;
  flex: 1;
  min-width: 0;
  /* 본문↔footer 디자인 간격(240) 유지: 본문 padding 50 + 여기 190 */
  padding-bottom: 190rem;
}
.inq__form-line {
  width: 100%;
  height: 1px;
  background: var(--color-line-medium);
}
/* 2026-09-16 - 시안 수정: 본문과 구분선 사이를 48 더 띄운다(뉴스레터 구독) — form gap 48 + 48 = 96 */
.inq__form-line--gap {
  margin-top: 48rem;
}

/* 안내문 + 섹션 묶음 — 시안: 안내문과 섹션 사이 12 */
.inq__block {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  width: 100%;
}
.inq__notice {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-neutral-black);
  text-align: right;
}
.inq__notice em {
  font-style: normal;
  color: var(--color-text-status-warning); /* #f5222d */
}

/* 섹션(라벨 394 + 콘텐츠) */
.inq__section {
  display: flex;
  align-items: flex-start;
  /* 2026-10-28 - 제보 폼의 .rpt-row 와 같은 간격·폭 규칙을 쓴다 (라벨 394 고정 + 본문이 나머지) */
  gap: 56rem;
  width: 100%;
}
.inq__section-label {
  display: flex;
  gap: 4rem;
  flex-shrink: 0;
  width: 394rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-neutral-black);
}
.inq__section-req {
  color: var(--color-text-status-danger);
  font-size: var(--kor-b4);
  font-weight: var(--font-weight-medium);
}
.inq__section-body {
  /* 2026-10-28 - 1326 고정폭 → .rpt-row__body 와 같이 남는 폭을 채운다 */
  flex: 1;
  min-width: 0;
}

/* 개인정보 동의 */
.inq-agree {
  height: 200rem;
  padding: 16rem;
  overflow-y: auto;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 (Figma) */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest); /* #1a1a1a */
  /* 2026-08-26 - inset box-shadow 는 화면 배율에 따라 선이 안 보이는 문제가 있어 outline 으로 교체.
     outline 은 박스에 별도로 페인트돼 스크롤 재래스터화 영향이 없고(border 를 바꿨던 원래 이유),
     레이아웃을 차지하지 않아 박스 크기도 그대로다. 전 구간(모바일 포함) 동일 적용. */
  outline: 1px solid var(--color-bd-default);
  background: var(--color-bg-default-white);
}
/* 스크롤바는 공통(components.css)의 얇은 스크롤바 규칙을 따른다 */
.inq-agree__check {
  margin-top: 24rem;
}

/* 마케팅 수신 동의 — 문구 + 체크박스 + 회색 안내박스 (뉴스레터 FO-COM-01-01-002 등)
   con gap 24 / 문구↔체크박스 gap 12 (Figma) */
.inq-recv {
  display: flex;
  flex-direction: column;
  gap: 24rem;
}
.inq-recv__agree {
  display: flex;
  flex-direction: column;
  gap: 12rem;
}
.inq-recv__text {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 회색 안내박스 (Figma: bg #f8f8f8 · 패딩 40 · 18 Regular) */
.inq-msg {
  padding: 40rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  background: var(--color-bg-primary-light-level-1); /* #f8f8f8 */
}

/* 접수 정보 — 필드 스택 (Figma sp-1600) */
.inq-fields {
  display: flex;
  flex-direction: column;
  gap: 64rem;
}

/* 첨부자료 — [파일명 박스 + 파일 선택 버튼] 한 줄 / 안내문은 그 아래 전체 폭 */
/* 2026-09-09 - 시안 7292:9022 — 파일명 박스를 빼고
   [파일 선택 버튼(h48) + 파일명 텍스트] 한 줄, 그 아래 안내문 */
.inq-file {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  width: 100%;
}
.inq-file__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16rem;
}
.inq-file__btn {
  flex-shrink: 0;
}
.inq-file__name {
  min-width: 0;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inq-file__name--filled {
  color: var(--color-text-default-highest);
}
/* 2026-10-06 - 첨부파일 지우기 버튼 — 파일명 오른쪽. inquiry.js 가 주입한다 */
.inq-file__picked {
  display: inline-flex;
  align-items: center;
  gap: 8rem;
  min-width: 0;
}
.inq-file__clear {
  flex-shrink: 0;
  width: 20rem;
  height: 20rem;
  background: url("../../images/ico-input-clear.svg") center / 20rem 20rem no-repeat;
}
.inq-file__clear[hidden] {
  display: none;
}
.inq-file__clear:focus-visible {
  outline: 2px solid var(--color-bd-focused);
  outline-offset: 2px;
}

.inq-file__hint {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-medium);
}

/* 캡차 — [이미지 + 도구] 그룹(gap4) + 입력(gap10) */
.inq-captcha {
  display: flex;
  align-items: stretch;
  gap: 10rem;
  width: 100%;
}
.inq-captcha__media {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-shrink: 0;
}
/* 이미지 박스 205×60, 보더 없음, Figma 크롭 그대로(이미지 ~51% 스케일 + 오프셋) */
.inq-captcha__img {
  position: relative;
  flex-shrink: 0;
  width: 205rem;
  height: 60rem;
  overflow: hidden;
}
.inq-captcha__img img {
  position: absolute;
  left: -21.25%;
  top: -140.17%;
  width: 142.5%;
  height: 302.56%;
  max-width: none;
}
.inq-captcha__tools {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.inq-captcha__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28rem;
  height: 28rem;
  border: 1px solid var(--color-line-low);
  border-radius: var(--radius-100);
  background: var(--color-bg-neutral-light-level-1);
  cursor: pointer;
}
.inq-captcha__tool::after {
  content: "";
  width: 16rem;
  height: 16rem;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.inq-captcha__tool--refresh::after {
  background-image: url("../../images/ico-captcha-refresh.svg");
}
.inq-captcha__tool--sound::after {
  background-image: url("../../images/ico-captcha-sound.svg");
}
.inq-captcha__input {
  flex: 1;
  min-width: 0;
  height: 60rem;
  padding: 0 16rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  border: 1px solid var(--color-bd-default);
  background: var(--color-bg-default-white);
  outline: none;
  transition: border-color 0.2s var(--ease-out-cubic);
}
.inq-captcha__input::placeholder {
  color: var(--color-text-default-medium);
}
.inq-captcha__input:focus {
  border-color: var(--color-bd-focused);
}

/* 2026-10-06 - 캡차 입력 지우기 버튼 — 박스형이라 안쪽 16 띄우고, 래퍼가 flex 자리를 대신 받는다 */
.inq-captcha .field__clear-wrap {
  flex: 1;
  min-width: 0;
}
.inq-captcha .field__clear-wrap .inq-captcha__input {
  width: 100%;
  padding-right: 52rem;
}
.inq-captcha .field__clear {
  right: 16rem;
}

/* 뉴스레터 구독해지 링크 — 구분선 아래 오른쪽 정렬 (시안: line 아래 48, 버튼 위 48)
   2026-09-03 - form 의 gap 48 을 그대로 쓰므로 별도 여백 없이 정렬만 잡는다. */
.inq__unsub {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* 하단 버튼 — 이전/제출 동일 너비(160). 위 line 과는 form gap(48)으로 띄움 */
.inq__actions {
  display: flex;
  justify-content: center;
  gap: 12rem;
  width: 100%;
}
/* 2026-09-16 - 시안 수정: 버튼 위 구분선이 없는 폼(뉴스레터 구독해지)은 본문↔버튼 간격 80 */
.inq__form--noline .inq__actions {
  margin-top: 32rem; /* form gap 48 + 32 = 80 */
}

/* ========================================================
   접수 완료 (FO-CON-01-02-002)
   ======================================================== */
/* 완료 화면은 폼보다 하단 여백이 짧다 (Figma: 240 → 160 = 본문 50 + 결과 110) */
.inq--done .inq__result {
  padding-bottom: 110rem;
}
/* 우측 영역 — 구분선 + 완료 안내 (사이 간격은 .inq-done 의 상하 패딩이 담당) */
.inq__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.inq-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60rem;
  width: 100%;
  padding: 160rem 0;
}
.inq-done__txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40rem;
}
.inq-done__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24rem;
}
.inq-done__icon {
  width: 80rem;
  height: 80rem;
  background: url("../../images/ico-complete.svg") center / contain no-repeat;
}
.inq-done__title {
  font-family: var(--font-family-kor);
  /* 2026-08-25 - 시안 스타일이 kor/h4 라 국문 토큰으로 교체 */
  font-size: var(--kor-h4); /* 40 */
  font-weight: var(--font-weight-bold);
  line-height: 1.28;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  text-align: center;
}
.inq-done__desc {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-high); /* #444 */
  text-align: center;
}
.inq-done .btn {
  width: 160rem;
}
.inq__actions .btn {
  /* 2026-09-09 - 고정 폭 160 이라 ‘구독 해지하기’ 같은 긴 라벨이 두 줄로 접혔다.
     최소폭으로 바꿔 기본 버튼은 160 그대로, 긴 라벨만 늘어난다. */
  min-width: 160rem;
}

/* 뉴스레터 구독 완료 (FO-COM-01-01-003) — 페이지헤드/사이드 없이 중앙 정렬.
   시안: GNB(120) 아래 상단 240 / 하단 240 → padding-top 360(120+240) */
.inq--news-done .inq-done {
  padding: 360rem 0 240rem;
}

/* ========================================================
   반응형 — 1024 이하
   ======================================================== */
@media (max-width: 1024px) {
  /* 타이틀 영역(.page-head)의 모바일 여백은 components.css 공통 처리 */
  .inq__body {
    flex-direction: column;
    /* 2026-10-06 - 데스크톱의 flex-start 가 남아 폼이 내용 폭으로 쪼그라들었다.
       세로로 쌓일 땐 본문 폭을 다 쓰게 한다 */
    align-items: stretch;
    /* 2026-10-22 - 시안 MO: 탭 줄 아래 48 */
    gap: 48rem;
    padding: 0 var(--side-padding) 120rem;
  }
  /* 모바일 — 사이드 상단 스택(스티키 해제) */
  /* 2026-10-22 - 시안 MO: 위 구분선 없이 40 짜리 한 줄짜리 가로 탭 */
  .inq__nav {
    position: relative;
    width: 100%;
    gap: 0;
    top: auto;
  }
  .inq__nav-line {
    display: none;
  }
  /* 넘치는 쪽 화살표 — 번짐(.inq-nav)은 화면 끝, 화살표는 본문 좌우 여백선에 둔다 */
  .inq__nav::before,
  .inq__nav::after {
    content: "";
    position: absolute;
    top: 50%;
    /* swiper 기본값이 z-index:1 이라 그보다 위로 올려야 글자를 덮는다 */
    z-index: 3;
    display: none;
    width: 20rem;
    height: 20rem;
    background-color: var(--color-text-default-highest);
    -webkit-mask: url("../../images/ico-arrow-right-20.svg") center / 20rem 20rem no-repeat;
    mask: url("../../images/ico-arrow-right-20.svg") center / 20rem 20rem no-repeat;
    translate: 0 -50%;
    pointer-events: none;
  }
  .inq__nav::before {
    left: 0;
    rotate: 180deg;
  }
  .inq__nav::after {
    right: 0;
  }
  .inq__nav--has-prev::before,
  .inq__nav--has-next::after {
    display: block;
  }
  .inq__form,
  .inq--done .inq__result {
    padding-bottom: 0;
  }
  /* 뉴스레터 완료 — 모바일 GNB(60) 기준 여백 축소 + 좌우 패딩 */
  .inq--news-done .inq-done {
    padding: 160rem var(--side-padding) 120rem;
  }
  /* 2026-10-22 - 시안 MO: 한 줄 가로 스크롤 탭. 좌우 여백을 뚫고 화면 끝까지 흐른다 */
  .inq-nav {
    position: relative;
    flex-direction: row;
    gap: 0;
    height: 40rem;
    margin: 0 calc(var(--side-padding) * -1);
  }
  .inq-nav__item {
    flex-shrink: 0;
    /* 시안 kor/heading/h7-sb — h7 은 좁은 화면에서 18 로 줄지만 탭은 20 유지 */
    font-size: 20rem;
    line-height: 1.36;
    white-space: nowrap;
  }
  .inq-nav .swiper {
    display: flex;
    align-items: center;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .inq-nav .swiper::-webkit-scrollbar {
    display: none;
  }
  /* 2026-10-22 - 좌우 여백은 스크롤 상자가 아니라 안쪽 트랙이 들고 있어야 한다.
     상자에 주면 끝까지 밀었을 때 오른쪽 여백이 사라져 마지막 탭이 화면 끝에 붙는다 */
  .inq-nav .swiper-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 24rem;
    width: auto;
    padding: 0 var(--side-padding);
  }
  /* 더 있다는 표시 — 흰색으로 번진다 (화살표는 .inq__nav 가 올린다) */
  .inq-nav::before,
  .inq-nav::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    display: none;
    width: 80rem;
    height: 100%;
    pointer-events: none;
  }
  .inq-nav::before {
    left: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--color-bg-default-white) 50%);
  }
  .inq-nav::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-bg-default-white) 50%);
  }
  .inq__nav--has-prev .inq-nav::before,
  .inq__nav--has-next .inq-nav::after {
    display: block;
  }

  /* 2026-10-22 - 시안 MO: 폼 안쪽 간격은 40 으로 통일 */
  .inq__form {
    gap: 40rem;
  }
  .inq__block {
    gap: 40rem;
  }
  /* 시안은 맨 위 구분선과 안내문 사이만 16 — 폼 간격 40 에서 24 를 당긴다 */
  .inq__notice {
    margin-top: -24rem;
  }
  /* 필드 간 간격 (데스크톱 64) */
  .inq-fields {
    gap: 40rem;
  }
  /* 2026-10-22 - 시안 MO: 칩은 내용폭 wrap 이 아니라 균등 그리드.
     문의구분 3열 / 세부구분 2열, 높이 48, 간격 8 */
  .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8rem;
  }
  .chips--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chip {
    height: 48rem;
    padding: 0 8rem;
    font-size: 16rem;
  }
  /* 시안 MO: 문의내용 입력칸 204 */
  .field__textarea {
    height: 204rem;
  }
  /* 섹션 — 라벨 위 / 콘텐츠 아래 스택 */
  /* 2026-10-28 - .rpt-row 와 같은 간격 */
  .inq__section {
    flex-direction: column;
    gap: 16rem;
  }
  .inq__section-label {
    width: 100%;
  }
  /* 2026-08-26 - 세로 스택이 되면 flex-basis(1326)가 폭이 아니라 높이로 잡혀
     본문이 1326 높이로 고정됐다. 모바일에선 내용 높이 + 전체 폭으로 된다. */
  .inq__section-body {
    flex: none;
    width: 100%;
  }
  /* 동의 체크박스 — 모바일에서 라벨이 여러 줄이 되므로 상단 정렬(체크박스가 첫 줄에 맞춤) */
  .inq-agree__check {
    align-items: flex-start;
  }
  /* 2026-09-09 - 첨부자료 — 버튼은 고정, 파일명이 남는 폭을 쓰며 말줄임 */
  /* 2026-10-06 - 파일명이 지우기 버튼과 한 묶음이 되어 묶음이 남는 폭을 받는다 */
  .inq-file__picked {
    flex: 1;
    min-width: 0;
  }
  .inq-file__name {
    flex: 1;
  }
  /* 2026-10-22 - 시안 MO: 라벨 ↔ 파일줄 24, 파일줄 ↔ 안내문 24 */
  .field:has(.inq-file) {
    gap: 24rem;
  }
  .inq-file {
    gap: 24rem;
  }
  /* 2026-10-22 - 시안 MO: 캡차는 [그림 + 도구] 한 줄, 입력은 그 아래 전체 폭 */
  .inq-captcha {
    flex-direction: column;
    gap: 10rem;
  }
  .inq-captcha__media {
    gap: 8rem;
  }
  .inq-captcha__img {
    flex: 1;
    width: auto;
    height: 88rem;
  }
  .inq-captcha__tools {
    gap: 8rem;
  }
  .inq-captcha__tool {
    width: 40rem;
    height: 40rem;
  }
  .inq-captcha__input {
    height: 60rem;
  }
  /* 2026-10-06 - 캡차 입력은 래퍼 안으로 들어갔으므로 줄바꿈·순서를 래퍼가 받는다 */
  .inq-captcha .field__clear-wrap {
    flex-basis: 100%;
    order: 3;
  }
  .inq-captcha__input {
    flex-basis: 100%;
    order: 3;
  }
  /* 하단 버튼
     2026-10-22 - 시안 MO: 좌우 균등 2열, 높이 48, 사이 12 */
  .inq__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inq__actions .btn {
    width: 100%;
    min-width: 0;
    height: 48rem;
    padding: 0 12rem;
    white-space: nowrap;
  }
}


