/* ========================
   1. CONTAINER PRINCIPAL
   ======================== */
   body {
    line-height: 1.3;
    font-weight: 400;
   }
   p {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
   }
.form-depoimento {
  max-width: 720px;
  margin: 55px auto 80px; /* espaçamento: top 60px, bottom 80px */
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 34%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #333;
  position: relative;
  z-index: 2;
}


/* ========================
   2. TÍTULOS E SUBTÍTULOS
   ======================== */
.form-depoimento h2 {
  text-align:center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  
}

.form-depoimento p.subtitulo {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
  text-align:center;
}

/* ========================
   3. GRUPOS DE CAMPOS
   ======================== */
.form-grupo {
  margin-bottom: 20px;
}

.form-grupo label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  font-size: 15px;
}

/* ========================
   4. INPUTS, SELECTS E TEXTAREAS
   ======================== */
.form-grupo input,
.form-grupo select,
.form-grupo textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: border 0.3s, background-color 0.3s;
}

.form-grupo input:focus,
.form-grupo textarea:focus,
.form-grupo select:focus {
  outline: none;
  border-color: #00ccff;
  background-color: #fff;
}

/* ========================
   5. UPLOADS DE IMAGEM (LOGO / FOTO)
   ======================== */
   .grupo-upload-duplo {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.grupo-upload-duplo .form-upload {
  flex: 1 1 300px; /* permite que quebrem no mobile */
}

.form-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Oculta o input nativo */
.form-upload input[type="file"] {
  display: none;
}

/* Botão customizado */
.custom-file-label {
  display: inline-block;
  background-color: #00ccff;
  color: #fff;
  padding: 7px 7px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.custom-file-label:hover {
  background-color: #00bbec;
  color: black !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.preview-logo {
  max-width: 180px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  display: block;
}

.hidden {
  display: none;
}


/* Nome do arquivo */
.nome-arquivo {
  font-size: 13px;
  color: #555;
  font-style: italic;
  transition: opacity 0.2s ease;
}

.nome-arquivo.hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.preview-logo {
  max-width: 180px;
  max-height: 120px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  background-color: #f9f9f9;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.preview-logo.hidden {
  display: none;
}

/* ========================
   6. AVALIAÇÃO COM ESTRELAS
   ======================== */
.avaliacao-nota {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start; /* <-- garante alinhamento à esquerda */
  gap: 5px;
  margin-top: 10px;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Garante que tudo fique alinhado à esquerda */
}


.avaliacao-nota input[type="radio"] {
  display: none;
}

.avaliacao-nota label {
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s;
}

/* Pinta estrelas à esquerda da clicada */
.avaliacao-nota input[type="radio"]:checked ~ label {
  color: #ccc; /* todas depois da clicada continuam cinzas */
}

.avaliacao-nota label:hover,
.avaliacao-nota label:hover ~ label,
.avaliacao-nota input[type="radio"]:checked ~ label,
.avaliacao-nota input[type="radio"]:checked + label,
.avaliacao-nota input[type="radio"]:checked + label ~ label {
  color: #ffce00;
}


/* ========================
   7. CAIXA DE ACEITE LGPD
   ======================== */
.form-aceite {
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.5;
}

.form-aceite input[type="checkbox"] {
  margin-right: 8px;
}

/* ========================
   8. BOTÃO DE ENVIO
   ======================== */
.btn-enviar {
  display: inline-block;
  margin-top: 20px;
  background: #00ccff;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-enviar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-enviar:hover:not(:disabled) {
  background: #009ed8;
}

/* ========================
   9. BARRA DE PROGRESSO
   ======================== */
.barra-progresso {
  margin: 30px 0;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.barra-progresso .progresso {
  width: 66.6%; /* pode ser ajustado dinamicamente via JS */
  height: 100%;
  background: #00cc99;
  transition: width 0.3s ease;
}

/* ========================
   10. MENSAGEM DE SUCESSO
   ======================== */
/* Overlay básico */
.mensagem-sucesso {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); z-index: 10000;
}

/* abrir via JS */
.mensagem-sucesso.mostrar { display: flex; }

.sucesso-wrap {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
  padding: 28px 26px 24px;
  text-align: center;
  border: 1px solid #e9eef5;
}

.sucesso-icone { margin-bottom: 12px; }
.check-svg { width: 80px; height: 80px; }
.check-circle {
  stroke: #00ccff; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: drawCircle .6s ease-out forwards;
}
.check-mark {
  stroke: #0066ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawCheck .4s .45s ease-out forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0 } }
@keyframes drawCheck  { to { stroke-dashoffset: 0 } }

.sucesso-titulo { margin: 8px 0 4px; font-size: 22px; color: #0f172a; font-weight: 800; }
.sucesso-texto  { margin: 0 0 14px; color: #475569; }

.sucesso-progress {
  height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin: 8px 0 16px;
}
.sucesso-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(-30deg, #00ffe1, #0051ff);
  transition: width .2s linear;
}

.sucesso-botoes { display: flex; justify-content: center; }
.btn-primario {
  background: linear-gradient(-30deg, #00ffe1, #0051ff);
  color: #fff; border: 0; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-primario:hover { filter: brightness(.98); }

/* acessibilidade: reduz animações */
@media (prefers-reduced-motion: reduce) {
  .check-circle, .check-mark { animation: none; stroke-dashoffset: 0; }
}

/* ========================
   11. PREVIEW DO DEPOIMENTO
   ======================== */
.preview-depoimento {
  margin-top: 10px;
  padding: 20px;
  background: linear-gradient(135deg, #0066ff, #00ccff);
  border: 1px dashed #c8d6e5;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  word-wrap: break-word; /* quebra palavras longas */
  overflow-wrap: break-word; /* reforça a quebra em navegadores modernos */
  white-space: normal; /* garante que o texto não mantenha quebras de linha forçadas */
  max-width: 100%; /* garante que não ultrapasse o container */
  box-sizing: border-box; /* padding incluso na largura */
}




/* ========================
   12. ERROS DE VALIDAÇÃO
   ======================== */

input.erro, textarea.erro, select.erro {
  border: 1px solid #dc3545;
  background-color: #ffe5e5;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 4px;
  display: block;
}


/* ========================
   13. BOTOES DE NAVEGAÇÃO
   ======================== */

.botoes-etapa {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
}

.etapa-status {
  text-align: center;
  font-weight: 500;
  margin-top: -30px;
  color: #333;
  font-size: 16px;
}


.botao-voltar {
  background: #f2f2f2;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.botao-proxima {
  background: #00ccff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.botao-proxima:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.botao-proxima:hover {
  background: #00bbec;
}


.botao-proxima:hover {
    background: #00aae7;
    color: rgb(0, 0, 0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.596);
}
.botao-voltar {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 7px 17px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.botao-voltar:hover {
    background: #e0e0e0;
    color: #000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.596);
}
/* Header limpo e centralizado */
.header-simplificada {
  background-color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.container-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo */
.logo-depoimentos-nav img {
  height: 50px;
  max-width: 220px;
  object-fit: contain;
}

/* ========================
   14. TOOLTIP DE INFORMAÇÃO
   ======================== */

/* Container do tooltip */
.tooltip-info {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 6px;
}

/* Bolinha de info */
.tooltip-info .info-icon {
      display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #bbbbbb;
    color: #000;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    opacity: 0.5;
}

/* Texto do tooltip */
.tooltip-info .tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* sobe o tooltip acima do ícone */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

/* Setinha do tooltip */
.tooltip-info .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Mostrar tooltip no hover */
.tooltip-info:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ========================
   15. RESPONSIVIDADE GERAL
   ======================== */

@media (max-width: 1024px) {
  .form-depoimento {
    padding: 30px 25px;
    margin: 40px auto 60px;
  }
}

@media (max-width: 768px) {
  .form-depoimento {
    padding: 25px 20px;
    margin: 30px 16px;
  }

  .form-depoimento h2 {
    font-size: 22px;
  }

  .form-depoimento p.subtitulo {
    font-size: 15px;
  }

  .grupo-upload-duplo {
    flex-direction: column;
    gap: 16px;
  }

  .custom-file-label {
    width: 100%;
    text-align: center;
  }

  .btn-enviar,
  .botao-voltar,
  .botao-proxima {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .botoes-etapa {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .avaliacao-nota {
    justify-content: center;
  }

  .form-aceite {
    font-size: 13px;
  }

  .etapa-status {
    display: none;
  }
}

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

  .form-depoimento h2 {
    font-size: 20px;
  }

  .form-grupo label {
    font-size: 14px;
  }

  .form-grupo input,
  .form-grupo textarea,
  .form-grupo select {
    font-size: 14px;
    padding: 10px 12px;
  }

  .custom-file-label {
    font-size: 13px;
    padding: 10px;
  }

  .preview-logo {
    max-width: 100%;
    height: auto;
  }

  .msg-sucesso,
  .preview-depoimento {
    font-size: 14px;
  }

  .logo-depoimentos-nav img {
    max-width: 180px;
    height: auto;
  }
}
