/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #04c3b4;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9999;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* --- Modal WhatsApp --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;  
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-overlay.active {
  display: flex;
}

#whatsappModal .modal-box {
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) inset;
  width: 50%;
  max-width: 520px;
  animation: slideUp 0.3s ease;
  overflow-y: auto;     /* agora o scroll é dentro do modal */
  max-height: 100vh;     /* impede o modal de passar da tela */
  background-color: #CDE4E3;
  position: relative;
}

#whatsappModal button{
  width: auto;
  padding: 7px;
}

#whatsappModal button:hover{
  background-color: #b9b9b9;
  border-radius:4px;
}

#whatsappModal .modal-header {
    background: linear-gradient(90deg, #054944, #015d55);
    color: #fff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#whatsappModal .modal-header h3 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
    color: #fff;
    font-family: "Red Hat Display", Sans-serif;
}

#whatsappModal .modal-header .status {
    font-size: 1.3rem;
    opacity: 0.9;
    top: -5px;
    position:relative
}

/* Botão fechar */
#whatsappModal .close-btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-top: -4px;
}

/* Mensagem */
#whatsappModal .modal-message {
    background: #f5f7fa;
    padding: 18px;
    border-radius: 10px;
    margin: 18px;
    font-size: 1rem;
    line-height: 1.5;
    color: #4a4a4a;
    border-left: 4px solid #054944;
}

#whatsappModal .modal-message strong {
    color: #333;
}

#whatsappModal .modal-box .form-card{
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 20px;
}

#whatsappModal .modal-header h1 {
  font-size: 1.9rem;
  margin-bottom: 15px;
}

#whatsappModal .modal-subtitle {
  margin: 10px 20px 0;
  font-weight: 600;
  color: #333;
}

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

#whatsappModal .is-invalid {
    border: 1px solid #ff4d4f !important;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#whatsappModal .error-message {
    color: #ff4d4f;
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
    text-align: left;
    margin-left: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Modal WhatsApp --- */

/* --- Experimente-Gratis --- */
/* ===== SECTION PRINCIPAL ===== */
#whatsappModal {
  font-family: "Red Hat Display", Sans-serif;
}

/* ===== CAMPOS ===== */
#whatsappModal .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

#whatsappModal .modal-box .form-group {
  margin-bottom: 15px;
}

#whatsappModal label {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

#whatsappModal .modal-box .form-group label {
  text-align: left;
  margin-left: 5px;
  color:#021321;
  font-family: "Red Hat Display", Sans-serif;
}

#whatsappModal .form-card input[type="text"],
#whatsappModal .form-card input[type="email"],
#whatsappModal .form-card input[type="tel"],
#whatsappModal .form-card input[type="number"],
#whatsappModal .form-card select,
#whatsappModal .form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b8bebd;
  border-radius: 8px;
  background: #F1F7F6;
  font-size: 16px;
  margin-bottom: 5px;
  outline: none;
  color: #021321;
  font-family: "Red Hat Display", Sans-serif;
}

#whatsappModal .form-card :focus{
  border: 1px solid #015d55 !important;
}

#whatsappModal .iti--separate-dial-code .iti__selected-flag{
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

#whatsappModal .iti__country .iti__highlight{
  color: #015d55;
}
#whatsappModal .iti__country{
  color:#000;
}

/* ===== ERROS ===== */
#whatsappModal .error-text {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 4px;
  min-height: 14px;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#whatsappModal .error-text.active {
  opacity: 1;
}

#whatsappModal input.error {
  border-color: var(--error) !important;
}

/* ===== DUAS COLUNAS ===== */
#whatsappModal .form-row {
  display: flex;
  gap: 10px;
}

/* ===== CHECKBOX ===== */
#whatsappModal .checkbox-container {
  align-items: flex-start;
  margin-top: 10px;
  text-align: left;
}

#whatsappModal .checkbox-container input{
  width: auto;
}

#whatsappModal .checkbox-container label {
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color:#000;
  display:inline;
}

#whatsappModal .checkbox-container a {
  color: #006A5B;
  text-decoration: none;
}

#whatsappModal .checkbox-container a:hover {
  text-decoration: underline;
}

#whatsappModal .checkbox-container .error-message {
  color: #ff4d4f;
  font-size: 0.9rem;
  margin-top: -19px;
  text-align: left;
  left: 16px;
  position: relative;
}

#whatsappModal input[type="checkbox"].is-invalid {
  outline: 2px solid #ff4d4f;
  outline-offset: 2px;
}

#whatsappModal .form-group{
  text-align: left;
  width: 100%;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 800px) {
  #whatsappModal .form-card {
    padding: 10px;
  }

  #whatsappModal .form-row {
    flex-direction: column;
    gap: 0;
  }
  #whatsappModal label{
    margin-left: 10px;
  }

  #whatsappModal .modal-box {
    width: 90%;
  }
}

/* Bloqueia o scroll quando o modal estiver ativo */
body:has(.modal-overlay.active) {
  overflow: hidden;
}

/* Responsivo */
@media (max-width: 480px) {
  #whatsappModal .modal-box {
    width: 90%;
  }

  #whatsappModal .modal-header h1 {
    font-size: 1.5rem;
  }
}

#whatsappModal .btn-container{
    width: 80%;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 20px;
  }

#whatsappModal #btn-enviar{
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #05f2db 0%, #04c3b4 100%);
  border-radius: 5px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #021321;
  text-decoration: none;
  transition: transform 0.4s ease;
  cursor: pointer;
}

  #whatsappModal #btn-enviar:hover{
    transform: scale(1.05);
  }