/* quiz.css - Kyselypatterin lisätyylit TFW Porille */

.quiz-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Jättää tilaa navbarille */
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  border-top: 4px solid var(--brand);
}

/* Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kysymys ja Vaihtoehdot */
.question-wrapper {
  animation: fadeIn 0.4s ease-out;
}

.question-text {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.4;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-btn {
  text-align: left;
  justify-content: flex-start;
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  white-space: normal;
  height: auto;
}

.quiz-btn:hover {
  background: rgba(255, 192, 0, 0.1);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Tulokset */
.result-bars {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.res-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.res-bar-bg {
  height: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.res-bar-fill {
  height: 100%;
  background: #3f3f46;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 99px;
}

.res-bar-fill.winner {
  background: linear-gradient(90deg, #f5c518 0%, #eab308 100%);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
}

/* Liidilomake */
.lead-block {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.1), transparent);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 16px;
  text-align: center;
}

.lead-block h3 {
  color: var(--brand);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.lead-input-group {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  max-width: 400px;
  margin-inline: auto;
}

.lead-input-group input {
  flex: 1;
}

.lead-input-group .btn {
  margin: 0;
}

@media (max-width: 600px) {
  .lead-input-group {
    flex-direction: column;
  }
}