/* Diagnóstico Page */
.diag-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.diag-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.diag-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Progress */
.diag-progress-wrap {
  background: var(--white);
  padding: 24px 0 16px;
  position: sticky;
  top: 68px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.diag-progress {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.diag-progress-bar {
  height: 100%;
  width: 11.1%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.diag-steps-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--graphite-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.step-dot.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.step-dot.done {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* Form Section */
.diag-form-section {
  padding: 48px 0 80px;
  background: var(--off-white);
  min-height: 60vh;
}

.diag-form-section .container {
  max-width: 820px;
}

/* Steps */
.diag-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}

.step-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.step-subtitle {
  font-size: 0.9rem;
  color: var(--graphite-light);
  font-weight: 300;
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(26,39,68,0.12);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--graphite-dark);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,151,107,0.1);
}

.form-group textarea {
  resize: vertical;
}

/* Questions */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color 0.3s ease;
}

.question-item:hover {
  border-color: rgba(184,151,107,0.3);
}

.question-item.answered {
  border-color: rgba(26,39,68,0.2);
  background: rgba(184,151,107,0.03);
}

.question-text {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.5;
  flex: 1;
}

.question-options {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.question-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--graphite);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.question-options label:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.question-options input[type="radio"] {
  display: none;
}

.question-options input[type="radio"]:checked + {}

.question-options label:has(input:checked) {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Navigation */
.diag-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.diag-nav .btn {
  min-width: 160px;
}

.diag-submit {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 600 !important;
}

.diag-submit:hover {
  background: var(--gold-light) !important;
}

/* Summary */
.diag-summary {
  margin-top: 32px;
}

.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.summary-card h4 {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.summary-item:last-child {
  border: none;
}

.summary-item span:first-child {
  color: var(--graphite);
}

.summary-item span:last-child {
  font-weight: 600;
  color: var(--navy);
}

.summary-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.score-fill.high { background: #2d8a4e; }
.score-fill.medium { background: var(--gold); }
.score-fill.low { background: #c0392b; }

.score-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  min-width: 40px;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .question-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .question-options {
    width: 100%;
    justify-content: flex-start;
  }

  .diag-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .diag-nav .btn {
    width: 100%;
  }

  .step-header {
    flex-direction: column;
    gap: 12px;
  }
}
