/* =========================================================
   문의하기 (contact) — main.css + about.css 위에 얹는 페이지 전용 스타일
   ========================================================= */
.hero--contact{ padding-bottom:120px }
.ct{ background:var(--bg-light); padding-top:0; z-index:2 }
.ct__grid{ align-items:start; translate:0 -64px; margin-bottom:-64px }

/* ---------- 왼쪽: 연락 채널 ---------- */
.ct__side{ grid-column:1 / 5; position:sticky; top:calc(var(--header) + 24px); padding:36px 32px; border-radius:var(--r-xl); background:#fff; box-shadow:0 0 0 1px rgba(18,16,34,.05), 0 30px 60px -40px rgba(47,31,196,.35) }
.ct__side-title{ font-size:22px; font-weight:700; letter-spacing:-.03em; color:var(--text-strong) }
.ct__ch{ margin-top:20px; display:flex; flex-direction:column }
.ct__ch li{ display:flex; flex-direction:column; gap:2px; padding:14px 0; border-top:1px solid var(--line) }
.ct__ch-k{ font-size:16px; font-weight:600; color:var(--text-sub) }
.ct__ch a{ font-size:18px; font-weight:700; letter-spacing:-.01em; color:var(--text-strong); transition:color .3s var(--ease) }
.ct__ch a:hover{ color:var(--point) }
.ct__visit{ padding:16px 0 4px; border-top:1px solid var(--line) }
.ct__visit p + p{ margin-top:2px; font-size:17px; font-weight:600; color:var(--text-strong) }
.ct__visit .link-arrow{ margin-top:10px }
.ct__flow{ margin-top:24px; padding:18px; border-radius:var(--r-lg); background:var(--bg-light); display:flex; flex-direction:column; gap:10px }
.ct__flow li{ display:flex; align-items:center; gap:12px; font-size:16px; font-weight:600; color:var(--text-strong) }
.ct__flow b{ display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%; font-size:16px; color:#fff; background:var(--point); font-variant-numeric:tabular-nums }

/* ---------- 오른쪽: 양식 ---------- */
.ct__form,.ct__done{ grid-column:5 / 13; padding:48px; border-radius:var(--r-xl); background:#fff; box-shadow:0 0 0 1px rgba(18,16,34,.05), 0 30px 60px -40px rgba(47,31,196,.35); display:flex; flex-direction:column; gap:28px }
.f-field{ display:flex; flex-direction:column; gap:10px; border:0; margin:0; padding:0; min-width:0 }
.f-label{ padding:0; font-size:16px; font-weight:700; color:var(--text-strong) }
.f-req{ font-style:normal; color:var(--point) }
.f-opt{ margin-left:6px; font-size:16px; font-weight:500; color:var(--text-sub) }
.f-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px }

.f-field input,.f-field textarea,.f-select select{ width:100%; min-height:56px; padding:14px 18px; border:0; border-radius:14px; font:inherit; font-size:17px; color:var(--text-strong); background:var(--bg-light);
  box-shadow:inset 0 0 0 1px transparent; transition:box-shadow .25s var(--ease), background-color .25s var(--ease); -webkit-appearance:none; appearance:none }
.f-field textarea{ resize:vertical; min-height:200px; line-height:1.7 }
.f-field input::placeholder,.f-field textarea::placeholder{ color:#9C9AAE }
.f-field input:hover,.f-field textarea:hover,.f-select select:hover{ box-shadow:inset 0 0 0 1px var(--line-strong) }
.f-field input:focus,.f-field textarea:focus,.f-select select:focus{ outline:none; background:#fff; box-shadow:inset 0 0 0 2px var(--point) }
.f-select{ position:relative }
.f-select::after{ content:""; position:absolute; right:18px; top:50%; width:10px; height:10px; margin-top:-7px; border-right:2px solid var(--text-sub); border-bottom:2px solid var(--text-sub); rotate:45deg; pointer-events:none }
.f-select select{ padding-right:48px; cursor:pointer }

/* 유형 칩 */
.f-chips{ display:flex; flex-wrap:wrap; gap:8px }
.f-chips label{ position:relative; cursor:pointer }
.f-chips input{ position:absolute; opacity:0; inset:0; margin:0 }
.f-chips span{ display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:999px; font-size:16px; font-weight:600; color:var(--text-body); background:var(--bg-light);
  box-shadow:inset 0 0 0 1px transparent; transition:background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease) }
.f-chips label:hover span{ box-shadow:inset 0 0 0 1px var(--line-strong) }
.f-chips input:checked + span{ color:#fff; background:var(--text-strong) }
.f-chips input:focus-visible + span{ box-shadow:0 0 0 3px var(--point-light) }

/* 오류 */
.f-err{ display:none; font-size:16px; font-weight:600; color:#D33A4C }
.f-field.is-bad input,.f-field.is-bad textarea{ background:#FFF5F6; box-shadow:inset 0 0 0 2px #E8697A }
.f-field.is-bad .f-err,.f-agree.is-bad .f-err{ display:block }
.f-meta{ display:flex; align-items:center; gap:12px }
.f-count{ margin-left:auto; font-size:16px; color:var(--text-sub); font-variant-numeric:tabular-nums }

/* 동의 */
.f-agree{ padding:22px 24px; border-radius:var(--r-lg); background:var(--bg-light); display:flex; flex-direction:column; gap:8px }
.f-check{ display:flex; align-items:flex-start; gap:12px; cursor:pointer; font-size:17px; font-weight:700; color:var(--text-strong) }
.f-check input{ flex:none; width:24px; height:24px; margin:1px 0 0; border-radius:7px; -webkit-appearance:none; appearance:none; background:#fff; box-shadow:inset 0 0 0 1.5px var(--line-strong); cursor:pointer;
  transition:background-color .2s var(--ease), box-shadow .2s var(--ease) }
.f-check input:checked{ background:var(--point) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow:none }
.f-check input:focus-visible{ outline:3px solid var(--point-light); outline-offset:2px }
.f-agree__d{ padding-left:36px; font-size:16px; line-height:1.65; color:var(--text-sub) }
.f-agree__d a{ color:var(--point); font-weight:600; text-decoration:underline; text-underline-offset:3px }
.f-agree .f-err{ padding-left:36px }
.f-agree.is-bad{ box-shadow:inset 0 0 0 2px #E8697A }

.f-actions{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:8px }
.f-note{ font-size:16px; color:var(--text-sub) }
.f-submit{ min-width:200px; justify-content:center; gap:10px }

/* ---------- 접수 완료 ---------- */
.ct__done{ align-items:center; text-align:center; padding:80px 48px; gap:0 }
.ct__done[hidden]{ display:none }
.ct__done-ico img{ width:96px; height:96px; filter:drop-shadow(0 18px 30px rgba(67,48,230,.3)) }
.ct__done-title{ margin-top:24px; font-size:36px; font-weight:700; letter-spacing:-.04em; color:var(--text-strong) }
.ct__done-lead{ margin-top:14px; font-size:18px; line-height:1.7; color:var(--text-body) }
.ct__done-lead b{ color:var(--text-strong) }
.ct__done-note{ margin-top:10px; font-size:16px; color:var(--text-sub) }
.ct__done-btns{ margin-top:32px; display:flex; flex-wrap:wrap; justify-content:center; gap:10px }

/* ---------- 반응형 ---------- */
@media (max-width:1024px){
  .ct__side{ grid-column:1 / -1; position:static; order:2; margin-top:var(--gap) }
  .ct__form,.ct__done{ grid-column:1 / -1 }
  .ct__ch{ display:grid; grid-template-columns:1fr 1fr; column-gap:24px }
}
@media (max-width:767px){
  .hero--contact{ padding-bottom:88px }
  .ct__grid{ translate:0 -40px; margin-bottom:-40px }
  .ct__form{ padding:28px 20px; gap:24px }
  .ct__done{ padding:56px 24px }
  .ct__side{ padding:28px 22px }
  .ct__ch{ grid-template-columns:1fr }
  .f-row{ grid-template-columns:1fr; gap:24px }
  .f-chips span{ padding:0 14px }
  .f-agree{ padding:18px }
  .f-actions{ flex-direction:column-reverse; align-items:stretch }
  .f-submit{ width:100% }
  .ct__done-title{ font-size:28px }
}
.ct__form[hidden]{ display:none }
