:root {
  --primary: #4CAF50;
  /* Será atualizado conforme as imagens */
  --bg-page: #f8f9fa;
  --text-main: #212529;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%;
  max-width: 480px;
  /* Largura típica de funis mobile-first */
  padding: 15px;
  margin-top: 10px;
}

/* --- Header & Progress --- */
#quiz-header {
  width: 100%;
  margin-bottom: 30px;
  animation: fadeIn 0.4s ease-out forwards;
}

.logo-container {
  text-align: center;
  margin-bottom: 25px;
}

.logo {
  max-height: 128px;
  object-fit: contain;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #f1f3f5;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #00A84D;
  border-radius: 10px;
  transition: width 0.5s ease-out;
}

/* --- Core Steps --- */
.step {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.step.active {
  display: block;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  border-radius: 16px;
  padding-bottom: 25px;
}

/* Ocultar a sombra na etapa 2 pois é lisa */
.step-content.no-shadow {
  box-shadow: none;
  padding-bottom: 10px;
}

.image-crop {
  width: 100%;
  aspect-ratio: 100 / 145;
  /* Corta a parte inferior da imagem original onde estava o botão estático */
  overflow: hidden;
}

.image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.button-container {
  padding: 0 20px;
}

.btn-green {
  width: 100%;
  background-color: #00A84D;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  text-align: center;
  padding: 18px 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 6px 15px rgba(0, 168, 77, 0.3);
  transition: all 0.2s ease;
}

.btn-green:hover {
  background-color: #009645;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 77, 0.4);
}

.btn-green:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 168, 77, 0.3);
}

/* Efeito de pulso para chamar atenção para o CTA */
@keyframes pulseBtn {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.pulse-effect {
  animation: pulseBtn 2s infinite;
}

/* --- Typografias Etapa 02/07 --- */
.text-green {
  color: #00A84D;
}

.text-red {
  color: #e61919;
}

.question-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #1a2b3c;
  margin-bottom: 10px;
  line-height: 1.25;
}

.question-subtitle {
  font-size: 14.5px;
  text-align: center;
  color: #5d6a7b;
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.5;
  padding: 0 15px;
}

/* --- Opções Múltipla Escolha --- */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 5px;
}

.option-btn {
  width: 100%;
  background-color: #f3faf4;
  color: #1a2b3c;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-align: left;
  padding: 20px 22px;
  border: 1px solid #e2f0e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.option-btn:hover {
  background-color: #e5f5e8;
  border-color: #00A84D;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 168, 77, 0.1);
}

.option-btn:active {
  transform: translateY(1px);
}

/* Opções com Imagens (Ex: Etapa 03) */
.option-btn-icon {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  /* Reduzimos o padding vertical porque a imagem já dá volume */
}

.option-icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 6px;
}

.emoji-icon {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
}

.option-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 3px;
}

.option-title {
  font-weight: 700;
  font-size: 15.5px;
  color: #1a2b3c;
}

.option-desc {
  font-weight: 400;
  font-size: 13.5px;
  color: #1a2b3c;
  line-height: 1.3;
}

/* --- Inputs e Formulários --- */
.input-wrapper {
  padding: 0 10px;
}

.input-container {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-container input {
  width: 100%;
  padding: 16px 16px 16px 45px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: #1a2b3c;
  outline: none;
  transition: all 0.3s;
  background: #f8fafc;
}

.input-container input:focus {
  border-color: #00A84D;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 168, 77, 0.1);
}

.input-container.error input {
  border-color: #e53e3e;
  background: #fff5f5;
}

/* --- Checkbox Options (Etapa 10) --- */
.option-checkbox-btn {
  display: flex;
  align-items: center;
  background: #f7fbf8;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 15px;
  width: 100%;
  margin-bottom: 12px;
  transition: all 0.2s ease-in-out;
  text-align: left;
  gap: 15px;
  cursor: pointer;
}

.option-checkbox-btn.selected {
  border-color: #3b82f6;
  background: #eff6ff;
}

.blue-arrow-icon {
  background: #0066ff;
  border: 2px solid #1a2b3c;
  color: white;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-checkbox-btn .option-text {
  flex-grow: 1;
  font-size: 14.5px;
  color: #1a2b3c;
  line-height: 1.3;
}

.checkbox-circle {
  width: 22px;
  height: 22px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.option-checkbox-btn.selected .checkbox-circle {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.option-checkbox-btn.selected .checkbox-circle::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

.error-shake {
  animation: shake 0.3s ease-in-out;
}

/* --- Textos Auxiliares --- */
.disclaimer-text {
  font-size: 14px;
  color: #1a2b3c;
  text-align: center;
  margin-top: 25px;
  line-height: 1.5;
  padding: 0 10px;
}

.info-text {
  font-size: 15px;
  color: #1a2b3c;
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}

/* --- Depoimentos (Etapa 11) --- */
.testimonial-card {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 800;
  font-size: 16px;
  color: #1a2b3c;
}

.profile-loc {
  font-size: 13.5px;
  color: #718096;
}

.testimonial-body {
  font-size: 14.5px;
  color: #1a2b3c;
  line-height: 1.5;
  margin-bottom: 12px;
}

.stars {
  font-size: 18px;
  letter-spacing: 2px;
}

/* --- Sliders em formato de Régua (Etapas 12 e 13) --- */
.weight-slider,
.height-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  margin: 0;
}

/* Thumbs: Barra vertical com base em formato de triângulo via clip-path */
.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 60px;
  background: #4eb29d;
  cursor: pointer;
  clip-path: polygon(40% 0, 60% 0, 60% 85%, 100% 100%, 0 100%, 40% 85%);
  position: relative;
  top: -5px;
}

.weight-slider::-moz-range-thumb {
  width: 20px;
  height: 60px;
  background: #4eb29d;
  cursor: pointer;
  clip-path: polygon(40% 0, 60% 0, 60% 85%, 100% 100%, 0 100%, 40% 85%);
  border: none;
}

.height-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 60px;
  background: #00A84D;
  cursor: pointer;
  clip-path: polygon(40% 0, 60% 0, 60% 85%, 100% 100%, 0 100%, 40% 85%);
  position: relative;
  top: -5px;
}

.height-slider::-moz-range-thumb {
  width: 20px;
  height: 60px;
  background: #00A84D;
  cursor: pointer;
  clip-path: polygon(40% 0, 60% 0, 60% 85%, 100% 100%, 0 100%, 40% 85%);
  border: none;
}

/* --- Caixas de Diagnóstico (Etapa 19) --- */
.diagnosis-box {
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 15px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.diagnosis-box.yellow {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  color: #92400e;
}

.diagnosis-box.red {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.diagnosis-box.blue {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

/* --- Card Option Interativo (Etapa 20) --- */
.card-option {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-option:active {
  transform: scale(0.98);
  border-color: #00A84D;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}