/****************************************
 * GLOBAL STYLES / THEME
 ****************************************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

body {
  background-color: #f6fcff;
  color: #1f2933;
  line-height: 1.6;
}

button {
  cursor: pointer;
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* SNAPPY TRANSITIONS (220-320ms) */
.fade {
  opacity: 1;
  transition: opacity 0.28s ease;
}

.fade-out {
  opacity: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/****************************************
 * SEO CONTENT SECTION
 ****************************************/
.seo-content {
  background-color: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.seo-container {
  padding: 50px 40px;
}

.seo-hero {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
}

.seo-hero h1 {
  font-size: 2.5rem;
  color: #1a2420;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: 'DojowellBasic', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.seo-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  padding: 14px 35px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.05rem;
  font-weight: 600;
  transition:
    background-color 0.25s,
    transform 0.25s;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.cta-button:focus {
  outline: 3px solid rgba(0, 123, 255, 0.4);
  outline-offset: 3px;
}

.seo-section {
  margin-bottom: 45px;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: #1a2420;
  margin-bottom: 20px;
  border-left: 4px solid #103962;
  padding-left: 15px;
  font-family: 'DojowellBasic', Georgia, serif;
  font-weight: 400;
}

.seo-section h3 {
  font-size: 1.3rem;
  color: #333;
  margin: 25px 0 15px;
}

.seo-section p {
  margin-bottom: 15px;
  color: #555;
  font-size: 1.05rem;
}

.seo-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.seo-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: #444;
  font-size: 1.05rem;
}

.seo-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
  font-size: 1.2rem;
}

.seo-note {
  background-color: #f0f8ff;
  border-left: 3px solid #007bff;
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #333;
}

/* FAQ Styles */
.seo-faq {
  background-color: #fafafa;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 10px;
}

.faq-item p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Trust Block */
.seo-trust {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 25px 0;
}

.trust-item h4 {
  font-size: 0.95rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0;
}

.trust-policy {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.trust-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.trust-link:hover {
  text-decoration: underline;
}

/* Disclaimer */
.seo-disclaimer {
  background-color: #fff9e6;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 25px;
}

.seo-disclaimer h2 {
  border-left-color: #ffc107;
  color: #856404;
}

.seo-disclaimer p {
  color: #856404;
}

.disclaimer-resources {
  list-style-type: disc;
  padding-left: 30px;
  margin: 15px 0;
}

.disclaimer-resources li {
  color: #856404;
  margin-bottom: 8px;
}

.disclaimer-resources a {
  color: #007bff;
  text-decoration: none;
}

.disclaimer-resources a:hover {
  text-decoration: underline;
}

/****************************************
 * QUIZ WIDGET WRAPPER
 ****************************************/
.quiz-widget {
  background-color: #eef2f3;
  padding-top: 40px;
}

/****************************************
 * INTRO SCREEN
 ****************************************/
.intro-screen {
  max-width: 700px;
  margin: 60px auto;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.intro-screen h1 {
  margin-bottom: 20px;
  font-size: 2.25rem;
  font-family: 'DojowellBasic', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #1a2420;
}

.intro-screen p {
  margin-bottom: 15px;
  color: #555;
}

.intro-agreement {
  margin: 20px 0;
  text-align: left;
}

.intro-agreement label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.intro-btn {
  margin-top: 30px;
  padding: 12px 30px;
  background-color: #28a745;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  transition:
    background-color 0.25s,
    transform 0.25s;
  font-weight: 600;
}

.intro-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.intro-btn:hover:not(:disabled) {
  background-color: #1e7e34;
  transform: translateY(-2px);
}

/****************************************
 * CHAPTER BREAK SCREEN
 ****************************************/
.chapter-screen {
  max-width: 700px;
  margin: 60px auto;
  background-color: #fff;
  padding: 50px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.chapter-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #007bff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.chapter-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
  font-weight: 700;
}

.chapter-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.chapter-btn {
  padding: 12px 35px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition:
    background-color 0.25s,
    transform 0.25s;
  cursor: pointer;
}

.chapter-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.chapter-btn:focus {
  outline: 3px solid rgba(0, 123, 255, 0.4);
  outline-offset: 2px;
}

/****************************************
 * QUIZ CONTAINER
 ****************************************/
.quiz-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 100vh;
}

/* STICKY HEADER */
.quiz-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 100;
  padding: 20px 30px 15px;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.22s;
}

.breadcrumb a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb-current {
  color: #555;
  font-weight: 500;
}

.quiz-header > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.back-btn {
  background-color: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition:
    background-color 0.25s,
    transform 0.25s;
  font-size: 0.9rem;
}

.back-btn:hover:not(:disabled) {
  background-color: #5a6268;
  transform: translateY(-1px);
}

.back-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.quiz-title {
  margin: 0;
  text-align: center;
  font-size: 1.3rem;
  flex: 1;
}

/* PROGRESS BAR */
.progress-bar-container {
  padding: 0 30px 20px;
  background-color: #fff;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  transition: width 0.32s ease-out;
  border-radius: 10px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.progress-text {
  font-weight: 600;
  color: #333;
}

.progress-answered {
  color: #777;
  font-size: 0.8rem;
}

/* QUESTION AREA */
.question-area {
  padding: 30px;
  min-height: 400px;
}

.question {
  animation: slideInUp 0.28s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .question {
    animation: none;
  }
}

.question p {
  font-size: 1.25rem;
  margin-bottom: 25px;
  font-weight: 500;
  color: #222;
}

/****************************************
 * OPTION CARDS (Scenario Questions)
 ****************************************/
.options {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  position: relative;
  border: 2px solid #d0d0d0;
  border-radius: 12px;
  padding: 18px 20px;
  background-color: #fafafa;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.option-card:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.option-card.selected {
  border-color: #007bff;
  background-color: #e7f3ff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.option-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #007bff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.option-card.selected .option-badge {
  background-color: #0056b3;
}

.option-content {
  flex: 1;
}

.option-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.option-values {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.value-chip {
  font-size: 0.75rem;
  padding: 3px 10px;
  background-color: #e3e3e3;
  color: #555;
  border-radius: 12px;
}

.option-card.selected .value-chip {
  background-color: #007bff;
  color: #fff;
}

.option-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d0d0d0;
  background-color: #fff;
  position: relative;
  transition: all 0.22s ease;
}

.option-card.selected .option-check {
  background-color: #007bff;
  border-color: #007bff;
}

.option-card.selected .option-check::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Hidden radio for accessibility */
.option-card input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/****************************************
 * RATING QUESTIONS (Segmented Pill Control)
 ****************************************/
.rating-container {
  margin-bottom: 30px;
}

.rating-options {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #e8e8e8;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.rating-options li {
  flex: 0 0 auto;
  text-align: center;
}

.rating-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 14px 22px;
  background-color: transparent;
  transition: all 0.22s ease;
  border: none;
  position: relative;
  min-height: 56px;
  min-width: 56px;
}

.rating-pill:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.rating-pill.selected {
  background-color: #007bff;
  color: #fff;
  font-weight: 700;
}

.rating-pill input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-pill:focus-within {
  outline: 3px solid rgba(0, 123, 255, 0.5);
  outline-offset: -3px;
  z-index: 1;
}

.rating-number {
  font-size: 1.3rem;
  font-weight: 600;
}

.rating-anchors {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto 25px;
  padding: 0 10px;
  font-size: 0.8rem;
  color: #777;
}

.rating-anchor-left,
.rating-anchor-center,
.rating-anchor-right {
  text-align: center;
}

.rating-anchor-center {
  flex: 0 0 auto;
}

/* FOLLOW-UP REVEAL */
.follow-up-section {
  margin-top: 20px;
  overflow: hidden;
  transition:
    max-height 0.28s ease,
    opacity 0.28s ease;
  max-height: 0;
  opacity: 0;
}

.follow-up-section.expanded {
  max-height: 600px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .follow-up-section {
    transition: none;
  }
  .follow-up-section.expanded {
    max-height: none;
  }
}

.follow-up-section h4 {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: #444;
  font-weight: 600;
}

.follow-up-options {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.follow-up-card {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
  background-color: #fafafa;
  transition: all 0.22s ease;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.follow-up-card:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
  transform: translateX(2px);
}

.follow-up-card.selected {
  border-color: #007bff;
  background-color: #e7f3ff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.follow-up-card label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.follow-up-card input[type='radio'] {
  accent-color: #007bff;
  min-width: 18px;
  min-height: 18px;
}

.follow-up-card:focus-within {
  outline: 3px solid rgba(0, 123, 255, 0.4);
  outline-offset: 2px;
}

#other-input {
  margin-top: 12px;
}

#other-input input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.22s;
  min-height: 48px;
}

