/* ==========================================================================
   pages.css — 문의 폼 · 접수 완료 · 안내 문서(소개 · 이용약관 · 개인정보처리방침)
   ========================================================================== */

/* ---------- 공통: 페이지 헤더 · 버튼 · 폼 요소 ---------- */
.pg-page .gn-crumb { margin-bottom: 18px; }
.pg-page .gn-head { margin-bottom: 24px; }
.pg-page .gn-head__t { font-size: 21px; }
.gn-crumb__cur {
  display: inline-block;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* 보드형 버튼 (벤치 .gn-bbtn: 42h · pad 0 20 · r-md · 14/700) */
.gn-bbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s, filter .15s, border-color .15s, color .15s;
}
.gn-bbtn:hover { transform: translateY(-1px); border-color: var(--teal); }
.gn-bbtn svg { width: 16px; height: 16px; }
.gn-bbtn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--mint), var(--mint-2));
  color: #121418;
}
.gn-bbtn--primary:hover { filter: brightness(1.06); border-color: transparent; }
.gn-bbtn--sm { height: 34px; padding: 0 13px; font-size: 13px; }
.gn-bbtn--danger { color: #ff7a8a; }
.gn-bbtn--danger:hover { border-color: #ff7a8a; }

/* 오류 · 상태 문구 */
.gn-form__error {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(232, 51, 42, .4);
  border-radius: var(--r-sm);
  background: rgba(232, 51, 42, .1);
  color: #ff8a84;
  font-size: 13.5px;
  font-weight: 600;
}
.gn-form__err {
  margin-top: 6px;
  color: #ff8a84;
  font-size: 12.5px;
  font-weight: 600;
}
.has-error .gn-textarea,
.has-error .gn-input,
.gn-bfield.has-error input,
.gn-bfield.has-error textarea { border-color: rgba(232, 51, 42, .7); }

/* ---------- 문의 폼 (.gn-form 620 가운데) ---------- */
.gn-form {
  max-width: 620px;
  margin: 0 auto;
}
.gn-form__links { display: flex; gap: 9px; }
.gn-form__links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  transition: color .15s, background .15s;
}
.gn-form__links a:hover { color: var(--mint); background: var(--line); }
.gn-form__links svg { width: 19px; height: 19px; }
.gn-form__intro {
  margin-bottom: 20px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.gn-form__intro b { color: var(--ink); }
.gn-form__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.gn-form__pills span {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.gn-form__target {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 11px 14px;
  border: 1px solid rgba(92, 200, 160, .35);
  border-radius: var(--r-sm);
  background: rgba(92, 200, 160, .08);
  color: var(--mint);
  font-size: 13.5px;
  font-weight: 600;
}
.gn-form__target svg { flex: 0 0 auto; width: 16px; height: 16px; }
.gn-form__field + .gn-form__field { margin-top: 20px; }
.gn-form__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.gn-form__label span { color: var(--ink-3); font-weight: 400; }
.gn-form__label .req { margin-left: 4px; color: #ff5a5a; font-weight: 600; }
.gn-textarea,
.gn-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color .15s;
}
.gn-textarea { min-height: 180px; resize: vertical; }
.gn-textarea:focus, .gn-input:focus { outline: none; border-color: var(--mint); }
.gn-input--file { padding: 11px 16px; color: var(--ink-2); cursor: pointer; }
.gn-input--file::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.gn-form__hint {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}
.gn-form__hint b { color: var(--ink-2); font-weight: 700; }
.gn-form__submit {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 24px;
  border-radius: var(--r-md);
  background: linear-gradient(110deg, #15897a 0%, #27b89e 55%, #34c8a6 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: filter .15s, transform .15s;
}
.gn-form__submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.gn-form__submit:active { transform: translateY(0); }
.gn-form__foot {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
.gn-form__foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.gn-form__foot a:hover { color: var(--mint); }

/* 접수 완료 · 계정 안내 카드 */
.gn-done {
  padding: 40px 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  text-align: center;
}
.gn-done--plain { padding-top: 32px; }
.gn-done__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--mint), var(--mint-2));
  color: #121418;
}
.gn-done__icon--soft { background: var(--surface-2); color: var(--mint); }
.gn-done__icon svg { width: 30px; height: 30px; }
.gn-done__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.gn-done__lead { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.gn-done__no {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--mint);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.gn-done__desc { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.gn-done__desc b { color: var(--ink); }
.gn-done__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.gn-done__foot { margin-top: 18px; color: var(--ink-3); font-size: 12.5px; }
.gn-done__foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.gn-done__foot a:hover { color: var(--mint); }

/* ---------- 정책 문서 (.gn-article 960 + .gn-body 재사용) ---------- */
.gn-article__title--policy { margin-bottom: 24px; }
.gn-policy .gn-policy__lead { color: var(--ink); font-weight: 600; }
.gn-policy .gn-policy__meta {
  margin: -1.2em 0 1.95em;
  color: var(--ink-3);
  font-size: .68em;
  font-weight: 600;
}
.gn-policy .gn-policy__note {
  margin: 2em 0 0;
  padding: .8em 1.1em;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .75em;
  line-height: 1.7;
}
.gn-policy__table {
  width: 100%;
  margin: 0 0 1.95em;
  border-collapse: collapse;
  font-size: .72em;
  line-height: 1.6;
}
.gn-policy__table th,
.gn-policy__table td {
  padding: .7em .9em;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.gn-policy__table th { background: var(--surface); color: var(--ink); font-weight: 700; white-space: nowrap; }
.gn-policy__table td { color: var(--ink-2); }
.gn-policy__others {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 960px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.gn-policy__others a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.gn-policy__others a:hover { color: var(--mint); border-color: var(--teal); }
.gn-policy__others a[aria-current] { background: var(--mint); border-color: var(--mint); color: #121418; }

/* 사이트맵 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  font-size: .8em;
  line-height: 1.6;
}

/* ---------- 반응형 ---------- */
@media (max-width: 640px) {
  .gn-crumb__cur { max-width: 52vw; }
  .gn-form__submit { height: 48px; }
  .gn-textarea { min-height: 150px; }
  .gn-done { padding: 30px 18px 26px; }
  .gn-done__title { font-size: 20px; }
  .gn-done__acts .gn-bbtn { flex: 1 1 calc(50% - 4px); }

  .gn-policy__table { display: block; overflow-x: auto; }
  .gn-policy__others { margin-top: 40px; gap: 6px; }
  .gn-policy__others a { padding: 7px 11px; font-size: 12.5px; }
}
