/* 포켓클래스 교육 신청 웹앱 */
:root {
  --primary: #00529C;
  --primary-hover: #004584;
  --primary-dark: #00396D;
  --primary-grad-end: #1a6cb3;
  --primary-light: #E5EDF5;
  --accent: #1a6cb3;
  --accent-light: #e8f4fd;
  --success: #28a745;
  --success-bg: #d4edda;
  --warn: #ffc107;
  --warn-bg: #fff0d0;
  --error: #dc3545;
  --error-bg: #f5d7d7;
  --info: #17a2b8;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --bg: #f8f9fa;
  --card: #fff;
  --text: #1f2937;
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Malgun Gothic", "맑은 고딕", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- 레이아웃 --- */
.container { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }

header {
  background: var(--primary);
  color: #fff;
  padding: 24px 16px;
  text-align: center;
}
header h1 { font-size: 1.3rem; font-weight: 700; }
header .subtitle { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* --- 교육 안내 요약 바 --- */
.edu-summary-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--primary-light);
  font-size: 0.85rem;
  color: var(--primary);
}
.edu-summary-bar strong { font-weight: 700; }
.edu-summary-bar .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
}

/* --- 강의 카드 --- */
.lecture-cards { display: flex; flex-direction: column; gap: 10px; }
.lecture-card {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lecture-card:hover { border-color: var(--primary); background: var(--primary-light); }
.lecture-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35,71,168,0.15);
  background: var(--primary-light);
}
.lecture-card .lc-left { flex: 1; }
.lecture-card .lc-date { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.lecture-card .lc-meta { display: flex; gap: 8px; margin-top: 6px; align-items: center; flex-wrap: wrap; }
.lecture-card .lc-right { text-align: right; flex-shrink: 0; }
.lecture-card .lc-seats { font-size: 0.8rem; color: var(--gray); }
.lecture-card .lc-seats strong { font-size: 1rem; }
.lecture-card .lc-full { color: var(--error); }
.lecture-card.disabled { opacity: 0.5; cursor: not-allowed; }
.lecture-card-loading { text-align: center; color: var(--gray); padding: 24px; font-size: 0.9rem; }

/* --- 스텝 인디케이터 --- */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 20px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--gray-light);
}
.step-indicator .step-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray);
}
.step-item .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.step-item .label { margin-left: 6px; white-space: nowrap; }
.step-item .line {
  width: 24px; height: 2px;
  background: var(--gray-light);
  margin: 0 8px;
}
.step-item.active .num { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-item.active .label { color: var(--primary); font-weight: 600; }
.step-item.done .num { background: var(--success); color: #fff; border-color: var(--success); }
.step-item.done .label { color: var(--success); }

/* --- 카드 / 섹션 --- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  box-shadow: none;
  padding: 1.5rem;
  margin-top: 1rem;
}
.card h2 { font-size: 1.1rem; margin-bottom: 16px; color: var(--primary); }
.card h3 { font-size: 0.95rem; margin: 16px 0 8px; }

/* --- 폼 --- */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.form-group label .required { color: var(--error); margin-left: 2px; }
.form-group .hint { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(35,71,168,0.1);
}
input.error, select.error { border-color: var(--error); }
.error-msg { font-size: 0.75rem; color: var(--error); margin-top: 2px; }

/* 라디오 / 체크박스 그룹 */
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-group label, .checkbox-group label {
  font-weight: 400;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 0.9rem;
}

/* --- 버튼 --- */
.btn {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #8da2d6; cursor: not-allowed; }
.btn-secondary { background: var(--gray-light); color: var(--text); }
.btn-secondary:hover { background: #d1d5db; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1f6b1f; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* --- 탭 --- */
.tabs { display: flex; border-bottom: 2px solid var(--gray-light); margin-bottom: 16px; }
.tabs .tab {
  padding: 8px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--gray);
}
.tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* --- 테이블 --- */
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { background: var(--primary-light); color: var(--primary); padding: 8px; text-align: left; font-weight: 600; }
td { padding: 8px; border-bottom: 1px solid var(--gray-light); }
td input { width: 100%; padding: 6px 8px; border: 1px solid var(--gray-light); border-radius: 4px; font-size: 0.85rem; }
tr:hover { background: #fafbfc; }

/* --- 파일 업로드 --- */
.file-drop {
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--gray);
  cursor: pointer;
  transition: border-color 0.2s;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.file-drop .icon { font-size: 2rem; margin-bottom: 8px; }
.file-info { margin-top: 8px; font-size: 0.85rem; color: var(--text); }
.file-info .remove { color: var(--error); cursor: pointer; margin-left: 8px; text-decoration: underline; }

/* --- 안내 박스 --- */
.notice {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text);
}
.notice strong { color: var(--primary); }
.notice-sub { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* --- 배지 --- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-info { background: var(--primary); color: #fff; }
.lecture-card.selected .badge-info { background: #fff; color: var(--primary); }

/* --- 요약 테이블 (Step 5, 상태 페이지) --- */
.summary-table { width: 100%; }
.summary-table th { width: 120px; text-align: right; padding-right: 12px; background: none; color: var(--gray); font-weight: 500; }
.summary-table td { color: var(--text); }

/* Step 5 확인 화면 */
.confirm-section-title { font-size: 0.95rem; margin: 1.25rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); color: var(--primary); }
.confirm-trainee-list { overflow-x: auto; }
.confirm-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.confirm-table th { background: var(--primary-light); color: var(--primary); padding: 0.5rem 0.75rem; text-align: left; font-weight: 600; white-space: nowrap; }
.confirm-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--gray-light); }
.confirm-table .tc { text-align: center; color: var(--gray); }
.confirm-files { display: flex; flex-direction: column; gap: 0.5rem; }
.confirm-file-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; background: var(--bg); border-radius: var(--radius); font-size: 0.88rem; }
.confirm-file-label { font-weight: 600; color: var(--text); min-width: 100px; }

/* 조회 결과 카드 */
.check-result-card {
  display: block;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.check-result-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Step 5 하단 버튼: 이전/신청하기 가로 비율 */
.nav-buttons-submit { display: flex; gap: 0.75rem; }
.nav-buttons-submit .btn-secondary { flex: 1; }
.nav-buttons-submit .btn-primary { flex: 3; font-size: 1.05rem; padding: 0.875rem; }

/* --- 로딩 오버레이 --- */
.loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  z-index: 999;
  font-size: 1.1rem; font-weight: 600; color: var(--primary);
}
.spinner {
  width: 36px; height: 36px;
  border: 4px solid var(--gray-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 상태 페이지 --- */
.status-card {
  text-align: center;
  padding: 32px 24px;
}
.status-card .status-icon { font-size: 3rem; margin-bottom: 12px; }
.status-card .status-text { font-size: 1.1rem; font-weight: 600; }
.status-card .status-sub { font-size: 0.9rem; color: var(--gray); margin-top: 4px; }

.payment-info {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.payment-info .amount { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.payment-info .account { font-size: 0.95rem; margin-top: 8px; }

.zoom-card {
  background: #e8f4fd;
  border: 2px solid #2196f3;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}
.zoom-card .btn-enter {
  background: #2196f3;
  color: #fff;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 12px;
  text-decoration: none;
  display: inline-block;
}
.zoom-card .btn-enter:hover { background: #1976d2; }

/* ===== 랜딩 페이지 ===== */
.lp-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 스크롤 애니메이션 */
.lp-anim { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.lp-anim.visible { opacity: 1; transform: translateY(0); }

/* 헤더 내비 */
.lp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #fff;
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lp-nav img { height: 32px; }
.lp-nav-links { display: flex; gap: 0.5rem; align-items: center; }
.lp-nav .btn { padding: 0.5rem 1.5rem; font-size: 0.85rem; border-radius: var(--radius); text-decoration: none; }

/* Hero */
.lp-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-grad-end) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 20px 6rem;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.lp-hero::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.lp-hero .lp-wrap { position: relative; z-index: 1; }
.lp-hero h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; letter-spacing: -0.02em; }
.lp-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}
.lp-hero-sub { font-size: 1.1rem; opacity: 0.9; line-height: 1.8; margin-bottom: 36px; }
.btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 16px 52px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* 웨이브 구분선 */
.lp-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}
.lp-wave-flip { transform: scaleY(-1); margin-bottom: -1px; margin-top: 0; }

/* 소셜 프루프 */
.lp-social-proof {
  background: var(--card);
  padding: 40px 20px;
  border-bottom: 1px solid var(--gray-light);
}
.lp-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.lp-stat { text-align: center; }
.lp-stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.lp-stat-num .accent-num { color: var(--primary-grad-end); }
.lp-stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }

/* 섹션 공통 */
.lp-section { padding: 3.5rem 2rem; }
.lp-section.bg-light { background: var(--bg); }
.lp-title { text-align: center; font-size: 1.75rem; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.02em; }
.lp-subtitle { text-align: center; font-size: 0.85rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.lp-desc { text-align: center; color: var(--gray); font-size: 0.95rem; line-height: 1.8; margin-bottom: 40px; }

/* 3열 카드 */
.lp-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.lp-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}
.lp-card:hover { transform: translateY(-5px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.lp-card.accent { border-top: 3px solid var(--primary); }
.lp-card-icon {
  width: 44px; height: 44px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-grad-end) 100%);
  color: #fff;
}
.lp-card.accent .lp-card-icon { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-grad-end) 100%); }
.lp-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.lp-card p { font-size: 0.95rem; color: var(--gray); line-height: 1.7; }

/* 가격표 */
.lp-pricing-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 720px; margin: 2.5rem auto 0; }
.lp-price-card {
  background: var(--card);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.lp-price-card:hover { transform: translateY(-5px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.lp-price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,82,156,0.12);
  transform: scale(1.03);
}
.lp-price-card.featured:hover { transform: scale(1.03) translateY(-5px); box-shadow: 0 8px 24px rgba(0,82,156,0.16); }
.lp-price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-grad-end) 100%);
  color: #fff;
  padding: 5px 20px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,82,156,0.25);
}
.lp-price-highlight {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: left;
}
.lp-price-highlight strong { font-size: 0.9rem; color: var(--primary); }
.lp-price-highlight p { font-size: 0.8rem; color: var(--gray); line-height: 1.6; margin-top: 0.25rem; }
.lp-price-label { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lp-price-amount { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.lp-price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--gray); }
.lp-price-list { list-style: none; text-align: left; margin-bottom: 28px; }
.lp-price-list li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-light);
}
.lp-price-list li::before { content: "\2713\0020"; color: var(--success); font-weight: 700; margin-right: 4px; }
.lp-pricing-note { text-align: center; font-size: 0.8rem; color: var(--gray); margin-top: 20px; }

