/* =============================================================================
 * woosungjung.com — pages/contact.css
 * 문의 — 직접 연락 두 칸 · 폼 · 옆 안내.
 * 공통 조각은 여기 다시 만들지 않는다 —
 *   .box(옆 안내 카드) · .link · .todoblock → components.css
 *   .head .lead · section · .eyebrow        → layout.css
 * ========================================================================== */

/* ---------- 직접 연락 ---------- */
.direct {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}
.dc {
  background: var(--surface);
  border-radius: 10px;
  padding: 26px 28px;
}
.dc .k {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 11px;
}
.dc .v {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--hanji);
  word-break: break-all;
}
/* 주소가 아닌 값(지역명)은 mono 로 두지 않는다 */
.dc .v.plain { font-family: var(--sans); font-size: 17px; word-break: normal; }
a.dc:hover .v { color: var(--dan-lt); }
.dc .n { font-size: 12px; color: var(--sub); margin-top: 9px; }

/* ---------- 폼 + 옆 안내 ---------- */
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 52px; align-items: start; }
.form { max-width: 680px; }

/* 결과 알림 — 보낸 뒤(ok)·검증 실패(bad). 둘 다 폼 맨 위에 뜬다 */
.formmsg {
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 26px;
}
.formmsg.ok  { color: var(--cheong-lt); border: 1px solid rgba(90, 165, 149, .45); background: rgba(90, 165, 149, .07); }
.formmsg.bad { color: var(--dan-lt);    border: 1px solid rgba(217, 96, 74, .45);  background: rgba(217, 96, 74, .07); }
.formmsg p + p { margin-top: 6px; }

/* ---------- 종류 탭 ----------
   시안은 <button> + JS 였다. 여기서는 라디오라 JS 없이도 골라진다.
   진짜 input 은 감추고 라벨을 칩처럼 그린다 — 포커스 테두리는 라벨이 대신 받는다 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; border: 0; }
.tab {
  position: relative;
  font-size: 13px;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.tab input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.tab:hover { color: var(--hanji); }
/* `.is-picked` 는 JS 가 붙인다 — `:has()` 를 모르는 옛 브라우저용 보험 */
.tab.is-picked,
.tab:has(input:checked) {
  color: var(--dan-lt);
  border-color: rgba(217, 96, 74, .55);
  background: rgba(217, 96, 74, .08);
}
.tab:has(input:focus-visible) { outline: 2px solid var(--dan); outline-offset: 2px; }

/* ---------- 입력 칸 ---------- */
.f { margin-bottom: 22px; }
.f label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 8px;
}
.f label .req { color: var(--dan-lt); margin-left: 4px; }
.f input,
.f textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--hanji);
  padding: 13px 14px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
}
.f input:focus,
.f textarea:focus { outline: none; border-color: #4A4A50; }
.f textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
.f .hint { font-size: 12px; color: var(--faint); margin-top: 7px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 벌레잡이 칸 — 화면 밖으로 뺀다. display:none 은 일부 봇이 걸러낸다 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.send {
  background: none;
  border: 1px solid var(--dan-lt);
  color: var(--dan-lt);
  border-radius: 5px;
  padding: 14px 34px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
}
.send:hover { background: rgba(217, 96, 74, .12); }
/* 보내는 동안 — 잠긴 단추는 눌러도 아무 일이 없다는 것이 보여야 한다 */
.send[disabled] { color: var(--sub); border-color: var(--line); background: none; cursor: default; }
.is-sending .f input,
.is-sending .f textarea,
.is-sending .tab { opacity: .6; }
.privacy { font-size: 12px; color: var(--faint); margin-top: 18px; line-height: 1.8; }

/* ---------- 접수 완료 알림 ----------
   보낸 뒤 되돌아온 화면에서만 나온다. JS 가 열고, 확인을 누르면 페이지를 다시 부른다.
   JS 가 없으면 이 상자는 `hidden` 인 채로 남고 위 초록 띠가 같은 말을 한다 */
.done {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.done[hidden] { display: none; }
.done-back { position: absolute; inset: 0; background: rgba(14, 14, 16, .8); }
.donein {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 32px 30px;
  text-align: center;
}
.donein h2 { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.2; }
.donein p { font-size: 13.5px; color: var(--sub); line-height: 1.85; margin-top: 12px; }
.donein .send { margin-top: 24px; min-width: 140px; }

/* 상자가 떠 있는 동안 뒤 페이지는 스크롤하지 않는다 (works 상세 모달과 같은 클래스) */
body.sheet-on { overflow: hidden; }

/* ---------- 옆 안내 ----------
   카드 자체는 공통 `.box` 다. 여기서는 폭에 맞춘 여백만 손본다 */
.side { padding: 26px 28px; }
.side h3 { font-size: 21px; }
.side p + p { margin-top: 10px; }
.side b { font-weight: 400; color: var(--hanji); }
.sidelinks { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; gap: 36px; }
  .side { max-width: 680px; }
}
@media (max-width: 780px) {
  .direct { grid-template-columns: 1fr; padding-bottom: 36px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .send { width: 100%; }
}
