/* 
   QUIZ CARNÍVORA - DESIGN COMPLETO AJUSTADO PELO SCREENSHOT
   Ajustes finos de cores, fontes, tamanhos e alinhamentos exatos da InLead
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --theme-accent-color: #ef4444; /* Vermelho Inlead original do screenshot */
  --theme-accent-hover: #dc2626;
  --theme-background-color: #ffffff;
  --theme-heading-color: #030712;
  --theme-text-color: #030712;
  --theme-text-muted: #4b5563;
  --theme-border-color: #e5e7eb;
  --theme-border-active: #ef4444;
  --theme-bg-soft: #f9fafb;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e Configurações Globais */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #ffffff; /* Fundo 100% branco para toda a página */
  color: var(--theme-text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Container do App (SPA) */
#quiz-app {
  background-color: var(--theme-background-color);
  width: 100%;
  max-width: 480px; /* Conteúdo centralizado de forma harmônica */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Responsividade de Tela Inteira para Mobile */
@media (max-width: 640px) {
  body {
    background-color: var(--theme-background-color);
  }
  
  #quiz-app {
    max-width: 100%;
  }
}

/* Header Estilo InLead */
.quiz-header {
  height: 110px; /* Aumentado de 88px para comportar o logo maior */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: var(--theme-background-color);
}

.back-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: opacity var(--transition-fast);
}

.back-button:hover {
  opacity: 0.6;
}

.back-button svg {
  width: 24px;
  height: 24px;
}

.quiz-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding-right: 24px; /* Compensar o botão voltar para centralizar perfeitamente */
}

.quiz-logo img {
  height: 115px; /* Aumentado de 84px para 115px para o logotipo de fundo quadrado ficar maior e mais visível */
  width: auto;
  display: block;
}

.header-placeholder {
  width: 24px;
}

/* Barra de Progresso Vermelha InLead */
.progress-container {
  height: 8px;
  background-color: #fee2e2; /* Trilha vermelha clara sutil */
  width: 100%;
}

.progress-bar {
  height: 100%;
  background-color: var(--theme-accent-color); /* Vermelho brilhante */
  width: 0%;
  transition: width var(--transition-base);
}

/* Área de Conteúdo principal */
.quiz-content {
  flex: 1;
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .quiz-content {
    padding: 24px 16px;
  }
}

/* Etapas SPA */
.quiz-step {
  display: none;
  width: 100%;
}

.quiz-step.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Estilos de Texto do Quill Editor (Rich Text) --- */
.rich-text {
  font-family: var(--font-family);
  color: var(--theme-heading-color);
  margin-bottom: 24px;
  width: 100%;
}

.rich-text h1, .rich-text h2, .rich-text h3 {
  font-family: var(--font-family);
  color: var(--theme-heading-color);
  line-height: 1.25;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.rich-text h1 {
  font-size: 30px;
}

.rich-text h2 {
  font-size: 26px;
}

.rich-text h3 {
  font-size: 20px;
}

@media (max-width: 480px) {
  .rich-text h1 { font-size: 27px; }
  .rich-text h2 { font-size: 23px; }
  .rich-text h3 { font-size: 18.5px; }
}

.rich-text p {
  font-size: 15px;
  color: var(--theme-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Classes do Quill Editor */
.ql-align-center {
  text-align: center !important;
}

.ql-align-justify {
  text-align: justify !important;
}

.ql-align-right {
  text-align: right !important;
}

.ql-size-huge {
  font-size: 2.2rem !important;
}

.ql-size-large {
  font-size: 1.5rem !important;
}

.ql-size-small {
  font-size: 0.75rem !important;
}

/* Opções de Escolha (Texto Puro) */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-card {
  background-color: var(--theme-background-color);
  border: 1px solid var(--theme-border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px; /* Aumentado padding horizontal para melhor área de toque */
  width: 100%; /* Garantir largura total */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alinhado à esquerda */
  gap: 14px; /* Espaço entre a bolinha de marcar e a legenda */
  transition: all var(--transition-fast);
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.option-card:hover {
  border-color: var(--theme-accent-color) !important;
  background-color: var(--theme-bg-soft);
}

.option-card.selected {
  border-color: var(--theme-accent-color) !important;
  background-color: var(--theme-accent-color) !important;
  color: #ffffff !important;
  transform: scale(0.985); /* Leve efeitinho de pressionar */
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.option-card.selected .option-label,
.option-card.selected .option-label p {
  color: #ffffff !important;
}

.option-label {
  font-size: 16px; /* Aumento sutil de ~10% na fonte para melhor legibilidade no celular */
  font-weight: 500;
  color: var(--theme-text-color);
  flex-grow: 1;
  padding-right: 8px;
  line-height: 1.35;
}

.option-label p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
}

.option-check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--theme-border-color);
  background-color: var(--theme-background-color);
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.option-card.selected .option-check-circle {
  border-color: #ffffff !important;
  background-color: #ffffff !important;
}

.option-card.selected .option-check-circle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--theme-accent-color) !important;
}

/* Cards com Imagem (Fidelidade Exata ao Screenshot) */
.option-card.has-image {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--theme-border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.option-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--theme-bg-soft);
  position: relative;
  overflow: hidden;
}

.option-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Barra de informações do card de imagem sem borda superior no screenshot */
.option-card.has-image .option-info-bar {
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-background-color);
}

