/**
 * 🕊️ hospice-web-pwa / funeral-guide.css
 * 안심장례 & 초보 상주 3일 가이드 전용 스타일시트
 * 1.8px 라인형 아이콘, 모던 클린 라운드 카드 및 300줄 레고 블록 수호
 */

.funeral-guide-wrapper {
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* 1. 상단 안내 헤더 배너 */
.funeral-header-card {
  background: var(--bg-surface, #ffffff);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funeral-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary-pale, #E2ECE6);
  color: var(--color-primary-dark, #2C4C3E);
  font-size: var(--font-size-xs, 11px);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  width: fit-content;
}

.funeral-header-title {
  font-size: var(--font-size-lg, 17px);
  font-weight: 800;
  color: var(--text-primary, #18231E);
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.funeral-header-desc {
  font-size: var(--font-size-xs, 12px);
  color: var(--text-secondary, #3D4A43);
  line-height: 1.5;
  margin: 0;
}

/* 2. D-Day 3단계 세그먼트 전환 바 */
.funeral-phase-bar {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
}

.funeral-phase-btn {
  flex: 1;
  padding: 10px 4px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: var(--font-size-xs, 12px);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.funeral-phase-btn.active {
  background: var(--bg-surface, #ffffff);
  color: var(--color-primary, #3E6553);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.phase-step-tag {
  font-size: 10px;
  opacity: 0.85;
}

/* 3. 체크리스트 섹션 */
.funeral-checklist-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-card {
  background: var(--bg-surface, #ffffff);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.checklist-card:active {
  background: #f8fafc;
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.8px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checklist-card.checked .checklist-checkbox {
  background: var(--color-primary, #3E6553);
  border-color: var(--color-primary, #3E6553);
}

.checklist-check-icon {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2.2px;
  fill: none;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}

.checklist-card.checked .checklist-check-icon {
  opacity: 1;
  transform: scale(1);
}

.checklist-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checklist-title {
  font-size: var(--font-size-sm, 13.5px);
  font-weight: 700;
  color: var(--text-primary, #18231E);
  line-height: 1.4;
  transition: color 0.15s ease;
}

.checklist-card.checked .checklist-title {
  color: #94a3b8;
  text-decoration: line-through;
}

.checklist-desc {
  font-size: var(--font-size-xs, 11.5px);
  color: var(--text-secondary, #475569);
  line-height: 1.45;
  margin: 0;
}

.checklist-card.checked .checklist-desc {
  color: #cbd5e1;
}

/* 4. 원클릭 액션 박스 */
.funeral-action-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-funeral-action {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  font-size: var(--font-size-sm, 13px);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-funeral-primary {
  background: var(--color-primary, #3E6553);
  color: #ffffff;
}

.btn-funeral-primary:hover {
  background: var(--color-primary-dark, #2C4C3E);
}

.btn-funeral-secondary {
  background: #f1f5f9;
  color: var(--text-primary, #18231E);
}

.btn-funeral-secondary:hover {
  background: #e2e8f0;
}

/* 5. 법적 실드 & 사기 방어 알림 배너 */
.funeral-shield-banner {
  background: #fffbeb;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.shield-banner-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-tertiary-dark, #9E7027);
  flex-shrink: 0;
  margin-top: 1px;
}

.shield-banner-text {
  font-size: var(--font-size-xs, 11.5px);
  color: #78350f;
  line-height: 1.5;
}

.shield-banner-text strong {
  font-weight: 800;
  color: #92400e;
}

/* 6. 상주 선언문 모달 & 대형 스크립트 */
.btn-funeral-script {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: var(--font-size-sm, 13.5px);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-funeral-script:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.sangju-script-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.script-modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPopIn 0.22s ease-out;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.script-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.script-modal-header h4 {
  font-size: var(--font-size-base, 16px);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
}

.script-large-text {
  font-size: 15px;
  line-height: 1.65;
  color: #1e293b;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary-main, #346083);
  font-weight: 600;
  word-break: keep-all;
}

.script-modal-tip {
  font-size: var(--font-size-xs, 12px);
  color: #64748b;
  margin-top: 14px;
  line-height: 1.45;
}

