/* 문의 페이지 (contact.html)
 * 기존 문의 모달의 폼 스타일을 그대로 옮기고, 페이지 레이아웃에 맞게만 조정했다.
 * 입력/버튼의 색·굵기·반경 등 내부 스타일 값은 모달과 동일하게 유지한다. */

.contact-page {
  width: 100%;
  padding: 120px 24px 96px;
  background: #f8f9fa;
}

.contact-page-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.contact-page-head {
  margin-bottom: 32px;
  text-align: center;
}

.contact-page-head h1 {
  margin: 0 0 12px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}

.contact-page-head p {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.1px;
  color: #6b7280;
}

/* 모달 카드에 해당하던 영역 — 페이지에서는 폼 카드로 */
.contact-page .inquiry-form {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.contact-page .inquiry-form-wrap {
  width: 100%;
}

.contact-page .inputWrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.contact-page .inputWrap label {
  color: #374151;
  text-align: start;
  font-family: "Noto Sans KR";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.1px;
  margin-bottom: 4px;
}

.contact-page .inputWrap input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  font-size: 16px;
  font-family: "Noto Sans KR";
  color: #1f2937;
  transition: all 0.2s ease;
  outline: none;
}

.contact-page .inputWrap input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-page .inputWrap input::placeholder {
  color: #9ca3af;
}

/* textarea — 입력에 따라 높이가 자동으로 늘고 준다(JS 가 height 를 조정).
 * 수동 리사이즈 핸들과 스크롤바는 자동 조절과 충돌하므로 끈다. */
.contact-page .inputWrap textarea {
  width: 100%;
  min-height: 120px;
  max-height: 480px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  font-size: 16px;
  font-family: "Noto Sans KR";
  line-height: 1.6;
  color: #1f2937;
  padding: 16px 20px;
  resize: none;
  overflow-y: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.contact-page .inputWrap textarea.is-scrollable {
  overflow-y: auto;
}

.contact-page .inputWrap textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-page .inputWrap textarea::placeholder {
  color: #9ca3af;
}

/* 전송 버튼 — 가로 전체 */
.contact-page .inquiry-btn-contents {
  width: 100%;
  margin: 0;
  padding-top: 12px;
}

.contact-page .inquiry-send {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px;
  border: none;
  border-radius: 12px;
  background: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

.contact-page .inquiry-send:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.contact-page .inquiry-send:disabled,
.contact-page .inquiry-send.is-sending {
  cursor: progress;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.contact-page .inquiry-send p {
  color: #ffffff;
  text-align: center;
  font-family: "Noto Sans KR";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.1px;
  margin: 0;
}

.contact-page .inquiry-send img {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* 전화 문의 — 버튼이 아니라 번호 텍스트 */
.contact-page .inquiry-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #eef0f2;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.contact-page .inquiry-contact-label {
  font-family: "Noto Sans KR";
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #6b7280;
}

.contact-page .inquiry-phone {
  font-family: "Noto Sans KR";
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: #1a1a1a;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-page .inquiry-phone:hover,
.contact-page .inquiry-phone:focus-visible {
  color: #3b82f6;
}

.contact-page .inquiry-contact-hint {
  font-family: "Noto Sans KR";
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.1px;
  color: #9ca3af;
}

/* 봇 트랩 — 화면 밖으로 밀어낸다 (display:none 은 봇이 걸러내기 쉽다) */
.contact-page .inquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 전송 상태 메시지 */
.contact-page .inquiry-status {
  min-height: 20px;
  margin: 4px 0 0;
  font-family: "Noto Sans KR";
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.1px;
  color: #6b7280;
}

.contact-page .inquiry-status.is-success {
  color: #047857;
}

.contact-page .inquiry-status.is-error {
  color: #b91c1c;
}

.contact-page .inputWrap input.has-error,
.contact-page .inputWrap textarea.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ===== 태블릿 ===== */
@media (max-width: 1024px) {
  .contact-page {
    padding: 100px 24px 80px;
  }

  .contact-page-head h1 {
    font-size: 32px;
  }

  .contact-page .inquiry-form {
    padding: 32px;
  }
}

/* ===== 모바일 ===== */
@media (max-width: 768px) {
  .contact-page {
    padding: 72px 16px 64px;
  }

  .contact-page-head {
    margin-bottom: 24px;
    text-align: left;
  }

  .contact-page-head h1 {
    font-size: 26px;
  }

  .contact-page-head p {
    font-size: 15px;
  }

  .contact-page .inquiry-form {
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  }

  .contact-page .inputWrap {
    margin-bottom: 16px;
  }

  .contact-page .inputWrap input,
  .contact-page .inputWrap textarea {
    padding: 14px 16px;
    /* 16px 미만이면 iOS 사파리가 입력 시 화면을 확대한다 */
    font-size: 16px;
  }

  .contact-page .inputWrap textarea {
    min-height: 108px;
    max-height: 320px;
  }

  .contact-page .inquiry-send {
    padding: 16px 20px;
  }

  .contact-page .inquiry-contact {
    margin-top: 22px;
    padding-top: 22px;
  }

  .contact-page .inquiry-phone {
    font-size: 24px;
  }
}

/* ===== 소형 모바일 ===== */
@media (max-width: 380px) {
  .contact-page {
    padding: 64px 12px 56px;
  }

  .contact-page .inquiry-form {
    padding: 20px 16px;
  }

  .contact-page-head h1 {
    font-size: 23px;
  }

  .contact-page .inquiry-phone {
    font-size: 22px;
  }
}
