/* ══════════════════════════════════════════
   표쌤코딩 견적 요청 & FAQ 페이지
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background: #f5f7ff;
  color: #0f172a;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 5% 0%, rgba(37,99,235,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 0%, rgba(99,102,241,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(37,99,235,0.07) 0%, transparent 55%);
}

.page-wrap { position: relative; z-index: 1; min-height: 100vh; }

/* ── 네비게이션 (메인과 동일) ── */
.navbar {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(calc(100% - 40px), 960px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px; border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(200,215,255,0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(99,120,220,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3); flex-shrink: 0;
}
.nav-title strong { display: block; font-size: 0.95rem; font-weight: 800; color: #1e293b; letter-spacing: -0.02em; }
.nav-title small { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 1px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #64748b;
  text-decoration: none; border: 1px solid rgba(200,215,255,0.7);
  background: rgba(240,245,255,0.6); transition: all 180ms ease;
}
.nav-pill:hover { background: rgba(255,255,255,0.9); color: #2563eb; border-color: rgba(99,130,246,0.3); }
.nav-pill.active { background: rgba(37,99,235,0.08); color: #2563eb; border-color: rgba(37,99,235,0.2); }
.tab-bar-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 20px 0;
  position: relative;
  z-index: 1;
}
.tab-bar {
  display: flex; gap: 6px; margin-bottom: 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(210,225,255,0.8);
  border-radius: 16px; padding: 5px;
  width: fit-content;
  backdrop-filter: blur(12px);
}
.tab-btn {
  padding: 9px 22px; border-radius: 12px; font-size: 0.85rem;
  font-weight: 700; border: none; background: transparent;
  color: #94a3b8; cursor: pointer; transition: all 200ms ease;
  letter-spacing: -0.01em; white-space: nowrap;
  font-family: "Noto Sans KR", sans-serif;
}
.tab-btn:hover {
  background: rgba(37,99,235,0.07); color: #2563eb;
}
.tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; box-shadow: 0 3px 12px rgba(37,99,235,0.28);
  pointer-events: none;
}

/* ── 레이아웃 ── */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 60px;
  gap: 32px;
  min-height: 100vh;
}

/* ── 사이드바 ── */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: left;
}

.sidebar-btn:hover {
  background: rgba(37,99,235,0.06);
  color: #2563eb;
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(99,102,241,0.08));
  border-color: rgba(37,99,235,0.2);
  color: #2563eb;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.sidebar-btn .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}


/* 모바일 하단 통합 내비 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(215,228,255,0.5);
  box-shadow: 0 -4px 24px rgba(99,120,220,0.08);
  font-family: "Noto Sans KR", sans-serif;
}
/* 페이지 탭 행 */
.mobile-bottom-nav .page-tabs {
  display: flex;
  border-bottom: 1px solid rgba(215,228,255,0.4);
  padding: 6px 8px;
  gap: 2px;
  overflow-x: auto;
}
.mobile-bottom-nav .page-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.mobile-bottom-nav .page-tab .tab-icon { font-size: 1.15rem; line-height: 1; }
.mobile-bottom-nav .page-tab.active {
  color: #2563eb;
  font-weight: 700;
  background: rgba(37,99,235,0.06);
}
.mobile-bottom-nav .page-tab:not(.active):active {
  background: rgba(37,99,235,0.05);
}
/* 섹션 전환 행 */
.mobile-bottom-nav .section-tabs {
  display: flex;
  padding: 6px 8px 8px;
  gap: 4px;
  overflow-x: auto;
}
.mobile-bottom-nav .section-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(241,245,249,0.8);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-bottom-nav .section-tab.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.mobile-bottom-nav .section-tab:not(.active):active {
  background: rgba(226,232,240,0.9);
}

/* ── 메인 콘텐츠 ── */
.main-content {
  flex: 1;
  min-width: 0;
}

/* 섹션 기본 */
.content-section {
  display: none;
  animation: fadeIn 400ms ease;
}
.content-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 히어로 배너 ── */
.hero-banner {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  border-radius: 24px;
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-banner .banner-label {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.hero-banner h1 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-banner .banner-sub {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── 섹션 타이틀 ── */
.section-header {
  margin-bottom: 24px;
}
.section-header .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.section-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* ── 공통 카드 ── */
.card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215,228,255,0.9);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(99,120,220,0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,120,220,0.12); }

/* ── 폼 스타일 ── */
.form-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215,228,255,0.9);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(99,120,220,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem; font-weight: 700; color: #475569;
}
.form-group label .required {
  color: #ef4444; margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(215,228,255,0.9);
  border-radius: 12px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.88rem;
  color: #0f172a;
  background: rgba(255,255,255,0.9);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.form-group textarea { resize: vertical; }

/* 체크박스 */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-group label {
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
}

.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: #fff; font-family: "Noto Sans KR", sans-serif;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all 200ms ease;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  margin-top: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }

/* 연락처 안내 박스 */
.info-box {
  margin-top: 28px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(99,102,241,0.04));
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 14px;
  font-size: 0.88rem;
  color: #475569;
  text-align: center;
  font-weight: 600;
}

/* ── FAQ 아코디언 ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215,228,255,0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(99,120,220,0.04);
  transition: box-shadow 200ms ease;
}
.faq-item:hover {
  box-shadow: 0 4px 20px rgba(99,120,220,0.1);
}
.faq-item.open {
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 24px;
  border: none;
  background: transparent;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: color 200ms ease;
}
.faq-question:hover { color: #2563eb; }
.faq-item.open .faq-question { color: #2563eb; }

.faq-question .faq-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(37,99,235,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 300ms ease, background 200ms ease;
}
.faq-item.open .faq-question .faq-icon {
  transform: rotate(180deg);
  background: rgba(37,99,235,0.15);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease, padding 350ms ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.8;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(215,228,255,0.6);
  padding-top: 16px;
}

/* ── 강사 지원 섹션 ── */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.benefit-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215,228,255,0.9);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(99,120,220,0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,120,220,0.12); }

.benefit-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: rgba(37,99,235,0.08);
}
.benefit-card h3 {
  font-size: 0.95rem; font-weight: 800; color: #0f172a;
  margin: 0 0 10px;
}
.benefit-card p {
  font-size: 0.84rem; color: #64748b; line-height: 1.7; margin: 0;
}

.cta-section {
  text-align: center;
  margin-top: 12px;
}

.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 48px;
  border: none; border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: #fff; font-family: "Noto Sans KR", sans-serif;
  font-size: 1rem; font-weight: 800;
  text-decoration: none;
  cursor: pointer; transition: all 200ms ease;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.45); }

.cta-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 12px;
}

/* ── 푸터 ── */
.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid rgba(215,228,255,0.6);
  text-align: center;
}
.footer-info {
  font-size: 0.75rem; color: #94a3b8; line-height: 1.9;
}
.footer-info strong { color: #64748b; font-weight: 700; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    padding: 16px 16px 40px;
    gap: 0;
  }
  .sidebar { display: none !important; }
  .tab-bar-wrap { display: none; }
  .nav-title { display: none; }
  .mobile-bottom-nav { display: block; }
  .main-content { padding-bottom: 120px; }
  .hero-banner { padding: 32px 24px; }
  .form-card { padding: 20px; }
}
