/* /contact/contact.css */

.contact-wrap {
  margin: 40px 0;
}

.contact-box {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.contact-title {
  font-weight: 900;
  font-size: 20px;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.contact-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 18px 0;
}

/* 알림 */
.contact-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 14px;
}
.contact-alert.success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}
.contact-alert.error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

/* 폼 공통 */
.contact-form .field {
  margin-top: 14px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #334155;
}

.req { color: #ef4444; }

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe5f1;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 200px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* 개인정보 박스 */
.policy-box {
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
}

.policy-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

/* ✅ 핵심: 세로 스크롤 */
.policy-body {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;

  max-height: 160px;        /* 박스 높이 고정 */
  overflow-y: auto;         /* 세로 스크롤 */
  overflow-x: hidden;       /* 가로 스크롤 제거 */

  padding-right: 6px;       /* 스크롤바 겹침 방지 */
  border-radius: 10px;
}

/* 스크롤바 미세 조정 (크롬/엣지) */
.policy-body::-webkit-scrollbar {
  width: 6px;
}
.policy-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.policy-body::-webkit-scrollbar-track {
  background: transparent;
}

.policy-body ul {
  margin: 0;
  padding-left: 18px;
}

.policy-body li {
  margin: 8px 0;
}

.policy-note {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: #64748b;
}

/* 동의 체크 */
.agree-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #0f172a;
}

.agree-left input {
  width: 16px;
  height: 16px;
}

/* 버튼 */
.btn-submit {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-submit:hover {
  filter: brightness(0.95);
}

/* honeypot */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* 모바일 */
@media (max-width: 640px) {
  .contact-box { padding: 18px; }
  .contact-title { font-size: 18px; }
  .policy-body { max-height: 140px; }
}
