/* ============================================
   새출발지원센터 랜딩페이지 CSS
   그누보드 5.6.13 / 카페24 기준
   ============================================ */

*, *::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: #fff;
  max-width: 720px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   고정 헤더
   ============================================ */
.fixed-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  z-index: 1000;
  background: #1a5fa8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  height: 56px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-call,
.btn-kakao {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-btn-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.header-spacer {
  height: 56px;
}

/* ============================================
   공통 섹션
   ============================================ */
.sec {
  width: 100%;
  display: block;
  line-height: 0;
}

.sec-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.sec-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   상담 신청 폼 섹션
   ============================================ */
.sec-form,
.sec-form2 {
  background: #f5f5f5;
}

.form-wrap {
  width: 100%;
}

.form-top-img {
  width: 100%;
  display: block;
}

.consult-form-box {
  padding: 0 20px 20px;
  background: #fff;
  margin: 0;
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  padding-left: 4px;
}

.form-field input {
  width: 100%;
  height: 50px;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-field input:focus {
  border-color: #1a5fa8;
}

.form-privacy {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  margin: 10px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.form-privacy p {
  margin-bottom: 6px;
}

.form-privacy p:last-child {
  margin-bottom: 0;
}

.form-info-img {
  width: 100%;
  display: block;
  margin: 12px 0;
}

.btn-submit {
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: block;
  margin-top: 4px;
}

.cta-img {
  width: 100%;
  display: block;
}

/* ============================================
   실시간 상담 접수현황 (자동 스크롤)
   ============================================ */
.sec-realtime {
  background: #fff;
  overflow: hidden;
}

.realtime-title-wrap {
  width: 100%;
}

.scroll-ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* 최대 400px 높이로 뷰포트 잘라서 보여줌 */
  height: 400px;
}

.scroll-ticker {
  display: flex;
  flex-direction: column;
  animation: scrollUp 25s linear infinite;
  will-change: transform;
}

.scroll-ticker:hover {
  animation-play-state: paused;
}

.scroll-img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

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

/* ============================================
   하단 고정 배너
   ============================================ */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  z-index: 1000;
  display: flex;
  background: #111;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.fixed-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.fixed-btn:active {
  opacity: 0.8;
}

.fixed-btn span {
  color: #fff;
  font-family: inherit;
  line-height: 1;
}

.fixed-btn-call {
  background: #1a5fa8;
}

.fixed-btn-kakao {
  background: #f9e000;
}

.fixed-btn-kakao svg {
  fill: #3c1e1e;
}

.fixed-btn-kakao span {
  color: #3c1e1e;
}

.fixed-btn-form {
  background: #ff6b00;
}

/* 하단 고정 배너 높이만큼 body 여백 */
body {
  padding-bottom: 60px;
}

/* ============================================
   성공 모달
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: #ff6b00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 20px;
}

.modal-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.4;
}

.modal-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-close {
  width: 100%;
  height: 48px;
  background: #1a5fa8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   반응형 태블릿 대응
   ============================================ */
@media (min-width: 480px) {
  .header-inner {
    padding: 10px 24px;
    height: 62px;
  }

  .header-spacer {
    height: 62px;
  }

  .logo-icon {
    width: 42px;
    height: 42px;
  }

  .logo-text {
    height: 26px;
  }

  .header-btn-img {
    height: 40px;
  }

  .fixed-btn {
    padding: 12px 8px;
    font-size: 12px;
    gap: 5px;
  }

  .scroll-ticker-wrap {
    height: 480px;
  }
}

@media (min-width: 720px) {
  body {
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
  }
}

/* ============================================
   앵커 오프셋 (고정 헤더 고려)
   ============================================ */
#consult-form,
#consult-form2 {
  scroll-margin-top: 56px;
}

@media (min-width: 480px) {
  #consult-form,
  #consult-form2 {
    scroll-margin-top: 62px;
  }
}
