/* -----------------------
   Base
----------------------- */

* {
  box-sizing: border-box;
}

body.quiz-body {
  margin: 0;
  min-height: 100vh;
  background: #fbfbf8;
  font-family: "Inter", system-ui, sans-serif;
  color: #1c1c1c;
  display: flex;
  flex-direction: column;
}

/* -----------------------
   Header
----------------------- */

.quiz-header {
  padding: 20px 24px;
}

.logo {
  height: 32px;
}

/* -----------------------
   Layout
----------------------- */

.quiz-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 24px;
}

.quiz-step {
  width: 100%;
  max-width: 520px;
}

/* -----------------------
   Eyebrow + Progress
----------------------- */

.quiz-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.quiz-progress {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.back-btn {
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  color: #6b7280;
}


.progress-track {
  height: 3px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #6366f1;
  border-radius: 999px;
}

.progress-count {
  font-size: 0.7rem;
  color: #6b7280;
}

/* -----------------------
   Question
----------------------- */

.quiz-question {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 32px;
}

/* -----------------------
   Choices
----------------------- */

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-btn {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.choice-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.choice-btn:active {
  background: #f3f4f6;
}




/* -----------------------
   Completion Screen
----------------------- */

.quiz-complete {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quiz-progress.complete {
  margin-bottom: 48px;
}

/* Title + description */

.result-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

.result-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto 48px;
}

.tagline {
  font-weight: 700;
}

/* Guidance blocks */

.result-guidance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.guidance-block {
  text-align: left;
  padding-left: 16px;
  border-left: 2px solid #e5e7eb;
}

.guidance-block.week {
  border-color: #7c3aed;
}

.guidance-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.guidance-label {
  display: flex;
  align-items: center;
  gap: 4px;
}


.guidance-label.highlight {
  color: #7c3aed;
}

.guidance-block strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.guidance-block p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #374151;
  margin: 0;
}

/* Save card */

.save-card {
  background: #f5f5f2;
  border-radius: 16px;
  padding: 28px 24px;
}

.save-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.save-sub {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 18px;
}

.save-btn {
  background: #1c1c1c;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.save-btn:hover {
  opacity: 0.9;
}


.exit-btn {
  position: absolute;
  right: 15vw;
  top: 5vw;
}

/* Mobile */

@media (max-width: 640px) {
  .result-guidance {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* ----------------------
   Mobile
----------------------- */

@media (max-width: 480px) {
  .quiz-main {
    padding-top: 48px;
  }

  .quiz-question {
    font-size: 1rem;
  }
}