/* ----------------------------------------------------------------------
   Compact Diagnosis Page Styles
---------------------------------------------------------------------- */

/* ----------------------------------------------------------------------
   Compact Header
---------------------------------------------------------------------- */
.compact-diagnosis {
  background-color: #fff;
}

.compact-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 24px 16px;
}

.compact-header-content {
  max-width: 600px;
  margin: 0 auto;
}

.compact-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  line-height: 1.4;
  margin-bottom: 8px;
}

.compact-lead {
  font-size: 1.3rem;
  color: #4b5563;
  line-height: 1.6;
}

/* ----------------------------------------------------------------------
   Compact Form
---------------------------------------------------------------------- */
.compact-form {
  padding: 24px 16px;
  max-width: 600px;
  margin: 0 auto;
}

.question-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.question-block:last-of-type {
  border-bottom: none;
}

.question-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary, #1f2937);
  line-height: 1.6;
  margin-bottom: 12px;
}

.answer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-label {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background-color: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-label:hover {
  border-color: var(--primary, #e86b36);
  background-color: #fff;
}

.answer-label input[type="radio"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.answer-label input[type="radio"]:checked + span {
  font-weight: 600;
  color: var(--primary, #e86b36);
}

.answer-label span {
  font-size: 1.3rem;
  color: #374151;
  line-height: 1.4;
}

/* ----------------------------------------------------------------------
   Submit Button
---------------------------------------------------------------------- */
.submit-wrapper {
  margin-top: 32px;
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary, #e86b36);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 40px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(232, 107, 54, 0.3);
}

.btn-submit:hover {
  background-color: #d4561c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 107, 54, 0.4);
}

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

/* ----------------------------------------------------------------------
   Result Section (Compact)
---------------------------------------------------------------------- */
.result-section {
  padding: 32px 16px;
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9fafb;
  border-radius: 12px;
}

.result-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.result-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 16px;
}

.result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.score-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary, #e86b36);
  line-height: 1;
}

.score-total {
  font-size: 1.4rem;
  color: #6b7280;
}

.result-level {
  font-size: 1.6rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  display: inline-block;
}

.result-level.level-low {
  background-color: #d1fae5;
  color: #065f46;
}

.result-level.level-mild {
  background-color: #fef3c7;
  color: #92400e;
}

.result-level.level-moderate {
  background-color: #fed7aa;
  color: #9a3412;
}

.result-level.level-high {
  background-color: #fecaca;
  color: #991b1b;
}

.result-description {
  font-size: 1.3rem;
  color: #374151;
  line-height: 1.7;
  text-align: left;
}

/* Result Advice */
.result-advice {
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.advice-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 12px;
}

.advice-content {
  font-size: 1.3rem;
  color: #374151;
  line-height: 1.7;
}

.advice-content p {
  margin-bottom: 8px;
}

.advice-content ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.advice-content li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.advice-content li:before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--primary, #e86b36);
  font-weight: 700;
}

/* Result Actions */
.result-actions {
  text-align: center;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: var(--secondary, #1f2937);
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  border-color: var(--primary, #e86b36);
  background-color: #fef3ed;
  color: var(--primary, #e86b36);
}

/* ----------------------------------------------------------------------
   Supervisor Compact
---------------------------------------------------------------------- */
.supervisor-compact {
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
  border-top: 1px solid #e5e7eb;
}

.supervisor-compact .supervisor-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 12px;
}

.supervisor-compact .supervisor-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.supervisor-compact .supervisor-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.supervisor-compact .supervisor-profile {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ----------------------------------------------------------------------
   Clinic Promo Compact
---------------------------------------------------------------------- */
.clinic-promo-compact {
  background: linear-gradient(135deg, #fef3ed 0%, #fef9f5 100%);
  padding: 24px 16px;
}

.clinic-promo-compact .promo-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.clinic-promo-compact .promo-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 8px;
}

.clinic-promo-compact .promo-text {
  font-size: 1.3rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 16px;
}

.clinic-promo-compact .btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #06c755;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.clinic-promo-compact .btn-promo:hover {
  background-color: #05b24c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
}

/* ----------------------------------------------------------------------
   Responsive Design
---------------------------------------------------------------------- */
@media (max-width: 480px) {
  .compact-header {
    padding: 20px 12px;
  }

  .compact-title {
    font-size: 1.8rem;
  }

  .compact-lead {
    font-size: 1.2rem;
  }

  .compact-form {
    padding: 20px 12px;
  }

  .question-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .question-title {
    font-size: 1.3rem;
  }

  .answer-label {
    padding: 8px 10px;
  }

  .answer-label span {
    font-size: 1.2rem;
  }

  .btn-submit {
    padding: 12px 32px;
    font-size: 1.4rem;
  }

  .result-section {
    padding: 24px 12px;
  }

  .result-card {
    padding: 20px 16px;
  }

  .score-number {
    font-size: 3.6rem;
  }

  .result-level {
    font-size: 1.5rem;
  }
}
