/* ============================================
   새출발지원센터 랜딩페이지 CSS
   그누보드 5.6.13 / 반응형 모바일 우선
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
  background: #ddd;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 56px;
}

/* ── 고정 헤더 ── */
.fixed-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  z-index: 1000;
  line-height: 0;
}
.header-img-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-full-img { width: 100%; height: auto; display: block; }

/* NF_Header.jpg (720×120) 전화기/TALK 핫스팟 */
.header-hotspot {
  position: absolute; top: 0; height: 100%;
  display: block; cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
}
.header-hotspot-call { left: 70%; width: 13%; }
.header-hotspot-talk { left: 83%; width: 13%; }

.header-spacer { height: 56px; display: block; }

/* ── 공통 섹션 ── */
.sec {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: block;
  line-height: 0;
  position: relative;
  background: #fff;
}
.sec-link { display: block; width: 100%; line-height: 0; }
.sec-img  { width: 100%; height: auto; display: block; }

/* ── CTA 오버레이 (미사용) ── */
.sec-cta-wrap { position: relative; }
.cta-overlay-btn { display: none; }

/* ============================================
   상담 폼 - 배경 이미지 위에 입력창 오버레이

   첫번째/두번째 폼 모두 Lead Form.jpg (720×1280) 사용
     이름창:  top 19.9%, height 2.7%  (y=255~290)
     연락처:  top 24.6%, height 6.2%  (y=315~395)
     하늘색 CTA버튼: top 84.4%, height 12.5% (y=1080~1240)
   ============================================ */
/* ============================================
   상담 폼
   Lead Form.jpg (720×1280) = 비율 177.78%
   .form-bg-wrap 에 padding-top: 177.78% 로 높이 고정
   자식 요소들을 position:absolute + % 로 정확 배치
   ============================================ */
.sec-form, .sec-form2 {
  background: #f5f5f5;
  line-height: 0;
}

.form-bg-wrap {
  position: relative;
  width: 100%;
  /* Lead Form.jpg 비율 고정: 1280/720 = 177.78% */
  padding-top: 177.78%;
  line-height: 0;
  overflow: hidden;
}

/* 배경 이미지: wrap 전체를 꽉 채움 */
.form-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* 폼 컨테이너: wrap 위에 완전히 겹침 */
.form-overlay-fields {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; /* 이미지 클릭 방해 안 하도록 */
}

/* 입력창 행: top/height는 인라인 style로 지정 */
.form-input-row {
  position: absolute;
  left: 4%;
  width: 92%;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 0 3%;
  pointer-events: all;
  z-index: 10;
}
.form-input-row:focus-within {
  border-color: #1a8fd1;
  background: #fff;
}

.form-label {
  font-size: clamp(12px, 3.2vw, 22px);
  font-weight: 700; color: #222;
  white-space: nowrap; margin-right: 6px;
  flex-shrink: 0; line-height: 1;
}
.form-input-row input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-size: clamp(12px, 3.2vw, 16px);
  font-family: inherit; color: #333;
  -webkit-appearance: none; min-width: 0;
  height: 100%;
}
.form-input-row input::placeholder { color: #bbb; }

/* 하늘색 CTA 버튼: 투명 버튼으로 이미지 위에 정확히 겹침 */
.form-cta-btn {
  position: absolute;
  left: 4%;
  width: 92%;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: all;
  z-index: 10;
  border-radius: 10px;
  -webkit-tap-highlight-color: rgba(30,160,220,0.2);
}
.form-cta-btn:active { background: rgba(255,255,255,0.15); }

/* 기존 btn-submit (혹시 남아있을 경우) */
.btn-submit {
  width: 100%; border: none; background: none;
  padding: 0; cursor: pointer; display: block;
  line-height: 0;
}
.btn-submit:active { opacity: 0.85; }

/* ============================================
   실시간 상담 접수현황
   img_08.jpg (720×1123) 배경 위에
   img_08_Scroll.png (556×1169) absolute 오버레이
   ============================================ */
.sec-realtime { background: #fff; line-height: 0; }

.realtime-bg-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}
.realtime-bg-img { width: 100%; height: auto; display: block; }

.scroll-ticker-wrap {
  position: absolute;
  top: 26.0%;          /* 타이틀 끝(y=270, 24.0%) */
  left: 11.4%;         /* (720-556)/2/720 = 중앙 정렬 */
  width: 77.2%;        /* 556/720 */
  height: 74.0%;       /* 나머지 영역 */
  overflow: hidden;
  z-index: 5;
}

.scroll-ticker {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: tickerUp 20s linear infinite;
}
.scroll-ticker:hover { animation-play-state: paused; }
.scroll-img { width: 100%; height: auto; display: block; flex-shrink: 0; }

@keyframes tickerUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ── 푸터 ── */
.site-footer { line-height: 0; background: #fff; }

/* ── 하단 고정 배너 ── */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 720px;
  z-index: 1000; display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.22);
}
.fixed-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  padding: clamp(8px, 2.2vw, 12px) 4px;
  text-decoration: none;
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 700; font-family: inherit;
  letter-spacing: -0.3px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.fixed-btn:active { opacity: 0.75; }
.fixed-btn span   { color: #fff; line-height: 1; }
.fixed-btn-call   { background: #1a8fd1; }
.fixed-btn-kakao  { background: #f9e000; }
.fixed-btn-kakao span { color: #3c1e1e; }
.fixed-btn-form   { background: #ff6b00; }

/* ── 성공 모달 ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.58); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px;
  padding: clamp(24px, 7vw, 36px) clamp(18px, 5vw, 28px);
  text-align: center; width: 90%; max-width: 300px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.22);
}
.modal-icon {
  width: 52px; height: 52px; background: #ff6b00; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; margin: 0 auto 14px;
}
.modal-box h3 { font-size: clamp(15px, 4vw, 18px); font-weight: 700; color: #111; margin-bottom: 10px; line-height: 1.45; }
.modal-box p  { font-size: clamp(12px, 3.2vw, 14px); color: #666; line-height: 1.8; margin-bottom: 18px; }
.modal-close  {
  width: 100%; height: clamp(40px, 11vw, 48px);
  background: #1a8fd1; color: #fff; border: none; border-radius: 8px;
  font-size: clamp(14px, 3.8vw, 16px); font-weight: 700;
  cursor: pointer; font-family: inherit;
}

/* ── 앵커 오프셋 ── */
#consult-form, #consult-form2 { scroll-margin-top: 60px; }

/* ── 반응형 ── */
@media (max-width: 320px) {
  .form-field { min-height: 32px; }
  .fixed-btn  { font-size: 9px; gap: 2px; }
}
@media (min-width: 721px) {
  body { background: #e0e0e0; }
  .fixed-header, .fixed-bottom-bar { max-width: 720px; }
}