/* ============================================================
   AltivisOne — Growth Assessment Quiz & Score Gauge Stylesheet
   Theme: Minimal Clean Light Theme (Consistent with Home Page)
   Font: Inter
   Primary Accent: #DF7800
   Secondary Accent: #4D94D9
   Background: #FFFFFF
   ============================================================ */

.growth-assessment-page {
  position: relative;
  min-height: calc(100vh - 80px);
  background-color: #ffffff;
  color: #111827;
  padding: 6.5rem 0 6rem;
  /* Extra top padding below header */
  overflow: hidden;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

/* ---------- Decorative Ambient Background Elements ---------- */
.assessment-abstract-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.assessment-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
}

.assessment-glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 5%;
  background: radial-gradient(circle, rgba(223, 120, 0, 0.07) 0%, rgba(223, 120, 0, 0) 70%);
}

.assessment-glow-2 {
  width: 550px;
  height: 550px;
  top: 40px;
  right: 5%;
  background: radial-gradient(circle, rgba(77, 148, 217, 0.08) 0%, rgba(77, 148, 217, 0) 70%);
}

.assessment-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 40%, #000 20%, transparent 100%);
  opacity: 0.6;
}

/* ---------- Main Container ---------- */
.assessment-container {
  position: relative;
  z-index: 10;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   STAGE 0: INTRO SCREEN
   ════════════════════════════════════════════════════════════ */
.assessment-intro-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  animation: fadeInSoft 0.4s ease-out;
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.assessment-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.assessment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.assessment-badge .badge-icon {
  color: #DF7800;
  display: flex;
  align-items: center;
}

.assessment-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #000000;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.assessment-hero-title .highlight-text {
  color: #DF7800;
}

.assessment-hero-desc {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Highlights 3-Card Grid */
.assessment-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  text-align: left;
}

.highlight-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(223, 120, 0, 0.4);
}

.highlight-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(223, 120, 0, 0.08);
  color: #DF7800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-card-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.highlight-card-text p {
  font-size: 0.825rem;
  color: #6b7280;
  line-height: 1.45;
  margin: 0;
}

/* CTA Row */
.assessment-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.start-btn {
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #DF7800;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(223, 120, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.start-btn:hover {
  background: #c66a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 120, 0, 0.35);
}

.time-estimate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ════════════════════════════════════════════════════════════
   STAGE 1: QUIZ ENGINE
   ════════════════════════════════════════════════════════════ */
.quiz-progress-bar-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  z-index: 40;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.quiz-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pillar-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #DF7800;
  background: rgba(223, 120, 0, 0.08);
  border: 1px solid rgba(223, 120, 0, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.progress-counts {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.counts-subtext {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 400;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #DF7800 0%, #ffaa40 70%, #10b981 100%);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Milestone Toast */
.milestone-toast {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  padding: 12px 20px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  animation: slideDownToast 0.35s ease;
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.milestone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.milestone-content strong {
  display: block;
  font-size: 0.875rem;
  color: #111827;
}

.milestone-content span {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Question Card */
.question-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  animation: fadeInQuestion 0.3s ease-out;
}

@keyframes fadeInQuestion {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-header {
  margin-bottom: 2rem;
}

.q-number-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #DF7800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.q-title {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: #000000;
  margin-bottom: 0.5rem;
}

.q-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Options Container */
.options-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.option-tile {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.option-tile:hover {
  background: rgba(223, 120, 0, 0.03);
  border-color: #DF7800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 120, 0, 0.08);
}

.option-tile.selected {
  background: rgba(223, 120, 0, 0.06);
  border-color: #DF7800;
  box-shadow: 0 0 0 1px #DF7800, 0 4px 14px rgba(223, 120, 0, 0.12);
}

.option-left-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.option-key-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-tile.selected .option-key-badge {
  background: #DF7800;
  color: #ffffff;
  border-color: #DF7800;
}

.option-label-text {
  font-size: 0.975rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.option-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-tile.selected .option-check-circle {
  background: #DF7800;
  border-color: #DF7800;
}

.option-checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-tile.selected .option-checkbox-box {
  background: #DF7800;
  border-color: #DF7800;
}

/* Open Text Question Styling */
.quiz-textarea {
  width: 100%;
  min-height: 130px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #111827;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-textarea:focus {
  border-color: #DF7800;
  box-shadow: 0 0 0 3px rgba(223, 120, 0, 0.15);
}

/* Nav Footer */
.quiz-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.925rem;
  font-weight: 600;
}

.nav-hint {
  font-size: 0.8rem;
  color: #6b7280;
}

.nav-hint kbd {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-family: monospace;
}

/* ════════════════════════════════════════════════════════════
   STAGE 2: RESULT GAUGE & LEAD FORM
   ════════════════════════════════════════════════════════════ */
.result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 880px) {
  .result-layout {
    grid-template-columns: 1fr;
  }
}

.score-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.score-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.score-pretitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #DF7800;
  letter-spacing: 0.5px;
}

.score-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin-top: 2px;
}

/* Gauge SVG */
.gauge-container {
  position: relative;
  max-width: 300px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-fill-arc {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-value-box {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.score-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: #111827;
  font-family: var(--font-display, sans-serif);
  line-height: 1;
}

.score-max {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.gauge-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: -10px;
  padding: 0 10px;
}

/* Verdict Banner */
.verdict-banner {
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.verdict-good {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.verdict-moderate {
  background: #fffbeb;
  border: 1px solid rgba(223, 120, 0, 0.3);
}

.verdict-icon {
  flex-shrink: 0;
  color: #059669;
}

.verdict-moderate .verdict-icon {
  color: #DF7800;
}

.verdict-text h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.verdict-text p {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.45;
  margin: 0;
}

/* Pillar Breakdown Bars */
.pillar-breakdown {
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
}

.breakdown-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.breakdown-bar-item {
  margin-bottom: 0.875rem;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: #374151;
  margin-bottom: 4px;
}

.bar-label-row strong {
  color: #111827;
}

.bar-track {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #DF7800, #4D94D9);
  border-radius: 3px;
  transition: width 1.2s ease;
}

/* Lead Form Card */
.lead-form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #DF7800;
  letter-spacing: 0.5px;
}

.form-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #000000;
  margin: 4px 0 6px;
  line-height: 1.25;
}

.form-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.45;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group .required {
  color: #ef4444;
}

.form-group input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #111827;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: #DF7800;
  box-shadow: 0 0 0 3px rgba(223, 120, 0, 0.15);
}

.form-error-box {
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.submit-btn {
  width: 100%;
  padding: 0.95rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(223, 120, 0, 0.25);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1rem;
  text-align: center;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   STAGE 3: SUCCESS & CONFIRMATION
   ════════════════════════════════════════════════════════════ */
.success-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.success-icon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.success-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #000000;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.success-desc {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.success-summary-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.summary-metric {
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.summary-divider {
  width: 1px;
  height: 36px;
  background: #e5e7eb;
}

@media (max-width: 540px) {
  .summary-divider {
    display: none;
  }
}

.success-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.success-actions-row .btn-primary,
.success-actions-row .btn-secondary {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}