/* ================================================
   apply.css  –  다제약물 신청 방법 안내 페이지 전용
   ================================================ */

/* ────────────────────────────────
   공통 - 사이트 내비게이션 탭
   ──────────────────────────────── */
.site-nav {
  background: rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,255,255,.12);
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-tab-active {
  color: #fff !important;
  border-bottom-color: #fff;
  background: rgba(255,255,255,.12);
  font-weight: 700;
}

/* ────────────────────────────────
   히어로 섹션
   ──────────────────────────────── */
.apply-hero {
  background: linear-gradient(135deg, #1e4db7 0%, #2563eb 50%, #0d6f56 100%);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.apply-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.apply-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 36px;
  flex-wrap: wrap;
}

.apply-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.apply-hero-text h2 {
  font-size: 2rem;
  font-weight: 400;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
  margin-bottom: 12px;
}

.apply-hero-text h2 strong {
  font-weight: 800;
  color: #fff;
}

.apply-hero-text p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  line-height: 1.7;
}

.apply-hero-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.hero-stat {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 18px 22px;
  text-align: center;
  color: #fff;
  min-width: 90px;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .76rem;
  opacity: .85;
  line-height: 1.4;
}

/* ────────────────────────────────
   섹션 공통
   ──────────────────────────────── */
.apply-section { padding: 28px 28px 32px; }

