/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Botão Flutuante WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 40px;
  height: 40px;
  color: white;
}

/* Ícone Font Awesome no botão WhatsApp */
.whatsapp-button i {
  font-size: 40px;
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
  }

  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

/* Janela Flutuante */
.floating-window {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 380px;
  max-height: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Botão Fechar */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  color: red;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

/* Conteúdo da Janela */
.window-content {
  padding: 30px;
  max-height: 600px;
  overflow-y: auto;
}

/* Scrollbar customizada */
.window-content::-webkit-scrollbar {
  width: 6px;
}

.window-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.window-content::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.window-content::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

/* Slides */
.slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide h3 {
  color: #333;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
}

.slide p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Ícones Font Awesome nos labels */
.form-group label i {
  font-size: 16px;
  color: #667eea;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio Groups */
.radio-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 44px;
  /* Garante altura mínima para melhor usabilidade */
}

.radio-label:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-label input[type="radio"]:checked+span {
  color: #667eea;
  font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.radio-label span {
  color: #333;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Ícones nos radio buttons */
.radio-label span i {
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Error Messages */
.error-message {
  display: none;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 6px;
}

.error-message.show {
  display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #e74c3c;
}

/* Buttons */
.btn-next,
.btn-back,
.btn-submit {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Ícones nos botões */
.btn-next i,
.btn-back i,
.btn-submit i {
  font-size: 16px;
}

.btn-next,
.btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 100%;
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-back {
  background: #f0f0f0;
  color: #333;
}

.btn-back:hover {
  background: #e0e0e0;
}

.button-group {
  display: flex;
  gap: 10px;
}

.button-group .btn-next,
.button-group .btn-submit {
  flex: 1;
}

/* Progress Indicators */
.progress-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #667eea;
  width: 24px;
  border-radius: 4px;
}

/* Responsividade */
@media (max-width: 600px) {
  .floating-window {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 100px;
  }

  .window-content {
    padding: 25px 20px;
  }

  .slide h3 {
    font-size: 20px;
  }

  .whatsapp-button {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 35px;
    height: 35px;
  }
}

/* Animação de entrada mais suave */
@media (prefers-reduced-motion: reduce) {

  .floating-window,
  .slide,
  * {
    animation: none !important;
    transition: none !important;
  }
}