/* ============================================== */
/* SELETOR DE FRAGRÂNCIA - DESIGN MODERNO 2.1    */
/* CORRIGIDO: Loading, Imagem e Links            */
/* ============================================== */

:root {
  --cinza: #666;
  --bege-claro: #f8f4f0;
  --verde-primario: #8eb199;
  --verde-escuro: #4a7c59;
  --marrom: #7F6449;
  --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.08);
  --sombra-media: 0 8px 30px rgba(0, 0, 0, 0.12);
  --sombra-forte: 0 12px 40px rgba(0, 0, 0, 0.15);
  --transicao-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================== */
/* CONTAINER PRINCIPAL                            */
/* ============================================== */

.seletor-fragrancia {
  background: linear-gradient(135deg,#8faa8f 0%,#6f8f73 40%,#3f5f44 75%,#2f4a35 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  position: relative;
  width: 100%;
}

.container-fragrancia {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--sombra-forte);
  max-width: 900px;
  width: 100%;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

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

/* ============================================== */
/* BARRA DE PROGRESSO                             */
/* ============================================== */

.progress-container {
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(142, 177, 153, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--verde-primario), var(--verde-escuro));
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 10px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(142, 177, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--cinza);
  transition: var(--transicao-suave);
  position: relative;
  z-index: 1;
}

.step.active {
  border-color: var(--verde-primario);
  background: var(--verde-primario);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(142, 177, 153, 0.4);
}

.step.completed {
  border-color: var(--verde-escuro);
  background: var(--verde-escuro);
  color: white;
}

/* ============================================== */
/* ETAPAS                                         */
/* ============================================== */

.etapa {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transicao-suave);
}

.etapa.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideInUp 0.4s ease-out;
}

.etapa.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

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

/* ============================================== */
/* TELA INICIAL                                   */
/* ============================================== */

.hero-content {
  text-align: center;
  padding: 40px 0;
}

.icon-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, var(--verde-primario), var(--verde-escuro));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(142, 177, 153, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.icon-container i {
  font-size: 48px;
  color: white;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(142, 177, 153, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(142, 177, 153, 0.4);
  }
}



.subtitulo {
  font-size: clamp(16px, 3vw, 18px);
  color: var(--cinza);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ============================================== */
/* PERGUNTAS                                      */
/* ============================================== */

.pergunta-titulo {
  font-size: clamp(22px, 4vw, 28px);
  color: var(--marrom);
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.pergunta-subtitulo {
  font-size: 16px;
  color: var(--cinza);
  text-align: center;
  margin-bottom: 35px;
  font-style: italic;
}

/* ============================================== */
/* OPÇÕES - GRID MODERNO                          */
/* ============================================== */

.opcoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.opcoes-intensidade {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 30px auto 0;
}

.opcao-card {
  background: white;
  border: 2px solid rgba(142, 177, 153, 0.2);
  border-radius: 16px;
  padding: 30px 20px;
  cursor: pointer;
  transition: var(--transicao-suave);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.opcao-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--verde-primario), var(--verde-escuro));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.opcao-card i {
  font-size: 40px;
  color: var(--verde-primario);
  transition: var(--transicao-suave);
  position: relative;
  z-index: 1;
}

.opcao-card span {
  font-size: 18px;
  font-weight: 600;
  color: var(--marrom);
  transition: var(--transicao-suave);
  position: relative;
  z-index: 1;
}

.opcao-card small {
  font-size: 14px;
  color: var(--cinza);
  transition: var(--transicao-suave);
  position: relative;
  z-index: 1;
}

.opcao-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-media);
  border-color: var(--verde-primario);
}

.opcao-card:hover::before {
  opacity: 1;
}

.opcao-card:hover i,
.opcao-card:hover span,
.opcao-card:hover small {
  color: white;
}

.opcao-card:active {
  transform: translateY(-2px) scale(0.98);
}

/* ============================================== */
/* BOTÕES                                         */
/* ============================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--verde-primario), var(--verde-escuro));
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transicao-suave);
  box-shadow: 0 4px 15px rgba(142, 177, 153, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(142, 177, 153, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

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

/* ============================================== */
/* LOADING - ANIMAÇÃO CORRIGIDA                   */
/* ============================================== */

.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.loading-circle {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(142, 177, 153, 0.2);
  border-top: 4px solid var(--verde-primario);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

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

.bottle-icon {
  position: relative;
  z-index: 1;
  font-size: 52px;
  color: var(--verde-escuro);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.loading-title {
  font-size: 24px;
  color: var(--marrom);
  margin-bottom: 30px;
  font-weight: 600;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  opacity: 0.5;
  transition: var(--transicao-suave);
  font-size: 16px;
  color: var(--cinza);
}

.loading-step.active {
  opacity: 1;
  transform: scale(1.02);
  background: linear-gradient(135deg, rgba(142, 177, 153, 0.1), rgba(74, 124, 89, 0.1));
}

.loading-step.completed {
  opacity: 1;
  color: var(--verde-escuro);
}

.loading-step i {
  font-size: 20px;
  color: var(--verde-primario);
}

.loading-step i.fa-spinner {
  animation: spin 1s linear infinite;
}

.loading-step.completed i {
  color: var(--verde-escuro);
}

/* ============================================== */
/* RESULTADO                                      */
/* ============================================== */

.resultado-container {
  animation: fadeInUp 0.6s ease-out;
}

.resultado-header {
  text-align: center;
  margin-bottom: 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease-out;
}

.success-icon i {
  font-size: 40px;
  color: white;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.resultado-header h3 {
  font-size: clamp(26px, 5vw, 32px);
  color: var(--marrom);
  margin-bottom: 15px;
  font-weight: 700;
}

.compatibilidade-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 30px;
  background: linear-gradient(135deg, rgba(142, 177, 153, 0.1), rgba(74, 124, 89, 0.1));
  border-radius: 50px;
  border: 2px solid var(--verde-primario);
}

.compatibilidade-numero {
  font-size: 32px;
  font-weight: 700;
  color: var(--verde-escuro);
}

.compatibilidade-texto {
  font-size: 14px;
  color: var(--cinza);
}

/* ============================================== */
/* CARD DA ESSÊNCIA - IMAGEM CORRIGIDA           */
/* ============================================== */

.essencia-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background: linear-gradient(135deg, white, var(--bege-claro));
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
  margin-bottom: 30px;
}

.essencia-imagem {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: var(--transicao-suave);
  height: fit-content;
}

.essencia-imagem img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: var(--transicao-suave);
  object-fit: contain;
}

