/* Base Styles - Black & White Boy Aesthetic */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #07133d;
  --white: #ffffff;
  --gold: #fec404;
  --gold-light: #fff8e0;
  --gray-dark: #0a1a4d;
  --gray-mid: #6b7280;
  --gray-light: #f5f5f5;
  --gray-border: #e5e5e5;

  /* Tier colors */
  --strong: #22c55e;
  --strong-bg: #dcfce7;
  --direction: #fec404;
  --direction-bg: #fff8e0;
  --work: #ef4444;
  --work-bg: #fee2e2;

  --radius: 12px;
  --radius-full: 9999px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Quiz Container */
.quiz-container {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-wrapper {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray-light);
}

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

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 13px;
  color: var(--gray-mid);
  white-space: nowrap;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Screens */
.quiz-content {
  position: relative;
  min-height: 420px;
}

.screen {
  display: none;
  padding: 48px 40px;
  animation: fadeIn 0.4s ease;
}

.screen.active {
  display: block;
}

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

.screen-content {
  text-align: center;
}

/* Typography */
h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 18px;
  color: var(--gray-mid);
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  color: var(--gray-mid);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray-mid);
  margin-bottom: 40px;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
  background: var(--gray-border);
  color: var(--gray-mid);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: #e5b004;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(254, 196, 4, 0.3);
}

/* Question Styles */
.question-screen .screen-content {
  text-align: left;
}

.question-number {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.question-text {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.4;
  color: var(--black);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background: var(--white);
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.option-btn:hover {
  border-color: var(--black);
  background: var(--gray-light);
}

.option-btn.selected {
  border-color: var(--gold);
  background: var(--gold-light);
}

.option-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-border);
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-btn:hover .option-indicator {
  border-color: var(--black);
}

.option-btn.selected .option-indicator {
  border-color: var(--gold);
  background: var(--gold);
}

.option-btn.selected .option-indicator::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
}

.question-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.btn-secondary {
  background: transparent;
  color: var(--gray-mid);
  border: 2px solid var(--gray-border);
}

.btn-secondary:hover {
  background: var(--gray-light);
  color: var(--black);
  border-color: var(--black);
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(254, 196, 4, 0.15);
}

.form-group input::placeholder {
  color: var(--gray-mid);
}

#leadForm {
  max-width: 420px;
  margin: 32px auto 0;
}

#leadForm .btn {
  width: 100%;
  margin-top: 8px;
}

/* Loading */
.loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 32px;
}

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

/* Results */
.results-content {
  text-align: left;
}

.results-header {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 40px;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.score-badge.strong {
  background: var(--strong-bg);
  color: #166534;
}

.score-badge.direction {
  background: var(--direction-bg);
  color: #92761c;
}

.score-badge.work {
  background: var(--work-bg);
  color: #b91c1c;
}

/* Chart Containers */
.chart-container-overall {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 24px auto;
}

.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-score {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.chart-score.strong { color: var(--strong); }
.chart-score.direction { color: var(--gold); }
.chart-score.work { color: var(--work); }

.chart-max {
  font-size: 16px;
  color: var(--gray-mid);
  font-weight: 500;
}

.chart-container-sections {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  height: 200px;
  border: 1px solid var(--gray-border);
}

.score-number {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.score-number.strong { color: var(--strong); }
.score-number.direction { color: var(--gold); }
.score-number.work { color: var(--work); }

.score-label {
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 24px;
}

.results-headline {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

.results-copy {
  color: var(--gray-mid);
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

/* Section Results */
.results-sections {
  margin-bottom: 40px;
}

.results-sections-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}

.section-result {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  border-left: 4px solid var(--gray-border);
}

.section-result.strong {
  border-left-color: var(--strong);
}

.section-result.direction {
  border-left-color: var(--gold);
}

.section-result.work {
  border-left-color: var(--work);
}

.section-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-result-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
}

.section-result-score {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-result-score.strong {
  background: var(--strong-bg);
  color: #166534;
}

.section-result-score.direction {
  background: var(--direction-bg);
  color: #92761c;
}

.section-result-score.work {
  background: var(--work-bg);
  color: #b91c1c;
}

.section-result-copy {
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 12px;
  line-height: 1.6;
}

.section-result-focus {
  font-size: 14px;
  color: var(--black);
  font-weight: 600;
}

.section-result-focus strong {
  color: var(--gold);
}

/* Recommendations */
.results-recommendations {
  padding-top: 40px;
  border-top: 1px solid var(--gray-border);
}

.recommendations-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}

.recommendations-list {
  list-style: none;
}

.recommendations-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--black);
  line-height: 1.5;
}

.recommendations-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* CTA */
.results-cta {
  margin-top: 40px;
  padding: 32px;
  background: var(--black);
  border-radius: var(--radius);
  text-align: center;
}

.cta-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 500;
}

.results-cta .btn-gold {
  padding: 18px 48px;
}

/* Footer */
.quiz-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--gray-border);
  text-align: center;
  background: var(--gray-light);
}

.quiz-footer a {
  color: var(--gray-mid);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.quiz-footer a:hover {
  color: var(--gold);
}

/* Responsive */
@media (max-width: 600px) {
  .quiz-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .screen {
    padding: 32px 24px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .question-text {
    font-size: 18px;
  }

  .progress-wrapper {
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
  }

  .progress-bar {
    width: 100%;
  }

  .score-number {
    font-size: 48px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  .question-nav {
    flex-direction: column;
  }

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

  .chart-container-overall {
    width: 150px;
    height: 150px;
  }

  .chart-score {
    font-size: 36px;
  }

  .chart-container-sections {
    height: 180px;
    padding: 16px;
  }
}
