/* ==========================================================================
   상담 문의 (contact.html)
   기준 시안: Figma 「B안 흰 헤더 · 확정」 PC 07 (259:2034) / MO 07 (259:3367)
   ========================================================================== */

.contact-body { padding: 120px 0 200px; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 380fr 760fr; gap: 60px; align-items: start; }

/* ---------- contact-info ---------- */
.contact-info { min-width: 0; background: var(--dark); color: #fff; }
.contact-info-text { min-height: 700px; padding: 56px 20px 40px 40px; }
.contact-info-en { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 40px; }
.contact-info-lead { position: relative; margin-top: 16px; padding-bottom: 27px; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.55; }
.contact-info-lead::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 1px; background: #c21a22; }
.contact-info-list { margin: 43px 0 0; }
.contact-info-item { position: relative; padding-left: 40px; }
.contact-info-item + .contact-info-item { margin-top: 47px; }
.contact-info-item dt { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .85); }
.contact-info-item dt img { position: absolute; left: 0; top: 0; }
.contact-info-item dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; line-height: 23px; }
.contact-info-item.is-addr dd { line-height: 1.6; }
.contact-info-item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-info-photo { position: relative; aspect-ratio: 380 / 540; overflow: hidden; }
.contact-info-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-info-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }

/* ---------- Contact Form ---------- */
.contact-form-wrap { min-width: 0; }
.contact-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 19px; border-bottom: 2px solid var(--ink); }
.contact-form-head h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 37px; color: var(--ink); }
.contact-form-note { margin: 10px 22px 0 0; font-size: 14px; line-height: 20px; color: var(--brand); white-space: nowrap; }

