#diagnosis-box {
  max-width: 540px;
  margin: 3em auto 2em auto;
  background: #f9fbfe;
  border-radius: 22px;
  box-shadow: 0 8px 38px rgba(60,110,255,0.11);
  padding: 2.2em 1.2em 2.6em 1.2em;
  font-family: 'Segoe UI', 'Hiragino Sans', Arial, sans-serif;
  min-height: 460px;
  transition: box-shadow .28s;
}
.diagnosis-title-main {
  font-size: 2.1em;
  font-weight: bold;
  color: #2a3288;
  text-align: center;
  letter-spacing: .03em;
  margin-bottom: 0.45em;
}
.diagnosis-title-lead {
  font-size: 1.09em;
  color: #3262a1;
  text-align: center;
  margin-bottom: 1.1em;
  font-weight: 500;
  line-height: 1.6;
}
.diagnosis-mit-explain {
  background: #eaf4ff;
  color: #2950a0;
  border-radius: 14px;
  padding: 1.1em 1.1em 1.1em 1.3em;
  margin-bottom: 1.05em;
  font-size: 1em;
  box-shadow: 0 1.5px 8px rgba(60,110,255,0.03);
  line-height: 1.7;
}
.diagnosis-source {
  background: #f7fafd;
  border-radius: 12px;
  padding: 1.05em 1.1em;
  color: #374560;
  margin-bottom: 1em;
  font-size: 1em;
  font-weight: 500;
}
.diagnosis-source ul {
  margin: .4em 0 .1em 1.2em;
  padding: 0;
}
.diagnosis-source li {
  margin-bottom: .2em;
  list-style: disc inside;
}
.diagnosis-warning {
  background: #ffe8e4;
  border-radius: 12px;
  padding: 1.1em 1.1em 1.1em 1.3em;
  color: #b44;
  margin-bottom: 1.2em;
  font-size: 1em;
  font-weight: 500;
  border-left: 6px solid #ff9994;
}
.diagnosis-start-btn {
  background: linear-gradient(90deg,#6eaaff,#4567f7);
  color: #fff;
  font-weight: bold;
  font-size: 1.22em;
  padding: .98em 2.6em;
  border-radius: 13px;
  border: none;
  margin: 1.5em auto 0 auto;
  display: block;
  box-shadow: 0 2.5px 10px rgba(60,110,255,0.06);
  transition: background .18s, box-shadow .18s, transform .11s;
  cursor: pointer;
}
.diagnosis-start-btn:hover {
  background: linear-gradient(90deg,#92bfff,#4066c7);
  box-shadow: 0 4px 16px rgba(60,110,255,0.11);
  transform: translateY(1.5px) scale(1.022);
}

/* Q&A */
.progress-bar {
  width: 100%;
  height: 22px;
  background: #eaf2fb;
  border-radius: 12px;
  margin-bottom: .5em;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(70,120,255,0.04);
  transition: background .15s;
}
.progress-bar-inner {
  background: linear-gradient(90deg,#77aaff,#4f77fa);
  height: 100%;
  border-radius: 12px;
  transition: width .41s cubic-bezier(.55,0,1,1);
}
.progress-step-num {
  text-align: right;
  font-size: 1.18em;
  color: #8a97b2;
  font-weight: bold;
  margin-bottom: 1em;
  margin-right: 1.5em;
}
.num-ani {
  display: inline-block;
  transition: transform .18s cubic-bezier(.52,1.75,.44,.9);
}
.pop-bounce {
  animation: pop 0.38s cubic-bezier(.52,2.4,.52,.99) 1;
}
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  80% { transform: scale(0.91);}
  100% { transform: scale(1);}
}

.question {
  font-size: 1.16em;
  margin-bottom: 1.1em;
  font-weight: 700;
  color: #223060;
  letter-spacing: .02em;
  min-height: 2.5em;
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 1.08em;
  margin-bottom: .7em;
}
.choice-btn {
  background: #fff;
  color: #204080;
  border: 2px solid #dde4f6;
  border-radius: 11px;
  padding: 1.13em 1em;
  cursor: pointer;
  font-size: 1.08em;
  font-weight: 600;
  box-shadow: 0 1.5px 8px rgba(80,120,255,0.04);
  text-align: left;
  transition: background .11s, box-shadow .17s, border .13s, transform .09s;
  outline: none;
  position: relative;
}
.choice-btn:hover,
.choice-btn:focus {
  background: #f3f8ff;
  border-color: #6baaff;
  box-shadow: 0 4px 16px rgba(60,110,255,0.10);
  color: #204080 !important;
}
.choice-btn.clicked {
  background: #eaf4ff;
  border-color: #5eabff;
  transform: scale(0.96) translateY(2.5px);
  box-shadow: 0 1.5px 8px rgba(60,110,255,0.12);
}
.choice-btn.selected {
  border: 2.5px dashed #5687fe;
  background: #eaf4ff;
}
#back-btn {
  margin-top: 1.4em;
  background: #eaf4ff;
  color: #336;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  padding: 0.67em 1.6em;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(60,110,255,0.03);
  transition: background .12s, color .13s, transform .11s;
  outline: none;
}
#back-btn:hover {
  background: #d6e8fa;
  color: #2555aa;
  transform: scale(1.06);
}
.ref {
  font-size: 0.92em;
  color: #8ba;
  margin-top: 0.5em;
  margin-bottom: 0.2em;
}
