.assessment-main {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.assessment-header {
  margin-bottom: 56px;
}

.assessment-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.progress-card {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.progress-card h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

.dimension-list {
  list-style: none;
  margin-bottom: 24px;
}

.dimension-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.dimension-list li:last-child {
  border-bottom: none;
}

.dimension-list li.active {
  color: var(--primary);
  font-weight: 600;
}

.dimension-list li.completed {
  color: var(--text);
}

.dim-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.dimension-list li.active .dim-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.dimension-list li.completed .dim-number {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.progress-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.progress-summary p {
  font-size: 13px;
  color: var(--text-secondary);
}

.question-card {
  padding: 40px;
}

.question-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.step-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.question-header h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.question-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.question-item {
  margin-bottom: 28px;
}

.question-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.5;
}

.question-item h4 .q-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
  margin-right: 8px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
  color: var(--text-secondary);
  background: #fff;
}

.option-label:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
}

.option-label input {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.option-label.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 500;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* Result overlay */
.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 37, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.result-overlay.show {
  display: flex;
}

.result-modal {
  position: relative;
  width: 100%;
  max-width: 840px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 48px;
}

.result-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.result-close:hover {
  background: var(--border);
}

.result-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
}

.result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.score-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1s ease;
}

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-text strong {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.score-text span {
  font-size: 13px;
  color: var(--text-secondary);
}

.score-verdict {
  font-size: 18px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  text-align: center;
}

.score-verdict.low {
  background: #fef2f2;
  color: var(--danger);
}

.score-verdict.medium {
  background: #fffbeb;
  color: var(--warning);
}

.score-verdict.high {
  background: #f0fdf4;
  color: var(--success);
}

.result-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.result-detail {
  grid-column: 1 / -1;
}

.result-detail h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.dimension-scores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.dim-score-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.dim-score-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.dim-score-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.8s ease;
}

.dim-score-name {
  width: 90px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dim-score-value {
  width: 40px;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  flex-shrink: 0;
}

.result-advice {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}

.result-advice h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.result-advice ul {
  list-style: none;
}

.result-advice li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.result-advice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.result-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .assessment-layout {
    grid-template-columns: 1fr;
  }

  .progress-card {
    position: static;
  }

  .dimension-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .dimension-list li {
    border-bottom: none;
    padding: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .result-content {
    grid-template-columns: 1fr;
  }

  .result-score {
    flex-direction: row;
    justify-content: center;
  }

  .dimension-scores {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .question-card {
    padding: 24px;
  }

  .dimension-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-modal {
    padding: 28px 20px;
  }

  .result-score {
    flex-direction: column;
  }
}