.option-card.has-image .option-label {
  font-size: 16px; /* Aumento sutil para legibilidade */
  font-weight: 500;
  text-align: center;
  padding-right: 0;
  color: var(--theme-text-color);
}

.option-card.has-image.selected {
  border-color: var(--theme-accent-color) !important;
}

.option-card.has-image.selected .option-info-bar {
  background-color: var(--theme-accent-color) !important;
}

.option-card.has-image.selected .option-label {
  color: #ffffff !important;
}

/* Layout Lista Vertical 1 Coluna (Horizontal) */
.options-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.option-card.horizontal {
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 !important;
  height: 80px !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
  border: 1px solid var(--theme-border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.option-card.horizontal:hover {
  background-color: var(--theme-bg-soft);
  border-color: #c5c5c5;
}

.option-card.horizontal.selected {
  border-color: var(--theme-border-active) !important;
  background-color: var(--theme-bg-soft) !important;
}

.option-image-wrapper.horizontal {
  width: 80px !important;
  height: 80px !important;
  aspect-ratio: auto !important;
  flex-shrink: 0;
  border-right: 1px solid var(--theme-border-color);
  border-bottom: none !important;
}

.option-image-wrapper.horizontal img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.option-info-bar.horizontal {
  flex-grow: 1;
  padding: 0 16px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  background: none !important;
  border: none !important;
  height: 100%;
}

.option-info-bar.horizontal .option-label {
  font-size: 16.5px !important; /* Aumento sutil de ~10% na fonte */
  font-weight: 600 !important;
  text-align: left !important;
  color: var(--theme-text-color);
}

/* Sliders de Altura e Pesos */
.slider-group {
  margin: 24px 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.slider-val-display {
  font-size: 54px;
  font-weight: 800;
  color: var(--theme-heading-color);
  margin-bottom: 12px;
  letter-spacing: -1.5px;
  display: flex;
  align-items: baseline;
}

.slider-val-display span {
  font-size: 18px;
  font-weight: 600;
  color: var(--theme-text-muted);
  margin-left: 4px;
}

.custom-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--theme-border-color);
  outline: none;
  margin: 16px 0;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--theme-accent-color);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--theme-text-muted);
  font-size: 12px;
}

/* Inputs de Texto */
.text-input-wrapper {
  margin: 16px 0 24px 0;
}

.text-input-field {
  width: 100%;
  height: 52px;
  border: 1px solid var(--theme-border-color);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  color: var(--theme-text-color);
  transition: border-color var(--transition-fast);
  background-color: var(--theme-bg-soft);
}

.text-input-field:focus {
  border-color: var(--theme-border-active);
  background-color: var(--theme-background-color);
}

/* Botão de Avanço */
.btn-primary {
  width: 100%;
  height: 56px; /* Aumentado de 52px para 56px (um pouco mais gordinho) */
  background-color: var(--theme-accent-color);
  color: var(--theme-background-color);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
  margin-top: auto;
}

.btn-primary:hover {
  background-color: var(--theme-accent-hover);
}

/* Imagens Estáticas */
.step-static-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--theme-border-color);
}

.step-static-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tela de Análise / Carregamento */
.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  flex: 1;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3.5px solid var(--theme-border-color);
  border-top-color: var(--theme-accent-color);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 28px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--theme-heading-color);
}

.loading-subtitle {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin-bottom: 28px;
}