/* Efeito de brilho diagonal ao passar o mouse */
.imagem-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.essencia-imagem:hover .imagem-shine {
  transform: translateX(0) translateY(0);
}

.essencia-imagem:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-media);
}

.essencia-imagem:hover img {
  transform: scale(1.05);
}

.essencia-nome {
  font-size: clamp(24px, 4vw, 28px);
  color: var(--verde-escuro);
  margin-bottom: 15px;
  font-weight: 700;
}

.essencia-descricao {
  font-size: 16px;
  color: var(--cinza);
  line-height: 1.6;
  margin-bottom: 25px;
  font-style: italic;
}

.notas-container {
  margin-bottom: 25px;
}

.notas-container h5 {
  font-size: 16px;
  color: var(--marrom);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.notas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nota-tag {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--verde-primario);
  border-radius: 20px;
  font-size: 13px;
  color: var(--verde-escuro);
  font-weight: 500;
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.caracteristica {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
}

.caracteristica i {
  font-size: 20px;
  color: var(--verde-primario);
  margin-bottom: 5px;
}

.caracteristica strong {
  font-size: 12px;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.caracteristica span {
  font-size: 15px;
  color: var(--marrom);
  font-weight: 600;
}

/* ============================================== */
/* ALTERNATIVAS                                   */
/* ============================================== */

.alternativas-section {
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, var(--bege-claro), white);
  border-radius: 16px;
  box-shadow: var(--sombra-suave);
}

.alternativas-section h4 {
  font-size: 20px;
  color: var(--marrom);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.alternativas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.alternativa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: white;
  border: 2px solid rgba(142, 177, 153, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--marrom);
  font-weight: 600;
  transition: var(--transicao-suave);
}

.alternativa-card i {
  font-size: 20px;
  color: var(--verde-primario);
}

.alternativa-card:hover {
  border-color: var(--verde-primario);
  transform: translateX(5px);
  box-shadow: var(--sombra-suave);
}

/* ============================================== */
/* AÇÕES DO RESULTADO                             */
/* ============================================== */

.acoes-resultado {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.btn-catalogo,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transicao-suave);
  position: relative;
  overflow: hidden;
}

.btn-catalogo {
  background: linear-gradient(135deg, var(--marrom), #6a543d);
  color: white;
  box-shadow: 0 4px 15px rgba(127, 100, 73, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #1ebe5c);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-catalogo:hover,
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-media);
}

/* ============================================== */
/* RESUMO DAS ESCOLHAS                            */
/* ============================================== */

.resumo-escolhas {
  padding: 25px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--sombra-suave);
}

.resumo-escolhas h5 {
  font-size: 18px;
  color: var(--marrom);
  margin-bottom: 15px;
  font-weight: 600;
}

.preferencias-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preferencia-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(142, 177, 153, 0.1), rgba(74, 124, 89, 0.1));
  border-radius: 20px;
  font-size: 14px;
  color: var(--marrom);
  font-weight: 500;
}

.preferencia-item i {
  color: var(--verde-primario);
}

/* ============================================== */
/* RESPONSIVO - TABLET                            */
/* ============================================== */

@media (max-width: 1024px) {
  .essencia-card {
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px;
  }

  .caracteristicas-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================== */
/* RESPONSIVO - MOBILE                            */
/* ============================================== */

@media (max-width: 768px) {
  .container-fragrancia {
    padding: 30px 20px;
  }

  .progress-container {
    margin-bottom: 30px;
  }

  .step {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .opcoes-grid {
    grid-template-columns: 1fr;
  }

  .opcoes-intensidade {
    grid-template-columns: 1fr;
  }

  .opcao-card {
    min-height: 120px;
    padding: 20px 15px;
  }

  .opcao-card i {
    font-size: 32px;
  }

  .essencia-card {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
  }

  .essencia-imagem {
    max-width: 100%;
    margin: 0 auto;
  }

  .caracteristicas-grid {
    grid-template-columns: 1fr;
  }

  .alternativas-grid {
    grid-template-columns: 1fr;
  }

  .acoes-resultado {
    flex-direction: column;
  }

  .btn-catalogo,
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .loading-circle {
    width: 120px;
    height: 120px;
  }

  .bottle-icon {
    font-size: 44px;
  }
}

@media (max-width: 480px) {
  .container-fragrancia {
    padding: 20px 15px;
  }

  .icon-container {
    width: 80px;
    height: 80px;
  }

  .icon-container i {
    font-size: 36px;
  }

  .step {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .opcao-card {
    padding: 18px 12px;
  }

  .loading-steps {
    padding: 0 10px;
  }

  .loading-step {
    padding: 10px 15px;
    font-size: 14px;
  }

  .loading-circle {
    width: 100px;
    height: 100px;
  }

  .bottle-icon {
    font-size: 38px;
  }
}