/**
 * 🌟 hospice-web-pwa / onboarding.css
 * 10초 안심 온보딩 모달 전용 스타일 컴포넌트 (300줄 모듈화 분리)
 */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.onboarding-card {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--slate-100, #f1f5f9);
  animation: springUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes springUp {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sage-pale);
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.onboarding-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.onboarding-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-text {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.input-text:focus {
  border-color: var(--sage-primary);
}

.disease-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chip-btn {
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-app);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.chip-btn.selected {
  border-color: var(--sage-primary);
  background: var(--sage-pale);
  color: var(--sage-deep);
  font-weight: 700;
}

.role-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.role-card-btn {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.role-card-btn.selected {
  border-color: var(--sage-primary);
  background: var(--sage-bg);
}

.role-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.role-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.role-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.btn-primary-block {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sage-primary), var(--sage-dark));
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.28);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-block:hover, .btn-primary-block:active {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.35);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* 💡 입원 사유 및 규정 안내 박스 */
.admission-guide-box {
  background: #f0f7f4;
  border: 1.5px solid #b7e4c7;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #1b4332;
  animation: fadeIn 0.25s ease;
}

.admission-guide-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
  color: #2d6a4f;
}

.admission-guide-item {
  margin-bottom: 6px;
  word-break: keep-all;
}

.admission-guide-item:last-child {
  margin-bottom: 0;
}

.admission-guide-item strong {
  color: #081c15;
}

.admission-guide-item em {
  font-size: 11px;
  color: #40916c;
  font-style: normal;
}

