/* BOTÃO FLUTUANTE */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  line-height: 58px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
  transform: scale(0.98);
}

/* MODAL BASE */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* CHAT BOX - GLASSMORPHISM */
.chat-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* CABEÇALHO */
.chat-header {
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.chat-header img {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  filter: brightness(0) invert(1);
}

.chat-info strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.chat-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.chat-header .close {
  position: absolute;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
  line-height: 1;
}

.chat-header .close:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* CORPO DO CHAT */
.chat-body {
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.bot-msg {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px 12px 12px 0;
  margin-bottom: 20px;
  font-size: 14px;
  width: fit-content;
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  color: #333;
}

/* CAMPOS */
.user-input {
  margin-bottom: 16px;
  text-align: left;
}

.user-input label {
  display: block;
  font-size: 13px;
  color: #075e54;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-input input,
.user-input select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(37, 211, 102, 0.3);
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #333;
}

.user-input input::placeholder,
.user-input select::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.user-input input:focus,
.user-input select:focus {
  outline: none;
  border-color: #25d366;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.user-input select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325d366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 35px;
}

/* LGPD - CHECK POLÍTICA */
.lgpd-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.lgpd-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  margin-top: 2px;
  accent-color: #25d366;
  cursor: pointer;
  border-radius: 4px;
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  box-shadow: none;
}

.lgpd-label {
  font-size: 12px !important;
  color: #555 !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.lgpd-link {
  color: #25d366;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.lgpd-link:hover {
  opacity: 0.75;
}

.erro-lgpd {
  display: none;
  font-size: 12px;
  color: #e53935;
  margin-bottom: 12px;
  margin-top: 2px;
  padding-left: 2px;
}

/* BOTÃO ENVIAR */
.send-btn {
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
  border: none;
  padding: 12px 0;
  border-radius: 10px;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.send-btn:active {
  transform: translateY(0);
}

input.input-whatsapp {
    background-color: #FFF !important;
}

/* ANIMAÇÕES */
@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* RESPONSIVO */
@media (max-width: 480px) {
  .chat-box {
    max-width: 95%;
    border-radius: 16px;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .chat-header img {
    width: 36px;
    height: 36px;
  }

  .chat-info strong { font-size: 15px; }
  .chat-info span   { font-size: 11px; }
}