/**
 * 🦽 hospice-web-pwa / welfare-guide.css
 * 노인장기요양 복지용구 85% 국비 대여 안내 및 모의 계산기 스타일시트
 * 1.8px 라인형 아이콘, 칩 선택, 3단계 절차 카드 및 300줄 수호
 */

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

/* 1. 상단 안내 헤더 */
.welfare-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;
}

.welfare-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;
}

.welfare-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;
}

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

/* 2. 본인부담금 모의 계산기 토글 칩 */
.welfare-calc-box {
  background: var(--bg-surface, #ffffff);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-title {
  font-size: var(--font-size-sm, 13px);
  font-weight: 800;
  color: var(--text-primary, #18231E);
}

.calc-chips {
  display: flex;
  gap: 6px;
}

.calc-chip-btn {
  flex: 1;
  padding: 9px 4px;
  border: 1.2px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: var(--font-size-xs, 11px);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.calc-chip-btn.active {
  background: var(--color-primary-pale, #E2ECE6);
  border-color: var(--color-primary, #3E6553);
  color: var(--color-primary-dark, #2C4C3E);
  font-weight: 800;
}

/* 3. 3대 품목 비용 환산 카드 */
.welfare-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welfare-item-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-name {
  font-size: var(--font-size-sm, 13.5px);
  font-weight: 800;
  color: var(--text-primary, #18231E);
}

.item-lifespan-tag {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.item-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.item-original-cost {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.item-user-cost {
  font-size: var(--font-size-md, 15px);
  font-weight: 800;
  color: var(--color-primary, #3E6553);
}

.item-desc {
  font-size: var(--font-size-xs, 11px);
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* 4. 3단계 신청 절차 */
.welfare-steps-card {
  background: var(--bg-surface, #ffffff);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-title {
  font-size: var(--font-size-sm, 13px);
  font-weight: 800;
  color: var(--text-primary, #18231E);
}

.step-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-pale, #E2ECE6);
  color: var(--color-primary, #3E6553);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-text-title {
  font-size: var(--font-size-xs, 12px);
  font-weight: 700;
  color: var(--text-primary, #18231E);
}

.step-text-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* 5. 15일 입원 중지 경고 배너 & 핫라인 버튼 */
.welfare-warning-banner {
  background: #fffbeb;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

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

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

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

.btn-rate-help {
  background: #E8F4EC;
  border: 1.5px solid #2B6E4F;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1E4D37;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(43, 110, 79, 0.15);
}

.btn-rate-help:hover {
  background: #D5EBDC;
  border-color: #183E2C;
  color: #183E2C;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(43, 110, 79, 0.22);
}

.btn-rate-help:active {
  transform: translateY(0);
}

/* 3-1. 말기암 무등급자 긴급 카드 */
.welfare-urgent-card {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.urgent-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgent-icon {
  width: 18px;
  height: 18px;
  stroke: #dc2626;
  flex-shrink: 0;
}

.urgent-title {
  font-size: var(--font-size-sm, 13px);
  font-weight: 800;
  color: #991b1b;
}

.urgent-desc {
  font-size: var(--font-size-xs, 11.5px);
  color: #7f1d1d;
  line-height: 1.5;
  margin: 0;
}

.urgent-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #fee2e2;
}

.urgent-step-item {
  font-size: 11px;
  color: #334155;
  line-height: 1.45;
}

.urgent-step-item strong {
  color: #991b1b;
  font-weight: 700;
}

.urgent-step-item.highlight-alt {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 6px 8px;
  border-radius: 8px;
}

.urgent-step-item.highlight-alt strong {
  color: #b45309;
}

/* 3-2. 3모터 침대 팁 & 사업소 찾기 */
.welfare-tip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-badge {
  background: #dbeafe;
  color: #1e40af;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.tip-title {
  font-size: var(--font-size-sm, 13px);
  font-weight: 800;
  color: #0f172a;
}

.tip-text {
  font-size: var(--font-size-xs, 11.5px);
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.action-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-welfare-link {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-copy-inquiry {
  flex: 1.2;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-copy-inquiry:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-welfare-call {
  flex: 1;
  background: var(--color-primary, #3E6553);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}

/* 6. 감경률 확인법 모달 */
.rate-help-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;
}

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

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

.rate-modal-title {
  font-size: var(--font-size-base, 15px);
  font-weight: 800;
  color: #0f172a;
}

.rate-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rate-info-item {
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  border-left: 3px solid var(--color-primary, #3E6553);
}

.rate-info-item strong {
  color: #0f172a;
  font-weight: 700;
}

