/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Telas */
.screen {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
  display: block;
}

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

/* Tela de Boas-vindas */
.welcome-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.logo-image {
  max-height: 80px;
  max-width: 300px;
  height: auto;
  width: auto;
  margin-bottom: 30px;
}

.welcome-content h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.welcome-content h1 i {
  color: #DC143C;
  margin-right: 15px;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  color: #DC143C;
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.feature p {
  color: #666;
  font-size: 0.9rem;
}

.privacy-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.privacy-note i {
  color: #10B981;
}

/* Conversação */
.conversation-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #DC143C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message {
  background: #F3F4F6;
  padding: 20px;
  border-radius: 15px;
  border-top-left-radius: 5px;
  flex: 1;
}

.message p {
  margin-bottom: 10px;
}

.message p:last-child {
  margin-bottom: 0;
}

/* Inputs */
.input-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.input-container input {
  flex: 1;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.input-container input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Botões */
.btn-primary, .btn-secondary {
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: #DC143C;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #B91C3C;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #6B7280;
  color: white;
}

.btn-secondary:hover {
  background: #4B5563;
  transform: translateY(-2px);
}

/* Categorias Principais */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.category-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-card.selected {
  border-color: #FFD700;
  background: #FFFBEB;
}

.category-icon {
  font-size: 2.5rem;
  color: #DC143C;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.category-card p {
  color: #666;
  font-size: 0.9rem;
}

.category-check {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10B981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.category-card.selected .category-check {
  opacity: 1;
  transform: scale(1);
}

/* Subcategorias */
.subcategories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.subcategory-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.subcategory-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.subcategory-item.selected {
  border-color: #FFD700;
  background: #FFFBEB;
}

.subcategory-item h4 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
}

.subcategory-item p {
  color: #666;
  font-size: 0.8rem;
}

.subcategory-item .category-check {
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  font-size: 0.8rem;
}

/* Opções de Comunicação */
.communication-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.comm-option {
  background: white;
  padding: 25px;
  border-radius: 15px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.comm-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comm-option.selected {
  border-color: #FFD700;
  background: #FFFBEB;
}

.comm-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.comm-option[data-option="whatsapp"] .comm-icon {
  color: #25D366;
}

.comm-option[data-option="email"] .comm-icon {
  color: #3B82F6;
}

.comm-option[data-option="ambos"] .comm-icon {
  color: #8B5CF6;
}

.comm-option[data-option="nenhum"] .comm-icon {
  color: #6B7280;
}

.comm-option h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.comm-option p {
  color: #666;
  font-size: 0.9rem;
}

.comm-check {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10B981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.comm-option.selected .comm-check {
  opacity: 1;
  transform: scale(1);
}

/* Ações */
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.progress-indicator {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
}

/* Tela Final */
.final-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: #10B981;
  margin-bottom: 20px;
}

.final-content h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.final-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.summary-container {
  background: #F9FAFB;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: left;
}

.summary-container h3 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.interests-summary {
  margin-bottom: 20px;
}

.interest-tag {
  display: inline-block;
  background: #FFD700;
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 5px;
  border: 2px solid #333;
}

.communication-summary {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 10px;
  border-left: 4px solid #10B981;
}

.final-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.store-info {
  background: #F3F4F6;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #DC143C;
}

.store-info h4 {
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.store-info h4 i {
  color: #DC143C;
}

/* Footer */
.footer {
  background: rgba(255, 215, 0, 0.1);
  padding: 30px;
  text-align: center;
  margin-top: 40px;
}

.footer-logo {
  max-height: 60px;
  max-width: 250px;
  height: auto;
  width: auto;
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer p {
  color: #666;
  font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
  font-size: 3rem;
  color: #DC143C;
  margin-bottom: 20px;
}

.loading-spinner p {
  font-size: 1.2rem;
  color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .welcome-content, .conversation-content, .final-content {
    padding: 25px;
  }
  
  .welcome-content h1 {
    font-size: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .subcategories-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .communication-options {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .input-container {
    flex-direction: column;
  }
  
  .input-container input {
    width: 100%;
  }
  
  .final-actions {
    flex-direction: column;
    align-items: center;
  }
}

