/* =========================================
   SHINCHAFIT MODERN LUXURY THEME (홈 전용)
   v8 · 다른 페이지(nf.css)와 독립
   ========================================= */
:root {
  --bg-main: #0a0c10;
  --bg-card: #13171f;
  --bg-card-hover: #1c222e;
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #8b99ad;          /* 소형 보조 텍스트 — 어두운 배경 위 4.5:1 확보 */
  --border-line: rgba(255, 255, 255, 0.1);
  --accent-cyan: #38bdf8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body.dark-theme {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* 키보드 포커스 — 어두운 테마 위에서 시안으로 명확히 */
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; border-radius: 4px; }

/* HEADER */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-logo span { color: var(--accent-cyan); }
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 10px 2px;           /* 탭 영역 확보 */
}
.nav-links a:hover { color: #ffffff; }
.btn-header-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-header-cta:hover { transform: translateY(-1px); }

/* HERO VIDEO SECTION */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px 20px;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-dim-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 12, 16, 0.68) 0%, rgba(10, 12, 16, 0.92) 75%, #0a0c10 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.hero-main-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-cyan);   /* 미지원 브라우저 폴백 */
}
.hero-sub-text {
  font-size: 1.1rem;
  color: #cbd6e3;
  margin-bottom: 32px;
  word-break: keep-all;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px var(--primary-glow);
  transition: all 0.2s;
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--primary-glow);
}

/* 3-STEP QUOTE WIDGET */
.quote-widget-section {
  padding: 60px 20px 80px 20px;
  position: relative;
  z-index: 10;
}
.widget-container {
  max-width: 760px;
  margin: 0 auto;
}
.step-progress-bar {
  margin-bottom: 24px;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  width: 33.33%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transition: width 0.3s ease;
}
.step-nodes {
  display: flex;
  justify-content: space-between;
}
.step-nodes .node {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.step-nodes .node.active { color: var(--accent-cyan); }

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-subheading {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.group-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 10px;
}

/* OPTION GRIDS & CHIPS */
.option-grid {
  display: grid;
  gap: 14px;
}
.option-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 라디오는 시각적으로만 숨김 — display:none 은 키보드 초점을 없애버린다 */
.select-box input, .chip-option input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.box-inner {
  background: #181d27;
  border: 1.5px solid var(--border-line);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.box-icon { font-size: 1.8rem; margin-bottom: 4px; }
.box-inner strong { font-size: 1rem; color: #fff; }
.box-inner small { font-size: 0.75rem; color: var(--text-muted); }
.select-box input:checked + .box-inner {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}
.select-box input:focus-visible + .box-inner,
.chip-option input:focus-visible + span {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.chip-option span {
  display: block;
  background: #181d27;
  border: 1.5px solid var(--border-line);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}
.chip-option input:checked + span {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  color: #fff;
}

/* INPUT FIELDS */
.input-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-field-wrap label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}
.input-field-wrap input {
  width: 100%;
  background: #181d27;
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 15px 16px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.input-field-wrap input::placeholder { color: var(--text-dim); }
.input-field-wrap input:focus { border-color: var(--accent-cyan); }
.input-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 오류 메시지 */
.field-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fca5a5;
  margin-top: 6px;
}
.field-error a { color: #fca5a5; }
input[aria-invalid="true"] { border-color: #f87171 !important; }

/* PRIVACY AGREEMENT — 필수 동의 2건 분리 */
.privacy-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #181d27;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
}
.agree-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.45; }
.agree-label input { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--accent-cyan); }
.privacy-link {
  position: absolute;
  right: 16px;
  top: 14px;
  color: var(--accent-cyan);
  text-decoration: none;
}

/* BUTTONS */
.btn-step-next, .btn-step-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  border: none;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-step-next:hover, .btn-step-submit:hover { transform: translateY(-2px); }
.btn-step-submit[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-dual-wrap { display: flex; gap: 12px; }
.btn-step-prev {
  background: #242c3d;
  color: #cbd5e1;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.anti-spam-notice {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* SUCCESS BOX */
.success-box { text-align: center; padding: 20px 0; }
.success-check-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}
.success-box p { color: var(--text-muted); }
.estimate-summary {
  background: #181d27;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  text-align: left;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.7;
}

/* TRUST SECTION */
.trust-section {
  padding: 60px 20px;
  background: #0f1218;
  border-top: 1px solid var(--border-line);
}
.trust-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 28px 24px;
}
.t-icon { font-size: 2rem; margin-bottom: 12px; }
.trust-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.trust-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* FLOATING QUICK ACTION BAR */
.floating-quick-bar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
}
.quick-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(19, 23, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}
.quick-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}
.q-icon { font-size: 1.15rem; line-height: 1; margin-bottom: 3px; }
.q-label { font-size: 0.65rem; font-weight: 600; letter-spacing: -0.02em; }
.quick-btn.quote-btn { background: rgba(37, 99, 235, 0.2); border-color: rgba(37, 99, 235, 0.4); color: #93c5fd; }
.quick-btn.quote-btn:hover { background: #2563eb; color: #ffffff; }

/* FOOTER */
.main-footer {
  padding: 50px 20px;
  border-top: 1px solid var(--border-line);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}
.footer-container { max-width: 800px; margin: 0 auto; }
.main-footer .brand { font-weight: 800; color: #cbd5e1; font-size: 1rem; }
.footer-links { margin: 12px 0; display: flex; justify-content: center; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.biz-info { margin-top: 6px; line-height: 1.8; }
.biz-info a { color: var(--text-muted); font-weight: 600; text-decoration: none; }
.legal-desc { margin-top: 10px; font-size: 0.78rem; word-break: keep-all; line-height: 1.7; }
.copy { margin-top: 14px; font-size: 0.75rem; }

/* 탭 영역 확장 — 시각 크기는 유지하고 히트 영역만 44px 로 (HIG/Material 최소 타깃) */
.brand-logo, .btn-header-cta, .footer-links a, .biz-info a { position: relative; }
.brand-logo::after, .btn-header-cta::after, .footer-links a::after,
.biz-info a::after, .privacy-link::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 44px);
  height: 44px;
}

/* UTILITY */
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .option-grid-3 { grid-template-columns: 1fr; }
  .input-grid-2 { grid-template-columns: 1fr; }
  .trust-container { grid-template-columns: 1fr; }
  .widget-card { padding: 24px 18px; }
  .hero-section { min-height: 72vh; padding-top: 100px; }
  .floating-quick-bar {
    right: 12px;
    bottom: 20px;
    top: auto;
    transform: none;
  }
  .quick-btn { width: 48px; height: 48px; }
  .q-icon { font-size: 1rem; }
  .q-label { font-size: 0.58rem; }
  .privacy-link { position: static; align-self: flex-end; }
}

/* REDUCED MOTION — 모션 끈 사용자: 전환·연출 즉시 완료 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── GNB 개편: 헤더 액션 + 햄버거 + 모바일 메뉴 (홈 전용) ───────────── */
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
}
.nav-burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #10141c; border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; padding: 8px 20px 14px;
}
.nav-menu a {
  color: #e8ebf0; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-menu a:last-child { border-bottom: 0; }
.nav-menu a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.main-header { position: relative; }
@media (max-width: 768px) {
  .nav-burger { display: flex; }
}
@media (min-width: 769px) {
  .nav-menu { display: none !important; }
}
