/* ================================
   Inquiry page (merged styles)
   ================================ */

/* 페이지 컨테이너: 레이아웃은 공통 CSS가 처리하므로 여기선 최소화 */
.inquiry-main {
  padding: 0;
  margin: 0;
}

/* 🎥 비디오 히어로 */
.inquiry-main .video-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;           /* 모바일 주소창 높이 보정 */
  overflow: hidden;
}
.inquiry-main .video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.inquiry-main .video-hero .overlay {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding-top: min(30svh, 30vh);
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* 🧭 인트로 텍스트 */
.inquiry-intro {
  background: #fff;
  padding: var(--section-padding) 1.25rem;
  margin-top: 2rem;
  text-align: center;
}
.inquiry-intro h1 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--gap-sm);
}
.inquiry-intro p {
  font-size: var(--fs-base);
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ⌨️ 타이핑 텍스트 */
.typewriter {
  font-size: var(--fs-base);
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--color-text);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: normal;   /* 줄바꿈 허용 */
  overflow: visible;
  width: auto;
  max-width: 800px;
  line-height: 1.8;
  margin: 0 auto;
}

/* 📄 폼 섹션 컨테이너 */
.inquiry-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--section-padding) 1.25rem;
  text-align: center;
  /* 예쁜 아주 약한 배경광 */
  background:
    radial-gradient(900px 500px at 8% 0%, #f0fdf4 0, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #ecfeff 0, transparent 60%);
}

/* 🗂 카드 */
.inquiry-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  text-align: left; /* 카드 안에서는 좌측 정렬 */
}
.inquiry-card h1 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.2vw, 28px);
}
.inquiry-card .lead {
  margin: 0 0 18px;
  color: #475569;
  font-size: .98rem;
}

/* 📝 폼 */
.inquiry-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row { display: grid; gap: 8px; }
.inquiry-form label { font-weight: 600; }

.inquiry-form input[type="text"],
.inquiry-form input[type="tel"],
.inquiry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111;
  box-sizing: border-box;
  font-size: var(--fs-base, 1rem);
  font-family: var(--font-family-base, system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, Noto Sans KR, sans-serif);
}
.inquiry-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* 포커스 */
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 3px solid #bbf7d0; /* 연두 포커스 */
  border-color: #86efac;
}

/* 힌트 */
.hint { color: #64748b; font-size: .85rem; }

/* 개인정보 동의 */
.agree-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.agree { display: flex; gap: 8px; align-items: center; }
.agree-link { color: #0ea5e9; text-decoration: none; }
.agree-link:hover { text-decoration: underline; }

/* 메시지 */
.form-msg { min-height: 20px; font-size: .92rem; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #dc2626; }
.form-msg.progress { color: #2563eb; }

/* 제출 버튼 */
.actions { display: flex; justify-content: flex-end; }
.btn-primary {
  padding: .75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #1b5e20;
  background: #1b5e20;
  color: #fff;
  cursor: pointer;
  transition: filter .2s ease;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .inquiry-main .video-hero { min-height: 60svh; }
  .inquiry-main .video-hero .overlay { padding-top: 10svh; font-size: 1rem; }

  .inquiry-intro { padding: 2rem 1rem; margin-top: 1rem; }
  .inquiry-intro h1 { font-size: 1.4rem; margin-bottom: .75rem; }

  .typewriter {
    font-size: .95rem;
    line-height: 1.6;
    width: 100%;
    margin: 1rem auto 0;
  }

  .inquiry-section { padding: 2rem 1rem; }
  .inquiry-card { padding: 22px 16px; }
}