.contact-field { display: grid; grid-template-columns: 170px minmax(0, 1fr); padding: 16px 0 15px; border-bottom: 1px solid var(--line); }
.contact-label { padding: 14px 8px 0; font-size: 16px; font-weight: 500; line-height: 23px; color: var(--ink); }
.contact-req { margin-left: 1px; font-weight: 700; color: var(--brand); }
.contact-control { min-width: 0; }
.contact-input {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px 4px;
  border: 1px solid var(--line); border-radius: 0; background: #fff;
  font: 400 15px/1.448 var(--sans); color: var(--ink);
  transition: border-color .2s;
}
.contact-input::placeholder { color: var(--muted); opacity: 1; }
.contact-input:hover { border-color: #b9bec6; }
.contact-input:focus, .contact-input:focus-visible { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
.contact-input[aria-invalid="true"] { border-color: var(--brand); }
.contact-textarea { height: 200px; padding: 13px 16px; line-height: 1.6; resize: none; }
.contact-error { margin-top: 8px; font-size: 13px; line-height: 19px; color: var(--brand); }
.contact-error:empty { display: none; }

.contact-field.is-service { padding: 28px 0 22px; }
.contact-field.is-service .contact-label { padding-top: 2px; }
.contact-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 20px 0; }
.contact-checks li { display: flex; min-width: 0; }
.contact-check { display: inline-flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 15px; line-height: 22px; color: var(--ink); cursor: pointer; }
.contact-check span { margin: -1px 0; }
.contact-check input, .contact-agree-input {
  -webkit-appearance: none; appearance: none;
  position: relative; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1px solid var(--line); border-radius: 0; background: #fff; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.contact-check input:hover, .contact-agree-input:hover { border-color: var(--gray); }
.contact-check input:checked, .contact-agree-input:checked { border-color: var(--dark); background: var(--dark); }
.contact-check input:checked::after, .contact-agree-input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.contact-field.is-message { padding: 19px 0 20px; border-bottom-color: var(--ink); }
.contact-field.is-message .contact-label { padding-top: 10px; }

.contact-agree { position: relative; display: flex; align-items: center; gap: 16px; min-height: 86px; margin-top: 39px; padding: 20px 28px; background: var(--bg-gray); cursor: pointer; }
.contact-agree-input { position: absolute; left: 28px; top: 50%; width: 1px; height: 1px; border: 0; opacity: 0; }
.contact-agree-text { flex: 1; min-width: 0; margin-bottom: 4px; font-size: 15px; line-height: 22px; color: var(--ink); }
.contact-agree-btn { display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; width: 120px; height: 46px; background: #4a505a; color: #fff; font-size: 15px; font-weight: 500; transition: background .2s; }
.contact-agree:hover .contact-agree-btn { background: #3b4048; }
/* 동의한 상태(시안에 없는 상태) : 버튼이 본문 버튼과 같은 진한 색이 되고 체크 표시가 붙는다 */
.contact-agree-input:checked ~ .contact-agree-btn { background: var(--dark); }
.contact-agree-input:checked ~ .contact-agree-btn::before { content: ""; width: 6px; height: 11px; margin: -3px 2px 0 0; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.contact-agree-input:focus-visible ~ .contact-agree-btn { outline: 2px solid var(--brand); outline-offset: 2px; }
.contact-error.is-agree { margin-top: 10px; }
.contact-collect { margin-top: 16px; font-size: 13px; line-height: 19px; color: var(--muted); white-space: pre-wrap; }

.contact-status { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--ink); font-size: 15px; line-height: 1.6; color: var(--ink); }
.contact-status:empty { display: none; }
.contact-status.is-error { border-color: var(--brand); color: var(--brand); }
.contact-status:focus, .contact-status:focus-visible { outline: none; }

.contact-submit { display: flex; align-items: center; justify-content: space-between; width: 240px; height: 62px; margin: 49px auto 0; padding: 0 36px 1px 46px; background: var(--dark); color: #fff; font-size: 17px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.contact-submit:hover { background: #000; }
.contact-submit img { flex: none; transition: transform .25s var(--ease); }
.contact-submit:hover img { transform: translateX(4px); }
.contact-status:not(:empty) + .contact-submit { margin-top: 24px; }

/* 영문 서체(Playfair Display)는 낱말 사이를 줄이지 않는다 — style.css 의 word-spacing 보정에서 뺀다 */
.contact-info-en { word-spacing: 0; }

/* ==========================================================================
   MO (1024px 이하)
   ========================================================================== */
@media (max-width: 1024px) {
  .contact-body { padding: 0 0 164px; }
  .contact-grid { display: block; width: 100%; }

  .contact-info-text { min-height: 0; padding: 30px 16px 67px; }
  .contact-info-list { display: flex; flex-direction: column; margin: 0; }
  .contact-info-item { padding-left: 34px; }
  .contact-info-item.is-addr { order: -1; margin-top: 0; }
  .contact-info-item.is-mail { margin-top: 34px; }
  .contact-info-item.is-clock { margin-top: 37px; }
  .contact-info-item dt { font-size: 13px; line-height: 19px; }
  .contact-info-item dt img { top: 2px; }
  .contact-info-item dd, .contact-info-item.is-addr dd { margin-top: 3px; font-size: 14px; line-height: 21px; }

  .contact-form-wrap { width: calc(100% - 32px); margin: 0 auto; padding-top: 40px; }
  .contact-form-head { padding-bottom: 13px; }
  .contact-form-head h2 { font-size: 20px; line-height: 29px; }
  .contact-form-note { margin: 6px 2px 0 0; font-size: 13px; line-height: 19px; }

  .contact-field, .contact-field.is-service { display: block; margin-top: 16px; padding: 0; border-bottom: 0; }
  .contact-field:first-child { margin-top: 20px; }
  .contact-label, .contact-field.is-service .contact-label, .contact-field.is-message .contact-label { display: block; padding: 0; font-size: 13px; line-height: 19px; }
  .contact-req { margin-left: 0; font-weight: inherit; color: inherit; }
  .contact-input { height: 46px; margin-top: 5px; padding: 0 12px 4px; font-size: 14px; }
  .contact-textarea { height: 150px; padding: 10px 12px; }
  .contact-error { margin-top: 6px; }

  .contact-checks { grid-template-columns: 1fr; gap: 16px; margin-top: 11px; }
  .contact-check { font-size: 14px; line-height: 20px; }
  .contact-field.is-message { margin-top: 30px; padding: 0; }

  .contact-agree { gap: 10px; min-height: 64px; margin-top: 26px; padding: 12px 14px; }
  .contact-agree-input { position: relative; left: auto; top: auto; width: 20px; height: 20px; border: 1px solid var(--line); background: transparent; opacity: 1; }
  .contact-agree-input:checked { border-color: var(--dark); background: var(--dark); }
  .contact-agree-input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .contact-agree-text { margin: 0 0 3px; font-size: 13px; line-height: 19px; }

  .contact-status { margin-top: 16px; padding: 12px 14px; font-size: 14px; }
  .contact-submit, .contact-status:not(:empty) + .contact-submit { justify-content: center; width: 100%; height: 52px; margin-top: 26px; padding: 0 0 2px; font-size: 16px; }
  .contact-status:not(:empty) + .contact-submit { margin-top: 16px; }
}

/* 왼쪽 연락처 상자의 주소는 PC 에서도 「…2층」 / 「(논현동, 세일빌딩)」 두 줄(시안) — 바닥글과 같은 주소 문구(휴대폰용 줄바꿈)를 쓰므로 여기서만 줄바꿈을 보인다 */
@media (min-width: 1025px) { .contact-info-item.is-addr br.mo { display: inline !important; } }