.loading-checklist {
  text-align: left;
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--theme-text-muted);
}

.checklist-item.active {
  color: var(--theme-text-color);
  font-weight: 600;
}

.checklist-item.completed {
  color: #10b981;
}

.checklist-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PÁGINA DE RESULTADOS / VENDAS */
.result-container {
  display: flex;
  flex-direction: column;
}

.result-card-white {
  background-color: var(--theme-background-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--theme-border-color);
}

.result-badge {
  background-color: #fee2e2;
  color: #ef4444;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-h1 {
  font-size: 25px;
  font-weight: 800;
  color: var(--theme-heading-color);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.result-p {
  font-size: 14.5px;
  color: var(--theme-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Bloco de Preço e CTA */
.price-block {
  text-align: center;
  padding: 16px 0;
  border-top: 1px dashed var(--theme-border-color);
  border-bottom: 1px dashed var(--theme-border-color);
  margin-bottom: 20px;
}

.price-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.price-value-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.old-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

.current-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--theme-heading-color);
}

.price-after {
  font-size: 12px;
  color: var(--theme-text-muted);
}

.cta-pulse {
  background-color: #22c55e;
  color: white;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 12px rgba(34,197,94,0.25);
  animation: pulse 1.8s infinite;
}

.cta-pulse:hover {
  background-color: #16a34a;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(34,197,94,0.25);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 4px 16px rgba(34,197,94,0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(34,197,94,0.25);
  }
}

/* Temporizador Regressivo */
.urgency-timer {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.timer-label {
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
}

.timer-nums {
  font-size: 16px;
  font-weight: 800;
  color: #b45309;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 24px;
}

.faq-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--theme-heading-color);
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--theme-border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  background-color: var(--theme-background-color);
  border: none;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--theme-text-color);
}

.faq-question-btn:hover {
  background-color: var(--theme-bg-soft);
}

.faq-answer {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0, 1, 0, 1);
  font-size: 13px;
  color: var(--theme-text-muted);
  line-height: 1.5;
}

.faq-item.open .faq-answer {
  padding: 14px;
  max-height: 300px;
  border-top: 1px solid var(--theme-border-color);
}

.faq-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Grades de Imagens (ex: Etapa 26 de receitas) */
.step-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.grid-image-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--theme-border-color);
  aspect-ratio: 1 / 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.grid-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.weight-chart-container {
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  margin-bottom: 24px;
  width: 100%;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--theme-border-color);
  padding-bottom: 8px;
}

.chart-svg-wrapper {
  width: 100%;
  position: relative;
}

.weight-loss-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Animações CSS para o Gráfico Cartesiano Premium */
.chart-grid-area {
  opacity: 0;
  animation: fadeInGrid 0.5s ease-out forwards;
}

