/* 문의 폼 모양 (HM-CONTACT 문의 키트 v1) — 시간가구 디자인(어두운 갈색 바탕·흰 글자·IBM Plex Sans KR)에 맞춰 고쳤다. 클래스 이름(hm-contact)은 그대로 둔다. 모바일 우선. */

/* ───────── 홈페이지 문의 구역 ───────── */
.inquiry { position: relative; z-index: 1; background: var(--bg); padding: 72px 20px 56px; }
.inquiry-inner { max-width: 1120px; margin: 0 auto; }
.inquiry h2 { font-size: 24px; line-height: 1.35; letter-spacing: 0.01em; font-weight: 300; }
.inquiry-lead { margin-top: 12px; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em; max-width: 34em; opacity: 0.85; }
.inquiry .hm-contact { margin-top: 24px; }
@media (min-width: 768px) {
  .inquiry { padding: 96px 48px 72px; }
  .inquiry h2 { font-size: 32px; }
}
@media (min-width: 1100px) {
  .inquiry { padding: 112px 8% 88px; }
  .inquiry h2 { font-size: 40px; }
}

/* ───────── 폼 ───────── */
.hm-contact { position: relative; width: 100%; max-width: 560px; display: grid; gap: 16px; font: inherit; color: #fff; }
.hm-contact label { display: grid; gap: 8px; font-size: 16px; line-height: 1.4; letter-spacing: 0.02em; }
.hm-contact input[type=text], .hm-contact input[type=tel], .hm-contact input[type=email], .hm-contact input[type=date], .hm-contact textarea {
  font: inherit; font-size: 16px; letter-spacing: 0.02em; min-height: 48px; padding: 10px 12px; width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 0; background: #2f2a27; color: #fff; box-sizing: border-box;
}
.hm-contact textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.hm-contact input:focus-visible, .hm-contact textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; }
/* 자동 프로그램 걸러내기 칸: 화면 밖으로만 보낸다(display:none 금지) */
.hm-contact .hm-contact__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hm-contact .hm-contact__consent { border: 1px solid rgba(255, 255, 255, 0.3); padding: 14px; font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; background: #2f2a27; overflow-wrap: anywhere; }
.hm-contact .hm-contact__consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; margin-top: 12px; }
.hm-contact input[type=checkbox] { flex: none; width: 24px; height: 24px; margin: 0; accent-color: #fff; cursor: pointer; }
.hm-contact .hm-contact__consent label span { padding-top: 1px; }
.hm-contact .hm-contact__consent a { display: inline-block; min-height: 44px; line-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.hm-contact button[type=submit] {
  font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0.02em; min-height: 48px; padding: 0 18px; cursor: pointer;
  border: 1px solid #fff; border-radius: 0; background: #fff; color: #000;
  transition: background-color 0.25s var(--ease, ease), color 0.25s var(--ease, ease);
}
.hm-contact button[type=submit]:hover:not([disabled]), .hm-contact button[type=submit]:focus-visible { background: transparent; color: #fff; }
.hm-contact button[disabled] { opacity: 0.5; cursor: default; }
.hm-contact [data-hm-ok] { margin: 0; font-size: 16px; line-height: 1.5; color: #b9e6c6; }
.hm-contact [data-hm-msg] { margin: 0; font-size: 16px; line-height: 1.5; color: #ffb4a8; }
.hm-contact [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .hm-contact button[type=submit] { transition: none; } }

/* 체크칸 눌리는 자리 44×44 (눈에 보이는 칸은 24×24 그대로 — 테두리 투명 10px 이 눌림 영역) */
.hm-contact input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; margin: -10px; border: 10px solid transparent; border-radius: 0; background: transparent; background-clip: padding-box; box-shadow: inset 0 0 0 2px #fff; }
.hm-contact input[type=checkbox]:checked { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; background-clip: padding-box; }