/* ────────────────────────────────
   프로세스 플로우
   ──────────────────────────────── */
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Step 카드 */
.process-step {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.process-step:hover { box-shadow: 0 6px 24px rgba(0,0,0,.10); }

/* Step 헤더 */
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: #f8faff;
  border-bottom: 1px solid #e5e7eb;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
  background: linear-gradient(135deg, #3b6fd4, #2a52a8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,111,212,.35);
}

.step-badge-2 { background: linear-gradient(135deg, #0d6f56, #065f46); box-shadow: 0 2px 8px rgba(13,111,86,.35); }
.step-badge-3 { background: linear-gradient(135deg, #b45309, #92400e); box-shadow: 0 2px 8px rgba(180,83,9,.35); }
.step-badge-4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 2px 8px rgba(124,58,237,.35); }

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title i { color: #3b6fd4; }

.process-step[data-step="2"] .step-title i { color: #0d6f56; }
.process-step[data-step="3"] .step-title i { color: #b45309; }
.process-step[data-step="4"] .step-title i { color: #7c3aed; }

/* Step 바디 */
.step-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}

/* 강의 경로 박스 */
.step-path-box {
  background: #f0f4ff;
  border: 1px solid #c7d8fc;
  border-radius: 10px;
  padding: 14px 18px;
}

.path-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: #3b6fd4;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.path-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.path-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #c7d8fc;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .84rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.path-item i { color: #3b6fd4; font-size: .85rem; }

.path-item-final {
  background: #3b6fd4;
  border-color: #3b6fd4;
  color: #fff;
  font-weight: 700;
}

.path-item-final i { color: rgba(255,255,255,.85); }

.path-arrow {
  color: #9ca3af;
  font-size: .75rem;
  flex-shrink: 0;
}

/* 메타 정보 행 */
.step-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.step-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  flex: 1;
  min-width: 200px;
}

.step-meta-item > i {
  font-size: 1.2rem;
  color: #3b6fd4;
  flex-shrink: 0;
}

.meta-label {
  display: block;
  font-size: .73rem;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 2px;
}

.meta-value {
  font-size: .88rem;
  color: #374151;
  font-weight: 500;
}

.highlight-free strong { color: #0d6f56; }

/* 설명 박스 */
.step-desc-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f9fafb;
  border-left: 4px solid #3b6fd4;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: .9rem;
  color: #374151;
}

.process-step[data-step="2"] .step-desc-box { border-left-color: #0d6f56; }
.process-step[data-step="3"] .step-desc-box { border-left-color: #b45309; }
.process-step[data-step="4"] .step-desc-box { border-left-color: #7c3aed; }

.step-desc-box > i { color: #3b6fd4; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.process-step[data-step="2"] .step-desc-box > i { color: #0d6f56; }
.process-step[data-step="3"] .step-desc-box > i { color: #b45309; }
.process-step[data-step="4"] .step-desc-box > i { color: #7c3aed; }

.step-desc-box p { margin: 0 0 3px; }
.step-desc-box strong { font-weight: 700; }
.sub-desc { font-size: .82rem; color: #6b7280; margin-top: 4px; }

/* 커넥터 화살표 */
.process-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.process-connector i {
  font-size: 1.4rem;
  color: #3b6fd4;
  background: #e8effe;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #c7d8fc;
}

/* ────────────────────────────────
   커리큘럼 박스
   ──────────────────────────────── */
.curriculum-box {
  border: 1px solid #d1fae5;
  border-radius: 10px;
  overflow: hidden;
}

.curriculum-header {
  background: linear-gradient(90deg, #0d6f56, #065f46);
  color: #fff;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.curriculum-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.curriculum-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid #f0fdf4;
  transition: background .15s;
}

.curriculum-list li:last-child { border-bottom: none; }
.curriculum-list li:hover { background: #f0fdf4; }

.cur-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e6f7f3;
  color: #0d6f56;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cur-name {
  font-size: .9rem;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.5;
}

/* ────────────────────────────────
   서류 그리드
   ──────────────────────────────── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.doc-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 12px 14px;
  text-align: center;
  transition: all .2s;
  cursor: default;
}

.doc-card:hover {
  border-color: #b45309;
  box-shadow: 0 4px 14px rgba(180,83,9,.12);
  transform: translateY(-2px);
}

.doc-card.doc-required {
  border-color: #fcd975;
  background: #fffbeb;
}

.doc-card.doc-required:hover { border-color: #f59e0b; }

.doc-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #b45309;
}

.doc-card.doc-required .doc-icon { color: #d97706; }

.doc-name {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}

.doc-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  background: #fef3c7;
  color: #d97706;
}

.doc-tag-form {
  background: #ede9fe;
  color: #7c3aed;
}

/* 안내 박스 */
.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fcd975;
  border-radius: 8px;
  font-size: .87rem;
  color: #374151;
  line-height: 1.7;
}

.notice-box > i {
  color: #d97706;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-link {
  color: #2a52a8;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #2a52a8;
}

.notice-link:hover { color: #3b6fd4; }

/* ────────────────────────────────
   제출 플로우 (Step 4)
   ──────────────────────────────── */
.submit-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 10px;
  background: #f5f3ff;
  border-radius: 10px;
  border: 1px solid #e9d5ff;
}

.submit-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.submit-node span {
  font-size: .78rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}

.submit-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 3px 10px rgba(124,58,237,.3);
}

.submit-icon-2 { background: linear-gradient(135deg, #3b6fd4, #2a52a8); box-shadow: 0 3px 10px rgba(59,111,212,.3); }
.submit-icon-3 { background: linear-gradient(135deg, #b45309, #92400e); box-shadow: 0 3px 10px rgba(180,83,9,.3); }
.submit-icon-4 { background: linear-gradient(135deg, #0d6f56, #065f46); box-shadow: 0 3px 10px rgba(13,111,86,.3); }

.submit-node-final .submit-icon-4 { box-shadow: 0 4px 16px rgba(13,111,86,.5); }

.submit-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #7c3aed;
  font-size: .9rem;
}

.submit-arrow span {
  font-size: .68rem;
  color: #9ca3af;
  font-weight: 600;
}

/* ────────────────────────────────
   위촉 절차 요약
   ──────────────────────────────── */
.procedure-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.proc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  flex: 1;
  min-width: 120px;
  transition: all .2s;
}

.proc-step:hover {
  border-color: #3b6fd4;
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,111,212,.12);
}

.proc-step-final {
  border-color: #0d6f56;
  background: #e6f7f3;
}

.proc-step-final:hover { border-color: #0d6f56; background: #d1f5ec; }

.proc-num {
  width: 26px;
  height: 26px;
  background: #3b6fd4;
  color: #fff;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proc-num-final { background: #0d6f56; font-size: .9rem; }

.proc-icon {
  font-size: 1.5rem;
  color: #3b6fd4;
}

.proc-step-final .proc-icon { color: #0d6f56; }

.proc-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proc-text strong {
  font-size: .88rem;
  font-weight: 700;
  color: #1f2937;
}

.proc-text span {
  font-size: .75rem;
  color: #6b7280;
  line-height: 1.4;
}

.proc-arrow {
  color: #d1d5db;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ────────────────────────────────
   참고 정보 카드
   ──────────────────────────────── */
.info-cards-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.info-card {
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid transparent;
}

.info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }

.info-card-blue  { background: linear-gradient(135deg, #e8effe 0%, #dce8ff 100%); border-color: #c7d8fc; }
.info-card-green { background: linear-gradient(135deg, #e6f7f3 0%, #d1f5ec 100%); border-color: #a7e3d4; }
.info-card-purple{ background: linear-gradient(135deg, #f3f0ff 0%, #ede9fe 100%); border-color: #c4b5fd; }
.info-card-orange{ background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-color: #fcd975; }

.info-card-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.info-card-blue   .info-card-icon { color: #3b6fd4; }
.info-card-green  .info-card-icon { color: #0d6f56; }
.info-card-purple .info-card-icon { color: #7c3aed; }
.info-card-orange .info-card-icon { color: #b45309; }

.info-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.info-card p {
  font-size: .85rem;
  color: #374151;
  line-height: 1.6;
}

.info-big-num {
  font-size: 1.1rem;
  font-weight: 400;
}

.info-big-num strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #3b6fd4;
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0d6f56;
  font-weight: 700;
  text-decoration: none;
  font-size: .88rem;
  border-bottom: 1px dashed #0d6f56;
}

.info-link:hover { color: #065f46; }

/* ────────────────────────────────
   체크리스트
   ──────────────────────────────── */
.checklist-section {}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.checklist-group h4 {
  font-size: .92rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.checklist-group:first-child h4 i { color: #0d6f56; }
.checklist-group:last-child  h4 i { color: #b45309; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist li label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  cursor: pointer;
  transition: all .15s;
  font-size: .87rem;
  color: #374151;
}

.checklist li label:hover { background: #f0f4ff; border-color: #c7d8fc; }

.checklist li label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3b6fd4;
  flex-shrink: 0;
  cursor: pointer;
}

.checklist li label.checked-item {
  background: #e6f7f3;
  border-color: #a7e3d4;
  color: #6b7280;
  text-decoration: line-through;
}

/* 진행률 바 */
.checklist-progress-wrap {
  margin-top: 4px;
}

.checklist-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.checklist-progress-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b6fd4, #0d6f56);
  border-radius: 20px;
  transition: width .4s ease;
}

/* ────────────────────────────────
   반응형
   ──────────────────────────────── */
@media (max-width: 1024px) {
  .info-cards-section { grid-template-columns: repeat(2, 1fr); }
  .procedure-summary  { gap: 4px; }
}

@media (max-width: 768px) {
  .apply-hero-inner   { flex-direction: column; padding: 24px 20px; }
  .apply-hero-stats   { width: 100%; justify-content: center; }
  .apply-hero-text h2 { font-size: 1.5rem; }
  .checklist-grid     { grid-template-columns: 1fr; }
  .path-flow          { gap: 6px; }
  .path-item          { padding: 5px 9px; font-size: .78rem; }
  .submit-flow        { gap: 6px; }
  .submit-icon        { width: 44px; height: 44px; font-size: 1.1rem; }
  .procedure-summary  { flex-direction: column; align-items: stretch; }
  .proc-arrow         { transform: rotate(90deg); align-self: center; }
  .proc-step          { flex-direction: row; text-align: left; align-items: center; gap: 12px; }
}

@media (max-width: 600px) {
  .info-cards-section { grid-template-columns: 1fr; }
  .docs-grid          { grid-template-columns: repeat(2, 1fr); }
  .step-meta-row      { flex-direction: column; }
  .site-nav-inner     { gap: 0; }
  .nav-tab            { padding: 10px 14px; font-size: .82rem; }
}

/* ────────────────────────────────
   애니메이션
   ──────────────────────────────── */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.process-step {
  animation: slideInUp .4s ease both;
}

.process-step:nth-child(1)  { animation-delay: .05s; }
.process-step:nth-child(3)  { animation-delay: .15s; }
.process-step:nth-child(5)  { animation-delay: .25s; }
.process-step:nth-child(7)  { animation-delay: .35s; }

.info-card { animation: slideInUp .4s ease both; }
.info-card:nth-child(1) { animation-delay: .05s; }
.info-card:nth-child(2) { animation-delay: .10s; }
.info-card:nth-child(3) { animation-delay: .15s; }
.info-card:nth-child(4) { animation-delay: .20s; }