.animated-chart-line {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: drawChartLine 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.animated-chart-area {
  opacity: 0;
  animation: fadeInChartArea 0.4s ease-out 1.2s forwards;
}

.chart-dot-1 {
  transform-origin: 52px 37px;
  transform: scale(0);
  animation: popChartDot 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.chart-dot-2 {
  transform-origin: 190px 65px;
  transform: scale(0);
  animation: popChartDot 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

.chart-dot-3 {
  transform-origin: 328px 100px;
  transform: scale(0);
  animation: popChartDot 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
}

.chart-badge-you {
  transform-origin: 190px 41px;
  transform: scale(0);
  animation: popChartDot 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

@keyframes fadeInGrid {
  to { opacity: 1; }
}

@keyframes drawChartLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeInChartArea {
  to { opacity: 1; }
}

@keyframes popChartDot {
  to { transform: scale(1); }
}

/* Rodapé */
.quiz-footer {
  padding: 20px 16px;
  text-align: center;
  font-size: 10.5px;
  color: var(--theme-text-muted);
  border-top: 1px solid var(--theme-border-color);
  background-color: #ffffff; /* Fundo branco para uniformizar a página */
  margin-top: auto;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  color: var(--theme-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Seletor de Unidades (cm/pol ou kg/lbs) */
.unit-selector-container {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 8px;
}

.unit-selector {
  display: flex;
  background-color: #f3f4f6;
  padding: 3px;
  border-radius: 9999px;
  width: 130px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.unit-option {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  user-select: none;
}

.unit-option.active {
  background-color: var(--theme-accent-color);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Valor Display Grande */
.ruler-value-display {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  color: var(--theme-heading-color);
  margin: 16px 0;
  font-family: var(--font-family);
  letter-spacing: -0.03em;
}

.ruler-unit-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-text-muted);
  margin-left: 2px;
}

/* Container da Régua */
.ruler-wrapper-outer {
  position: relative;
  width: 100%;
  margin: 20px 0;
  background-color: #ffffff;
  padding-bottom: 12px;
}

.ruler-container {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
  border-top: 1.5px solid #e5e7eb;
  border-bottom: 1.5px solid #e5e7eb;
  cursor: grab;
  user-select: none;
}

.ruler-container:active {
  cursor: grabbing;
}

/* Agulha/Cursor Vermelho Central Fixo */
.ruler-needle-container {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ruler-needle-line {
  width: 2px;
  background-color: var(--theme-accent-color);
  flex-grow: 1;
}

.ruler-needle-triangle {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--theme-accent-color);
  margin-top: -1px;
}

/* A Fita Deslizante da Régua */
.ruler-tape {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  will-change: transform;
}

/* Risquinhos e Números */
.ruler-tick-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px; /* Largura virtual para centralizar o risquinho */
  margin-left: -20px; /* Compensar largura virtual */
  pointer-events: none;
}

.ruler-tick {
  width: 1.5px;
  background-color: #d1d5db;
  border-radius: 99px;
}

.ruler-tick-small {
  height: 24px;
  margin-top: 0;
}

.ruler-tick-medium {
  height: 36px;
  margin-top: 0;
  background-color: #9ca3af;
  width: 2px;
}

.ruler-tick-large {
  height: 48px;
  margin-top: 0;
  background-color: #4b5563;
  width: 2.5px;
}

.ruler-tick-number {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  font-family: var(--font-family);
}

.ruler-hint {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Container de Depoimentos do Quiz */
.step-quotes-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

.quote-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.quote-stars {
  color: #eab308; /* Amarelo/dourado das estrelas */
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  line-height: 1;
}

.quote-author-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.quote-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-heading-color);
  line-height: 1.25;
}

.quote-activity {
  font-size: 13.5px;
  color: #9ca3af;
  margin-top: 2px;
  font-family: var(--font-family);
}

.quote-text {
  font-size: 14.5px;
  color: #4b5563; /* Texto depoimento cinza escuro */
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

/* Barra de Carregamento da Tela de Gráfico */
.chart-loading-wrapper {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 24px;
}

.chart-loading-text-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-heading-color);
  margin-bottom: 8px;
  font-family: var(--font-family);
}

.chart-loading-bar-outer {
  width: 100%;
  height: 18px;
  background-color: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.chart-loading-bar-inner {
  height: 100%;
  background-color: var(--theme-accent-color); /* Vermelho */
  border-radius: 9999px;
  transition: width 0.05s linear;
}

.chart-loading-subtitle {
  font-size: 14.5px;
  color: #9ca3af;
  font-weight: 500;
  text-align: center;
  margin-top: 6px;
}
/* Estilos para Múltipla Escolha e Botão Apagado */
.option-card.has-icon-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row; /* Garante alinhamento horizontal */
  padding: 16px 20px;
}

.option-card.has-icon-end .option-label {
  margin-right: auto;
  text-align: left;
}

.option-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px; /* Bordas arredondadas suaves como a referência */
  border: 1.5px solid var(--theme-border-color);
  background-color: var(--theme-background-color);
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.option-card.selected .option-check-box {
  border-color: var(--theme-accent-color) !important;
  background-color: var(--theme-accent-color) !important;
}

/* Checkmark branco de check (v) dentro do quadrado */
.option-card.selected .option-check-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Estilo desabilitado do botão primário */
.btn-primary.disabled, .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #fca5a5 !important; /* Vermelho claro/apagado */
  border-color: #fca5a5 !important;
}

/* ==========================================================================
   ESTILOS ADICIONAIS - PÁGINA DO PLANO DA DIETA CARNÍVORA ESTÁ PRONTO (IDÊNTICO)
   ========================================================================== */

/* Card de Comparação Antes/Depois */
.comparison-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

.comparison-header {
  display: flex;
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-header-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.comparison-image-wrapper {
  width: 100%;
  background-color: #ffffff;
}

.comparison-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-footer {
  background-color: #ffffff;
  padding: 14px 16px;
  border-top: 1px solid #f3f4f6;
}

.comparison-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.comparison-footer-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comparison-label {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  text-align: left;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.slider-track-red, .slider-track-green {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  position: relative;
}

.slider-track-red {
  background: linear-gradient(to right, #ef4444 20%, #e5e7eb 20%);
}

.slider-track-green {
  background: linear-gradient(to right, #22c55e 80%, #e5e7eb 80%);
}

.slider-thumb {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.slider-pct {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}

/* Temporizador de Urgência Circular Rosa */
.urgency-timer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto;
}

.urgency-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fee2e2; /* rosa claro */
  border: 1.5px solid #fca5a5; /* borda avermelhada fina */
  border-radius: 12px;
  width: 54px;
  height: 54px;
}

.urgency-timer-num {
  font-size: 20px;
  font-weight: 800;
  color: #ef4444; /* vermelho */
  line-height: 1.1;
}

.urgency-timer-unit {
  font-size: 10px;
  font-weight: 600;
  color: #f87171; /* vermelho claro */
  text-transform: lowercase;
}

.urgency-timer-colon {
  font-size: 24px;
  font-weight: 800;
  color: #ef4444;
  margin-bottom: 4px;
}

/* Bloco de Preço Kiwify */
.price-box-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #fca5a5;
  border-radius: 14px;
  padding: 12px 20px;
  background-color: #ffffff;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.price-left {
  display: flex;
  align-items: center;
}

.price-label {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.price-right-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f3f4f6;
  border-radius: 10px;
  padding: 6px 16px;
  min-width: 90px;
}

.badge-off {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 2px;
}

.badge-price {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.badge-vista {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  margin-top: 2px;
}

/* Lista de Inclusões */
.includes-list-dots {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.includes-list-dots li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #374151;
  text-align: left;
}

.includes-list-dots li::before {
  content: "•";
  color: #9ca3af;
  font-size: 18px;
  position: absolute;
  left: 0;
  top: -1px;
}

/* Depoimentos dos Alunos */
.testimonial-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 15px;
  margin-bottom: 6px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.testimonial-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}

.testimonial-user {
  font-size: 12px;
  color: #9ca3af;
}

.testimonial-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #4b5563;
  margin: 0;
}

/* Barras Segmentadas Animadas de Condição Física */
.segmented-bar-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.segmented-bar-track {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 6px;
}

.bar-segment {
  flex: 1;
  height: 6px;
  background-color: #e5e7eb; /* cinza claro (vazio) */
  border-radius: 9999px;
  transform-origin: left center;
}

.bar-segment.fill-red {
  background-color: #ef4444; /* vermelho */
}

.bar-segment.fill-green {
  background-color: #22c55e; /* verde */
}

/* Animação dos bloquinhos */
.bar-segment.animate-grow {
  transform: scaleX(0);
  animation: growSegment 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes growSegment {
  to {
    transform: scaleX(1);
  }
}

/* Thumb */
.segmented-thumb {
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  pointer-events: none;
}

.segmented-thumb.animate-pop {
  animation: popThumb 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popThumb {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Customização Premium para a Primeira Etapa (Gênero) */
#quiz-content-area[data-step="GOQAjG"] {
  padding-top: 16px !important;
}

#quiz-content-area[data-step="GOQAjG"] .rich-text h2 {
  font-size: 28px !important;
  line-height: 1.25 !important;
  margin-bottom: 12px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}

#quiz-content-area[data-step="GOQAjG"] .rich-text p {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: var(--theme-text-color) !important;
}

#quiz-content-area[data-step="GOQAjG"] .option-card.has-image {
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

#quiz-content-area[data-step="GOQAjG"] .option-card.has-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#quiz-content-area[data-step="GOQAjG"] .option-image-wrapper {
  aspect-ratio: 4 / 5 !important; /* Imagens das alternativas mais verticais e maiores */
}

#quiz-content-area[data-step="GOQAjG"] .option-image-wrapper img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

#quiz-content-area[data-step="GOQAjG"] .option-card.has-image:hover .option-image-wrapper img {
  transform: scale(1.08);
}

#quiz-content-area[data-step="GOQAjG"] .option-card.has-image .option-info-bar {
  padding: 18px 12px !important;
}

#quiz-content-area[data-step="GOQAjG"] .option-card.has-image .option-label p {
  font-size: 19px !important; /* Legenda do gênero maior e mais visível */
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}