#other-input input:focus {
  border-color: #0056b3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* QUIZ BUTTON */
.quiz-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 25px;
  transition:
    background-color 0.25s,
    transform 0.25s;
  font-weight: 600;
}

.quiz-btn:hover:not(:disabled) {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.quiz-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/****************************************
 * UNDO TOAST
 ****************************************/
.undo-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #1a2420;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  opacity: 0;
  max-width: calc(100vw - 24px);
}
@media (max-width: 600px) {
  .undo-toast {
    bottom: 16px;
    font-size: 0.92rem;
  }
}

.undo-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.undo-message {
  font-size: 0.95rem;
}

.undo-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.22s;
}

.undo-btn:hover {
  background-color: #0056b3;
}

@media (prefers-reduced-motion: reduce) {
  .undo-toast {
    transition: none;
  }
  .undo-toast.show {
    transform: translateX(-50%) translateY(0);
  }
}

/****************************************
 * VALUE SPARK FEEDBACK
 ****************************************/
.value-spark {
  position: fixed;
  top: 80px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}

.spark-chip {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  opacity: 0;
  transform: translateX(20px);
  animation:
    sparkSlideIn 0.3s ease forwards,
    sparkFadeOut 0.3s ease 1.7s forwards;
}

@keyframes sparkSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sparkFadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spark-chip {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .value-spark {
    top: auto;
    bottom: 80px;
    right: 20px;
    left: 20px;
    align-items: center;
  }

  .spark-chip {
    font-size: 0.8rem;
    padding: 7px 14px;
  }
}

