/* contact.css — 도입 문의 전용. 시안 Contact.html. 색·간격은 tokens.css 변수만 쓴다.
   오류는 색이 아니라 경고 아이콘 + 글자 + 굵은 테두리로 알린다(CLAUDE.md: 상태를 색만으로 구분하지 않는다). */

/* ── 제목 ── */
.inquiry-hero { padding-top: 72px; padding-bottom: 80px; }
.inquiry-hero .wrap { gap: 20px; }
.inquiry-hero .eyebrow { letter-spacing: 0.08em; }
.inquiry-hero .lead { max-width: 36em; }

/* ── 양식 + 연락처 안내 ── */
.inquiry { padding-top: 80px; padding-bottom: 104px; }
.sec > .wrap.inquiry-wrap { flex-direction: row; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.inquiry-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.inquiry-form { display: flex; flex-direction: column; gap: 40px; }
.inquiry-form[hidden], .inquiry-done[hidden] { display: none; }

.form-group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.form-group > legend { padding: 0; font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.form-group:first-of-type > legend { margin-bottom: 14px; }

/* 문의 유형 칸: 라디오를 칸 모양으로. 고른 칸 = 어두운 바탕 + 체크 표시 */
.kind-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.kind-card {
  cursor: pointer; padding: 18px 20px; min-height: 92px;
  border: 1px solid var(--ink-900); background: var(--white); color: var(--text);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.kind-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kind-head b { font-size: 18px; font-weight: 700; line-height: 1.4; }
.kind-card small { font-size: 14px; color: var(--text-muted); }
.kind-check { display: none; flex-shrink: 0; }
.kind-card:has(input:checked) { background: var(--ink-900); color: var(--on-dark-1); }
.kind-card:has(input:checked) small { color: var(--on-dark-3); }
.kind-card:has(input:checked) .kind-check { display: block; }
.kind-card:has(input:focus-visible) { outline: 2px solid var(--ink-900); outline-offset: 3px; }

.kind-fields { display: flex; flex-direction: column; gap: 20px; }
.kind-fields[hidden] { display: none; }

/* 입력칸 */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--narrow { max-width: 420px; }
.field-label { font-size: 15px; font-weight: 600; }
.input {
  font: inherit; font-size: 16px; width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line-dashed); background: var(--white); color: var(--text);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
select.input {
  padding: 0 40px 0 10px;
  /* 펼침 표시: 선 아이콘 하나(색은 본문 글자색과 같은 #1A1A1A) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea.input { padding: 12px 14px; resize: vertical; min-height: 160px; }
.input::placeholder { color: var(--text-muted); }
.input:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 0; }
.input[aria-invalid="true"] { border: 2px solid var(--ink-900); }

/* 체크박스·라디오 줄 */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: 16px; cursor: pointer; }
.choice input, .agree input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--ink-900); }
[role="radiogroup"] .choice { margin-right: 4px; }

/* 개인정보 동의 */
.agree-box { background: var(--white); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.agree { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-size: 16px; font-weight: 600; cursor: pointer; }
.agree-note { font-size: 14px; color: var(--text-muted); }

/* 오류: 경고 아이콘 + 글자 */
.field-error, .form-alert { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.field-error svg, .form-alert svg { flex-shrink: 0; margin-top: 5px; }
.field-error[hidden], .form-alert[hidden] { display: none; }
.form-alert { background: var(--white); border: 2px solid var(--ink-900); padding: 14px 18px; }

/* 함정 입력칸: 화면 밖으로 뺀다(display:none 이면 일부 프로그램이 건너뛴다) */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 보내기 */
.submit-btn { padding: 0 32px; }
.submit-btn[disabled] { cursor: progress; opacity: 0.75; }

/* 접수 완료 */
.inquiry-done { background: var(--white); border: 1px solid var(--ink-900); padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.inquiry-done:focus { outline: none; }
.done-mark { width: 48px; height: 48px; background: var(--accent); color: var(--ink-900); display: flex; align-items: center; justify-content: center; }
.inquiry-done h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.inquiry-done p { color: var(--text-muted); }
.done-back { min-height: 48px; padding: 0 24px; font-size: 16px; }

/* 연락처 안내 */
.inquiry-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; border-top: 2px solid var(--text); }
.aside-row { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.aside-row--last { border-bottom: 0; gap: 6px; }
.aside-label { font-size: 14px; color: var(--text-muted); }
.aside-value { font-size: 18px; color: var(--text); text-decoration: none; min-height: var(--tap); margin: -10px 0; display: inline-flex; align-items: center; align-self: flex-start; }
.aside-value:hover { color: var(--text); text-decoration: underline; }
.aside-text { font-size: 17px; }
.aside-note { font-size: 16px; }

@media (max-width: 767px) {
  .inquiry-hero { padding-top: 48px; padding-bottom: 56px; }
  .inquiry-hero .wrap { gap: 16px; }
  .inquiry { padding-top: 48px; padding-bottom: 64px; }
  .sec > .wrap.inquiry-wrap { gap: 48px; }
  .inquiry-main, .inquiry-form { gap: 32px; }
  .form-group > legend { font-size: 18px; margin-bottom: 16px; }
  .kind-cards { gap: 8px; }
  .kind-card { min-height: 72px; padding: 14px 16px; }
  .kind-head b { font-size: 17px; }
  .field-grid { gap: 16px; }
  .agree-box { padding: 16px; }
  .agree { align-items: flex-start; padding-top: 10px; }
  .agree input { margin-top: 3px; }
  .inquiry-done { padding: 24px; }
  .inquiry-done h2 { font-size: 22px; }
  .done-back { width: 100%; }
}
