@import url('https://fonts.googleapis.com/css2?family=Pathway+Gothic+One&display=swap');

:root {
  --navy: #164473;
  --dark-navy: rgba(12,33,55,0.95);
  --gold: #BECE43;
  --gold-hover: #d4e255;
  --white: #ffffff;
  --light-bg: #f4f6f9;
  --text: #333333;
  --text-light: #666666;
  --green: #27ae60;
  --yellow: #f39c12;
  --orange: #e67e22;
  --red: #c0392b;
}

.chaos-quiz {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.chaos-quiz h1,
.chaos-quiz h2,
.chaos-quiz h3 {
  font-family: "Pathway Gothic One", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* -- Teaser -- */
.chaos-teaser {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 30px;
  border: 1px solid #e0e4ea;
}
.chaos-teaser-header {
  text-align: center;
  margin-bottom: 24px;
}
.chaos-teaser-header h2 {
  font-size: 1.8em;
  color: var(--navy);
  margin: 0 0 4px;
}
.chaos-teaser-header h2 span {
  color: var(--gold);
  font-size: 0.7em;
  display: block;
  margin-top: 2px;
}
.chaos-teaser-header p {
  font-size: 0.95em;
  color: var(--text-light);
  max-width: 540px;
  margin: 10px auto 0;
  line-height: 1.6;
}
.chaos-teaser-list {
  margin-bottom: 24px;
}
.chaos-teaser-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #e0e4ea;
}
.chaos-teaser-item:last-child {
  border-bottom: none;
}
.chaos-teaser-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.15em;
}
.chaos-teaser-content {
  flex: 1;
}
.chaos-teaser-content strong {
  display: block;
  color: var(--navy);
  font-size: 1.02em;
  margin-bottom: 4px;
  line-height: 1.4;
}
.chaos-teaser-content p {
  font-size: 0.9em;
  color: var(--text-light);
  margin: 0;
  line-height: 1.55;
}
.chaos-teaser-result {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
}
.chaos-teaser-result p {
  font-size: 0.95em;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 6px;
}
.chaos-teaser-tagline {
  font-weight: 700 !important;
  color: var(--navy) !important;
  font-style: italic;
}

/* -- Hero -- */
.chaos-hero {
  text-align: center;
  padding: 50px 20px 40px;
  margin-bottom: 10px;
}
.chaos-hero h1 {
  font-size: 2.8em;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.1;
}
.chaos-hero h1 span {
  color: var(--gold);
}
.chaos-hero .hero-tagline {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.4em;
  color: var(--text-light);
  margin: 0 0 20px;
  text-transform: uppercase;
}
.chaos-hero p {
  font-size: 1.05em;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
}

/* -- Progress Bar -- */
.chaos-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.chaos-progress .step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--light-bg);
  border-radius: 30px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.chaos-progress .step.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.chaos-progress .step.done {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.chaos-progress .step .check {
  display: none;
}
.chaos-progress .step.done .check {
  display: inline;
}

/* -- Sections -- */
.chaos-section {
  margin-bottom: 35px;
  padding: 0;
}
.chaos-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
}
.chaos-section-header .section-letter {
  background: var(--navy);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.3em;
  flex-shrink: 0;
}
.chaos-section-header h2 {
  font-size: 1.5em;
  color: var(--navy);
  margin: 0;
}

/* -- Questions -- */
.chaos-question {
  margin-bottom: 22px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e8ecf0;
  transition: border-color 0.3s ease;
}
.chaos-question.answered {
  border-color: var(--gold);
}
.chaos-question .q-text {
  font-size: 1.05em;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--navy);
}
.chaos-question .q-number {
  color: var(--gold);
  margin-right: 6px;
}
.chaos-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chaos-options label {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 10px 6px;
  background: var(--light-bg);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88em;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s ease;
  user-select: none;
}
.chaos-options label:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: #e8ecf3;
}
.chaos-options input[type="radio"] {
  display: none;
}
.chaos-options label.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* -- Email Capture -- */
.chaos-email-capture {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 28px 30px;
  margin: 30px 0 10px;
  text-align: center;
}
.chaos-email-capture h3 {
  color: var(--navy);
  font-size: 1.4em;
  margin: 0 0 6px;
}
.chaos-email-capture p {
  color: var(--text-light);
  font-size: 0.92em;
  margin: 0 0 18px;
}
.chaos-email-fields {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.chaos-email-fields input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.2s;
}
.chaos-email-fields input:focus {
  border-color: var(--navy);
}