/* FAQ */
.faq-list { max-width: 700px; margin: 2rem auto 0; }
.faq-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 0.625rem;
  background: var(--card);
  transition: all 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); font-weight: 300; transition: transform 0.2s; }
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item p { padding: 0 22px 18px; font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* 하단 CTA */
.lp-bottom-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-grad-end) 100%) !important;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}
.lp-bottom-cta h2 { color: #fff; font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.lp-bottom-cta p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1rem; }

/* 푸터 */
.lp-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.5);
  padding: 32px 20px;
  font-size: 0.8rem;
  line-height: 1.8;
}
.lp-footer .lp-wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.lp-footer-left { flex: 1; min-width: 200px; }
.lp-footer-left img { height: 28px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.6; }
.lp-footer-right { text-align: right; }
.lp-footer a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* ===== 반응형 ===== */
@media (max-width: 600px) {
  .container { padding: 12px 8px 40px; }
  .card { padding: 16px; }
  .step-item .label { display: none; }
  .step-item .line { width: 16px; margin: 0 4px; }
  .nav-buttons { flex-direction: column-reverse; gap: 0.5rem; }
  .nav-buttons .btn { width: 100%; }
  .nav-buttons-submit { flex-direction: row; }
  .nav-buttons-submit .btn { width: auto; }

  /* 랜딩 반응형 */
  .lp-hero { padding: 56px 16px 72px; }
  .lp-hero h1 { font-size: 1.7rem; }
  .lp-hero-sub { font-size: 0.95rem; }
  .lp-cards-3 { grid-template-columns: 1fr; }
  .lp-pricing-table { grid-template-columns: 1fr; }
  .lp-price-card.featured { transform: none; }
  .lp-price-card.featured:hover { transform: translateY(-4px); }
  .btn-cta { padding: 14px 36px; font-size: 1rem; }
  .lp-section { padding: 48px 12px; }
  .lp-stats { gap: 24px; }
  .lp-stat-num { font-size: 1.5rem; }
  .lp-footer .lp-wrap { flex-direction: column; }
  .lp-footer-right { text-align: left; }
  .lp-nav img { height: 28px; }
  .lp-wave { height: 40px; }
}
