/* ESG Assessment Styles */

/* Hero adjustments */
.esg-hero {
  padding-bottom: 32px;
}

.esg-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.esg-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.esg-badge.env {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.esg-badge.social {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.esg-badge.gov {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Progress Bar */
.assessment-progress {
  margin-bottom: 40px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.3s ease;
}

.step-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: var(--text);
}

.progress-bar {
  height: 4px;
  background: var(--outline);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}

/* Assessment Form */
.assessment-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

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

.step-header {
  margin-bottom: 32px;
  text-align: center;
}

.step-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.step-description {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

.pillar-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pillar-badge.env {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.pillar-badge.social {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.pillar-badge.gov {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

/* Question Groups */
.question-group {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.question-group.scored {
  border-left: 3px solid var(--primary);
}

.question-label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.question-help {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
  font-style: italic;
}

/* Radio & Checkbox Options */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  line-height: 1.4;
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: var(--primary);
  background: rgba(22, 163, 74, 0.05);
}

.radio-option input,
.checkbox-option input {
  display: none;
}

.radio-custom,
.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 1px;
}

.checkbox-custom {
  border-radius: 4px;
}

.radio-option input:checked ~ .radio-custom,
.checkbox-option input:checked ~ .checkbox-custom {
  border-color: var(--primary);
  background: var(--primary);
}

.radio-option input:checked ~ .radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.checkbox-option input:checked ~ .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.radio-option input:checked ~ span:last-child,
.checkbox-option input:checked ~ span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
}

.step-actions .btn {
  min-width: 180px;
}

.btn-prev {
  margin-right: auto;
}

.btn-next,
.btn-submit {
  margin-left: auto;
}

/* Results Section */
.results-container {
  display: grid;
  gap: 24px;
}

.overall-score-card {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(22, 163, 74, 0.12) 100%);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.score-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  position: relative;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-circle-bg {
  fill: none;
  stroke: var(--outline);
  stroke-width: 10;
}

.score-circle-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
}

.score-value span {
  font-size: 24px;
  color: var(--muted);
}

.score-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.score-band {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.score-band.starter { color: #ef4444; }
.score-band.developing { color: #f59e0b; }
.score-band.leading { color: #22c55e; }

.score-description {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Pillar Scores */
.pillar-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-score-card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.pillar-score-card.env { border-top: 3px solid #4ade80; }
.pillar-score-card.social { border-top: 3px solid #60a5fa; }
.pillar-score-card.gov { border-top: 3px solid #c084fc; }

.pillar-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.pillar-name {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pillar-score {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.pillar-score-card.env .pillar-score { color: #4ade80; }
.pillar-score-card.social .pillar-score { color: #60a5fa; }
.pillar-score-card.gov .pillar-score { color: #c084fc; }

.pillar-band {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 0;
}

.pillar-band.starter { color: #ef4444; }
.pillar-band.developing { color: #f59e0b; }
.pillar-band.leading { color: #22c55e; }

/* Recommendations */
.recommendations-section {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 24px;
}

.recommendations-section h3 {
  margin: 0 0 20px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommendation-group {
  margin-bottom: 24px;
}

.recommendation-group:last-child {
  margin-bottom: 0;
}

.recommendation-group h4 {
  font-size: 16px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-group h4.env { color: #4ade80; }
.recommendation-group h4.social { color: #60a5fa; }
.recommendation-group h4.gov { color: #c084fc; }

.recommendation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recommendation-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.recommendation-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* Upgrade Banner in Results */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
  border: 1px dashed var(--accent);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.upgrade-banner h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--accent);
}

.upgrade-banner p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.upgrade-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.upgrade-features span {
  font-size: 13px;
  color: var(--text);
}

/* Results Actions */
.results-actions {
  justify-content: center;
}

/* Responsive */
@media (max-width: 720px) {
  .esg-badges {
    flex-wrap: wrap;
  }
  
  .progress-steps {
    gap: 4px;
  }
  
  .step-label {
    font-size: 10px;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .question-group {
    padding: 18px;
  }
  
  .step-actions {
    flex-direction: column;
  }
  
  .step-actions .btn {
    width: 100%;
    min-width: unset;
  }
  
  .btn-prev {
    order: 2;
  }
  
  .pillar-scores {
    grid-template-columns: 1fr;
  }
  
  .upgrade-features {
    flex-direction: column;
    gap: 8px;
  }
}
