/* WhatsApp Comments Section Styles */
.whatsapp-comments-section {
  /* Fundo suave da seção de comentários via WhatsApp */
  background: linear-gradient(135deg, #f8fbff 0%, #eef7f1 50%, #f5f0ff 100%);
  padding: 80px 0;
  /* ENCAIXE ENTRE SECOES: remove as faixas brancas acima e abaixo. */
  margin: 0;
}

.whatsapp-comments-section .comments-eyebrow {
  /* Selo visual acima do título da seção */
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto 14px auto;
  padding: 8px 16px;
  color: #128C7E;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.whatsapp-comments-section .section-title{
  /* Título com destaque em duas cores */
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px auto;
  text-align: left;
  font-size: 2.7rem;
  color: #153552;
  font-weight: 800;
  line-height: 1.15;
}

.whatsapp-comments-section .section-title span {
  color: #153552;
}

.whatsapp-comments-section .section-title strong {
  color: transparent;
  background: linear-gradient(135deg, #25D366, #128C7E);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
}

.whatsapp-comments-section .section-title::before {
  content: "";
  display: block;
  width: 140px;
  height: 5px;
  margin: 0 0 16px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #25D366, #128C7E, #8B5CF6);
}

.whatsapp-comments-section .section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 50px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.comments-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Form Styles */
.comment-form {
  /* Card esquerdo do formulário de comentário */
  background: linear-gradient(145deg, #ffffff 0%, #fbfffd 58%, #f1fff7 100%);
  padding: 34px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(37, 211, 102, 0.16);
  position: relative;
  overflow: hidden;
}

.comment-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #25D366, #128C7E, #8B5CF6);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  /* Nomes dos campos do formulário com ícones */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #153552;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.form-group label i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.18);
}

.form-group label span {
  line-height: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #d8e4df;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.90);
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 500;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #25D366;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  width: max-content;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.18);
  border-radius: 999px;
}

.rating-stars input[type="radio"] {
  display: none;
}

.rating-stars .star {
  font-size: 2.1rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
}

.rating-stars .star:hover,
.rating-stars input:checked ~ .star,
.rating-stars .star:hover ~ .star {
  color: #ffc107;
  transform: scale(1.1);
}

/* WhatsApp Send Button */
.whatsapp-send-btn {
  width: 100%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  padding: 16px 25px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.24);
}

.whatsapp-send-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(18, 140, 126, 0.32);
}

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

.whatsapp-send-btn i {
  font-size: 1.3rem;
}

/* Info Cards */
.comments-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  /* Cards informativos do lado direito */
  background: linear-gradient(145deg, #ffffff 0%, #fbfffd 100%);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.14);
  border-left: 6px solid #25D366;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.08);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 211, 102, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.info-card i {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 12px 22px rgba(37, 211, 102, 0.22);
}

.info-card h3 {
  font-size: 1.4rem;
  color: #153552;
  margin-bottom: 10px;
  font-weight: 800;
}

.info-card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 1.08rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .comments-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .whatsapp-comments-section .section-title {
    font-size: 2rem;
  }
  
  .whatsapp-comments-section .section-subtitle {
    font-size: 1rem;
  }
  
  .comment-form {
    padding: 20px;
  }
  
  .info-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .whatsapp-comments-section {
    padding: 60px 0;
  }
  
  .whatsapp-comments-section .section-title {
    font-size: 1.8rem;
  }
  
  .rating-stars .star {
    font-size: 1.5rem;
  }
  
  .whatsapp-send-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* Dark Mode Support */
body.dark .whatsapp-comments-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark .whatsapp-comments-section .section-title {
  color: #ecf0f1;
}

body.dark .whatsapp-comments-section .section-subtitle {
  color: #bdc3c7;
}

body.dark .comment-form,
body.dark .info-card {
  background: #34495e;
  border-color: #4a5f7a;
}

body.dark .form-group label {
  color: #ecf0f1;
}

body.dark .form-group input,
body.dark .form-group textarea {
  background: #2c3e50;
  border-color: #4a5f7a;
  color: #ecf0f1;
}

body.dark .form-group input:focus,
body.dark .form-group textarea:focus {
  border-color: #25D366;
}

body.dark .info-card h3 {
  color: #ecf0f1;
}

body.dark .info-card p {
  color: #bdc3c7;
}

/* Animacao independente do formulario e dos cards de comentarios. */
.whatsapp-comments-section.comments-reveal-ready .comments-eyebrow,
.whatsapp-comments-section.comments-reveal-ready .section-title,
.whatsapp-comments-section.comments-reveal-ready .section-subtitle,
.whatsapp-comments-section.comments-reveal-ready .comment-form,
.whatsapp-comments-section.comments-reveal-ready .info-card {
  opacity: 0;
  will-change: translate, rotate, scale, opacity;
}

.whatsapp-comments-section.comments-reveal-ready .comments-eyebrow,
.whatsapp-comments-section.comments-reveal-ready .section-title,
.whatsapp-comments-section.comments-reveal-ready .section-subtitle {
  translate: 0 -3rem;
}

/* O formulario sobe enquanto os cards chegam pela direita. */
.whatsapp-comments-section.comments-reveal-ready .comment-form {
  translate: 0 6rem;
  scale: 0.95;
}

.whatsapp-comments-section.comments-reveal-ready .info-card {
  translate: 7rem 0;
  rotate: 2deg;
}

.whatsapp-comments-section.comments-reveal-ready.comments-reveal-visible .comments-eyebrow,
.whatsapp-comments-section.comments-reveal-ready.comments-reveal-visible .section-title,
.whatsapp-comments-section.comments-reveal-ready.comments-reveal-visible .section-subtitle,
.whatsapp-comments-section.comments-reveal-ready.comments-reveal-visible .comment-form,
.whatsapp-comments-section.comments-reveal-ready.comments-reveal-visible .info-card {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  scale: 1;
  transition:
    translate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    rotate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    scale 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.whatsapp-comments-section.comments-reveal-visible .comments-eyebrow { transition-delay: 0.02s; }
.whatsapp-comments-section.comments-reveal-visible .section-title { transition-delay: 0.08s; }
.whatsapp-comments-section.comments-reveal-visible .section-subtitle { transition-delay: 0.14s; }
.whatsapp-comments-section.comments-reveal-visible .comment-form { transition-delay: 0.20s; }
.whatsapp-comments-section.comments-reveal-visible .info-card:nth-child(1) { transition-delay: 0.30s; }
.whatsapp-comments-section.comments-reveal-visible .info-card:nth-child(2) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-comments-section.comments-reveal-ready .comments-eyebrow,
  .whatsapp-comments-section.comments-reveal-ready .section-title,
  .whatsapp-comments-section.comments-reveal-ready .section-subtitle,
  .whatsapp-comments-section.comments-reveal-ready .comment-form,
  .whatsapp-comments-section.comments-reveal-ready .info-card {
    opacity: 1;
    translate: none;
    rotate: none;
    scale: none;
    transition: none;
  }
}
