/* ============================================================
   SUED Studio — Interactive Quiz CSS
   Visual identity aligned with SUED Studio design system
   ============================================================ */

.sued-quiz-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 20px 80px;
  background: radial-gradient(circle at 50% 20%, #141F2B 0%, #0A1118 100%);
  background-attachment: fixed;
  color: var(--sued-light, #F5F2EC);
  font-family: var(--sued-font-body, 'Open Sans', sans-serif);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Subtle accent glow behind the quiz container */
.sued-quiz-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(38, 175, 255, 0.08) 0%, rgba(38, 175, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.sued-quiz-container {
  width: 100%;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

/* HEADER */
.sued-quiz-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.sued-quiz-logo {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sued-light, #F5F2EC);
  text-decoration: none;
  transition: opacity 0.2s;
}

.sued-quiz-logo span {
  color: var(--sued-accent, #26AFFF);
}

.sued-quiz-logo:hover {
  opacity: 0.85;
}

.sued-quiz-badge {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sued-accent, #26AFFF);
  border: 1px solid rgba(38, 175, 255, 0.5);
  background: rgba(38, 175, 255, 0.08);
  padding: 5px 12px;
  border-radius: 100px;
}

/* PROGRESS BAR */
.sued-quiz-progress {
  width: 100%;
  margin-bottom: 32px;
}

.sued-quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sued-muted, #7A8B95);
  margin-bottom: 10px;
  font-weight: 500;
}

.sued-quiz-progress-bg {
  height: 4px;
  background: #1E2D3B;
  border-radius: 100px;
  overflow: hidden;
}

.sued-quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #26AFFF 0%, #63C5FF 100%);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(38, 175, 255, 0.4);
}

/* CARDS */
.sued-quiz-card {
  background: #0F1923;
  border: 1px solid #2A3A47;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: suedFadeUp 0.3s ease both;
}

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

.sued-quiz-eyebrow {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sued-accent, #26AFFF);
  margin-bottom: 14px;
}

.sued-quiz-question-text {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sued-light, #F5F2EC);
  margin-bottom: 8px;
}

.sued-quiz-hint {
  font-size: 14px;
  color: var(--sued-muted, #7A8B95);
  margin-bottom: 30px;
}

/* OPTIONS GRID */
.sued-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sued-quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #141F2B;
  border: 1px solid #2A3A47;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: left;
  width: 100%;
  color: var(--sued-light, #F5F2EC);
  font-family: inherit;
  font-size: 15px;
}

.sued-quiz-opt-btn:hover {
  border-color: rgba(38, 175, 255, 0.5);
  background: #1A2838;
  transform: translateX(4px);
}

.sued-quiz-opt-btn.selected {
  border-color: var(--sued-accent, #26AFFF);
  background: rgba(38, 175, 255, 0.12);
  box-shadow: 0 0 15px rgba(38, 175, 255, 0.15);
}

.sued-quiz-opt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1E2D3B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sued-quiz-opt-btn.selected .sued-quiz-opt-icon {
  background: rgba(38, 175, 255, 0.25);
}

.sued-quiz-opt-label {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.sued-quiz-opt-sub {
  font-size: 13px;
  color: var(--sued-muted, #7A8B95);
  margin-top: 3px;
}

/* INPUTS */
.sued-quiz-input-group {
  margin-bottom: 20px;
  text-align: left;
}

.sued-quiz-label {
  display: block;
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sued-muted, #7A8B95);
  margin-bottom: 8px;
}

.sued-quiz-text-input {
  width: 100%;
  background: #141F2B;
  border: 1px solid #2A3A47;
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--sued-light, #F5F2EC);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sued-quiz-text-input:focus {
  border-color: var(--sued-accent, #26AFFF);
  box-shadow: 0 0 12px rgba(38, 175, 255, 0.2);
}

.sued-quiz-text-input::placeholder {
  color: #526370;
}

/* LGPD CONSENT */
.sued-quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--sued-muted, #7A8B95);
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.sued-quiz-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--sued-accent, #26AFFF);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* NAVIGATION */
.sued-quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.sued-quiz-btn-back {
  background: none;
  border: none;
  color: var(--sued-muted, #7A8B95);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}

.sued-quiz-btn-back:hover {
  color: var(--sued-light, #F5F2EC);
}

.sued-quiz-btn-back:disabled {
  opacity: 0.2;
  cursor: default;
}

.sued-quiz-btn-next {
  background: var(--sued-accent, #26AFFF);
  color: #0F1923;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0.35;
  pointer-events: none;
}

.sued-quiz-btn-next.active {
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 4px 14px rgba(38, 175, 255, 0.3);
}

.sued-quiz-btn-next.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 175, 255, 0.4);
}

.sued-quiz-btn-next.active:active {
  transform: translateY(0);
}

/* INTRO SCREEN */
.sued-quiz-intro {
  text-align: center;
  animation: suedFadeUp 0.35s ease both;
}

.sued-quiz-intro-eyebrow {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sued-accent, #26AFFF);
  margin-bottom: 20px;
}

.sued-quiz-intro-title {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--sued-light, #F5F2EC);
}

.sued-quiz-intro-title span {
  color: var(--sued-accent, #26AFFF);
}

.sued-quiz-intro-sub {
  font-size: 16px;
  color: var(--sued-muted, #7A8B95);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.sued-quiz-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.sued-quiz-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0F1923;
  border: 1px solid #2A3A47;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sued-light, #F5F2EC);
}

.sued-quiz-pill .dot {
  color: var(--sued-accent, #26AFFF);
  font-size: 20px;
  line-height: 0;
}

.sued-quiz-intro-time {
  font-size: 13px;
  color: var(--sued-muted, #7A8B95);
  margin-top: 18px;
}

/* RESULTS SCREEN */
.sued-quiz-result {
  animation: suedFadeUp 0.35s ease both;
}

.sued-quiz-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
  text-align: center;
}

.sued-quiz-score-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: rgba(38, 175, 255, 0.08);
  border: 3px solid var(--sued-accent, #26AFFF);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(38, 175, 255, 0.25);
}

.sued-quiz-score-num {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 38px;
  font-weight: 800;
  color: var(--sued-accent, #26AFFF);
  line-height: 1;
}

.sued-quiz-score-label {
  font-size: 11px;
  color: var(--sued-muted, #7A8B95);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.sued-quiz-profile-badge {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sued-accent-secondary, #C8A96E);
  margin-bottom: 8px;
}

.sued-quiz-result-title {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--sued-light, #F5F2EC);
}

.sued-quiz-result-sub {
  font-size: 15px;
  color: var(--sued-muted, #7A8B95);
  text-align: center;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* DIAGNOSTIC GRID */
.sued-diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 560px) {
  .sued-diag-grid { grid-template-columns: 1fr; }
  .sued-quiz-card { padding: 28px 20px; }
  .sued-quiz-intro-title { font-size: 28px; }
  .sued-quiz-question-text { font-size: 20px; }
  .sued-quiz-header { margin-bottom: 40px; }
}

.sued-diag-item {
  background: #0F1923;
  border: 1px solid #2A3A47;
  border-radius: 12px;
  padding: 18px 20px;
}

.sued-diag-item.destaque {
  border-color: rgba(38, 175, 255, 0.4);
  background: rgba(38, 175, 255, 0.06);
}

.sued-diag-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sued-diag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sued-accent, #26AFFF);
  flex-shrink: 0;
}

.sued-diag-dot.alerta { background: #FF4D4D; box-shadow: 0 0 8px rgba(255, 77, 77, 0.4); }
.sued-diag-dot.neutro { background: var(--sued-muted, #7A8B95); }

.sued-diag-item-title {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sued-muted, #7A8B95);
}

.sued-diag-item-text {
  font-size: 14px;
  color: var(--sued-light, #F5F2EC);
  line-height: 1.55;
}

/* NEXT STEPS */
.sued-quiz-steps {
  background: #0F1923;
  border: 1px solid #2A3A47;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.sued-quiz-steps-title {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sued-accent-secondary, #C8A96E);
  margin-bottom: 20px;
}

.sued-quiz-step-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.sued-quiz-step-item:last-child {
  margin-bottom: 0;
}

.sued-quiz-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(38, 175, 255, 0.12);
  border: 1px solid rgba(38, 175, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--sued-accent, #26AFFF);
  flex-shrink: 0;
  margin-top: 1px;
}

.sued-quiz-step-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--sued-light, #F5F2EC);
}

.sued-quiz-step-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* CTA BLOCK */
.sued-quiz-cta-block {
  text-align: center;
  padding: 36px 30px;
  background: linear-gradient(135deg, rgba(38, 175, 255, 0.1) 0%, rgba(200, 169, 110, 0.05) 100%);
  border: 1px solid rgba(38, 175, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.sued-quiz-cta-eyebrow {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sued-accent, #26AFFF);
  margin-bottom: 10px;
}

.sued-quiz-cta-title {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--sued-light, #F5F2EC);
}

.sued-quiz-cta-sub {
  font-size: 14px;
  color: var(--sued-muted, #7A8B95);
  margin-bottom: 26px;
  line-height: 1.55;
}

.sued-quiz-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.sued-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sued-accent, #26AFFF);
  color: #0F1923;
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 18px rgba(38, 175, 255, 0.35);
  width: 100%;
  max-width: 420px;
}

.sued-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(38, 175, 255, 0.45);
}

.sued-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #141F2B;
  border: 1px solid #2A3A47;
  color: var(--sued-light, #F5F2EC);
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  width: 100%;
  max-width: 420px;
}

.sued-btn-secondary:hover {
  background: #1A2838;
  border-color: rgba(38, 175, 255, 0.4);
}

.sued-quiz-cta-footer {
  font-size: 12px;
  color: var(--sued-muted, #7A8B95);
  margin-top: 14px;
}

/* LOADING STATE */
.sued-quiz-loading {
  text-align: center;
  padding: 60px 20px;
}

.sued-quiz-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #1E2D3B;
  border-top-color: var(--sued-accent, #26AFFF);
  border-radius: 50%;
  animation: suedSpin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes suedSpin {
  to { transform: rotate(360deg); }
}

.sued-quiz-loading-title {
  font-family: var(--sued-font-heading, 'Montserrat', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--sued-light, #F5F2EC);
  margin-bottom: 8px;
}

.sued-quiz-loading-sub {
  font-size: 14px;
  color: var(--sued-muted, #7A8B95);
}

.sued-quiz-error-msg {
  color: #FF4D4D;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}