/* FOCUS STATES */
button:focus,
input[type='checkbox']:focus,
input[type='radio']:focus,
.option-card:focus-within {
  outline: 3px solid rgba(0, 123, 255, 0.5);
  outline-offset: 2px;
}

input[type='text']:focus {
  outline: 3px solid rgba(0, 123, 255, 0.3);
  outline-offset: 0;
}

/****************************************
 * ANALYZING SCREEN
 ****************************************/
.analyzing-screen {
  max-width: 700px;
  margin: 60px auto;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.analyzing-screen h2 {
  margin-bottom: 15px;
}

.loader {
  border: 6px solid #f3f3f3;
  border-radius: 50%;
  border-top: 6px solid #007bff;
  width: 50px;
  height: 50px;
  margin: 30px auto 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader {
    animation: none;
    border-top-color: #007bff;
  }
}

/****************************************
 * RESULTS SCREEN
 ****************************************/
.results-container {
  max-width: 800px;
  margin: 40px auto;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.results-container h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

.results-content {
  margin-top: 25px;
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.results-category {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #007bff;
}

.results-category h3 {
  margin-bottom: 15px;
  color: #007bff;
}

.results-category ul {
  list-style-type: disc;
  padding-left: 40px;
  text-align: left;
}

.results-category li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Inline subscribe block on results screen */
.quiz-subscribe {
  margin: 30px auto 0;
  max-width: 480px;
  padding: 20px 22px;
  background: rgba(16, 57, 98, 0.04);
  border: 1px solid rgba(16, 57, 98, 0.12);
  border-radius: 12px;
  text-align: center;
}

.quiz-subscribe-heading {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: #1a2420;
  font-weight: 600;
}

.quiz-subscribe-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-subscribe-form input[type='email'] {
  flex: 1 1 220px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 30, 25, 0.18);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s ease;
}

.quiz-subscribe-form input[type='email']:focus {
  border-color: #103962;
}

.quiz-subscribe-form button {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #103962;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.quiz-subscribe-form button:hover:not(:disabled) {
  background: #0a2848;
  transform: translateY(-1px);
}

.quiz-subscribe-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.quiz-subscribe-status {
  margin: 10px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.retake-btn {
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  transition:
    background-color 0.25s,
    transform 0.25s;
  font-weight: 600;
  min-width: 150px;
}

.retake-btn:hover {
  background-color: #1e7e34;
  transform: translateY(-2px);
}

.home-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  text-decoration: none;
  display: inline-block;
  transition:
    background-color 0.25s,
    transform 0.25s;
  font-weight: 600;
  min-width: 150px;
  text-align: center;
}

.home-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.home-btn:focus,
.retake-btn:focus,
.next-btn:focus,
.next-btn-secondary:focus {
  outline: 3px solid rgba(0, 123, 255, 0.4);
  outline-offset: 2px;
}

.next-btn {
  background-color: #103962;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  text-decoration: none;
  display: inline-block;
  transition:
    background-color 0.25s,
    transform 0.25s;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}
.next-btn:hover {
  background-color: #0a2848;
  transform: translateY(-2px);
}
.next-btn-secondary {
  background-color: transparent;
  color: #103962;
  border: 2px solid #103962;
  border-radius: 25px;
  padding: 10px 28px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  font-weight: 600;
  min-width: 180px;
  text-align: center;
}
.next-btn-secondary:hover {
  background-color: #103962;
  color: #fff;
  transform: translateY(-2px);
}

/****************************************
 * MOBILE RESPONSIVE
 ****************************************/
@media (max-width: 768px) {
  /* SEO Content Mobile */
  .seo-container {
    padding: 30px 20px;
  }

  .seo-hero h1 {
    font-size: 1.8rem;
  }

  .seo-lead {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .seo-section h2 {
    font-size: 1.5rem;
  }

  .seo-section h3 {
    font-size: 1.15rem;
  }

  .seo-section p,
  .seo-list li {
    font-size: 0.95rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .seo-faq,
  .seo-trust,
  .seo-disclaimer {
    padding: 20px;
  }

  /* Quiz Widget Mobile */
  .quiz-widget {
    padding-top: 20px;
  }

  .quiz-container {
    margin: 0;
    border-radius: 0;
  }

  .quiz-header {
    padding: 15px 20px 12px;
  }

  .breadcrumb {
    font-size: 0.75rem;
  }

  .breadcrumb-separator {
    margin: 0 5px;
  }

  .quiz-title {
    font-size: 1.1rem;
  }

  .back-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .progress-bar-container {
    padding: 0 20px 15px;
  }

  .question-area {
    padding: 20px;
    min-height: 350px;
  }

  .question p {
    font-size: 1.1rem;
  }

  .option-card {
    padding: 15px;
    gap: 12px;
  }

  .option-badge {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .option-title {
    font-size: 0.95rem;
  }

  .value-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .rating-options {
    width: 100%;
  }

  .rating-pill {
    padding: 12px 16px;
    min-width: 48px;
    min-height: 48px;
  }

  .rating-number {
    font-size: 1.1rem;
  }

  .rating-anchors {
    font-size: 0.75rem;
    max-width: 100%;
  }

  .undo-toast {
    bottom: 20px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .intro-screen,
  .chapter-screen,
  .analyzing-screen,
  .results-container {
    margin: 20px;
    padding: 30px 20px;
  }

  .chapter-title {
    font-size: 1.6rem;
  }

  .chapter-description {
    font-size: 0.95rem;
  }

  .results-actions {
    flex-direction: column;
    gap: 12px;
  }

  .retake-btn,
  .home-btn {
    width: 100%;
    max-width: 300px;
  }
}
.quiz-footer {
  max-width: 900px;
  margin: 30px auto 24px;
  padding: 0 16px;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

.quiz-footer p {
  margin: 6px 0;
}

.quiz-footer a {
  color: #007bff;
  text-decoration: none;
}
.quiz-footer a:hover {
  text-decoration: underline;
}