/* -- Submit -- */
.chaos-submit-wrap {
  text-align: center;
  margin: 30px 0 20px;
}
.chaos-submit-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.6em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 50px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(190,206,67,0.4);
}
.chaos-submit-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(190,206,67,0.5);
}
.chaos-submit-btn:active {
  transform: translateY(0);
}

/* -- Validation Error -- */
.chaos-error {
  display: none;
  text-align: center;
  color: var(--red);
  font-weight: 600;
  margin-top: 12px;
  font-size: 0.95em;
}

/* -- Results Panel -- */
.chaos-results {
  display: none;
  margin-top: 30px;
  animation: fadeSlideIn 0.6s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.chaos-results-inner {
  background: var(--dark-navy);
  border-radius: 16px;
  padding: 45px 40px;
  color: var(--white);
  text-align: center;
}
.chaos-score-display {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 5em;
  line-height: 1;
  color: var(--gold);
  margin: 0;
}
.chaos-score-display small {
  font-size: 0.35em;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 4px;
}
.chaos-tier-badge {
  display: inline-block;
  padding: 8px 28px;
  border-radius: 30px;
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 24px;
  font-weight: 700;
}
.tier-low { background: var(--green); color: var(--white); }
.tier-moderate { background: var(--yellow); color: var(--white); }
.tier-high { background: var(--orange); color: var(--white); }
.tier-severe { background: var(--red); color: var(--white); }

.chaos-results-msg {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.7;
  font-size: 1.05em;
  color: rgba(255,255,255,0.9);
}
.chaos-results-msg .tagline {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}
.chaos-results-msg p {
  margin: 0 0 10px;
}
.chaos-results-msg .next-step-label {
  font-weight: 700;
  color: var(--gold);
  margin-top: 18px;
}

.chaos-cta-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chaos-cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.25em;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.chaos-cta-primary,
.chaos-cta-primary:link,
.chaos-cta-primary:visited {
  background: var(--gold);
  color: var(--navy) !important;
}
.chaos-cta-primary:hover {
  background: var(--gold-hover);
  color: var(--navy) !important;
  transform: translateY(-2px);
}
.chaos-cta-secondary,
.chaos-cta-secondary:link,
.chaos-cta-secondary:visited {
  background: transparent;
  color: var(--gold) !important;
  border: 2px solid var(--gold);
}
.chaos-cta-secondary:hover {
  background: rgba(190,206,67,0.15);
  color: var(--gold) !important;
  transform: translateY(-2px);
}

/* -- Signoff -- */
.chaos-signoff {
  margin-top: 30px;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  font-size: 0.95em;
}

/* -- Retake -- */
.chaos-retake-wrap {
  text-align: center;
  margin-top: 25px;
}
.chaos-retake-btn {
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.1em;
  text-transform: uppercase;
  padding: 10px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}
.chaos-retake-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* -- Responsive -- */
@media (max-width: 600px) {
  .chaos-hero h1 { font-size: 2em; }
  .chaos-hero .hero-tagline { font-size: 1.15em; }
  .chaos-options { flex-direction: column; }
  .chaos-options label { min-width: unset; }
  .chaos-question { padding: 16px 18px; }
  .chaos-results-inner { padding: 30px 22px; }
  .chaos-score-display { font-size: 3.5em; }
  .chaos-email-fields { flex-direction: column; }
  .chaos-submit-btn { font-size: 1.35em; padding: 14px 36px; }
  .chaos-cta { font-size: 1.1em; padding: 12px 28px; }
}
