/* Estilos Modernizados - NutriVida */

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  /* Paleta de cores mais sofisticada */
  --primary-color: #4CAF50;
  --primary-light: #7BC67E;
  --primary-dark: #3B8C3E;
  --secondary-color: #388E3C;
  --accent-color: #8BC34A;
  --accent-light: #A4D56A;
  --text-color: #2C3E50;
  --text-light: #546E7A;
  --bg-color: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #ECEFF1;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container responsivo com padding variável */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  overflow-x: hidden;
}

/* Botões modernizados */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(-1px);
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: all 0.4s ease;
}

.btn:hover::after {
  transform: scale(1);
  opacity: 1;
}

/* Espaçamento consistente para seções */
section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Títulos de seção mais elegantes */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.section-title p {
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Cabeçalho com efeito de glassmorphism */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.logo span {
  color: var(--secondary-color);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links li a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Menu mobile refinado */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 28px;
  height: 3px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: all 0.4s ease;
  border-radius: var(--radius-full);
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* Hero Section com animação sutil */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imagens/banner-principal.jpg') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(139, 195, 74, 0.3));
  z-index: 1;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Sobre mim com efeito de profundidade */
.about-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.about-img {
  flex: 1;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.5;
  transition: all var(--transition-normal);
}

.about-img:hover::before {
  transform: translate(10px, -10px);
}

.about-img img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  left: 0;
  bottom: -8px;
  border-radius: var(--radius-full);
}

.about-text p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  font-size: 1.05rem;
}

.about-text .btn {
  margin-top: var(--spacing-md);
}

/* Serviços com cards elevados */
.services {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(76, 175, 80, 0.05);
  border-radius: 50%;
  top: -150px;
  right: -150px;
}

.services::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: rgba(139, 195, 74, 0.05);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.service-box {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-box::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-box:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  font-size: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: all var(--transition-normal);
}

.service-box:hover .service-icon {
  transform: rotateY(360deg);
}

.service-box h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-normal);
}

.service-box:hover h3 {
  color: var(--primary-color);
}

.service-box p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Depoimentos com design mais moderno */
.testimonials {
  background-color: var(--bg-light);
  position: relative;
}

.testimonials::before,
.testimonials::after {
  content: '';
  position: absolute;
  background-color: rgba(76, 175, 80, 0.05);
  border-radius: 50%;
}

.testimonials::before {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -200px;
}

.testimonials::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -150px;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.testimonial-box {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-box::before {
  content: '\201C';
  font-size: 80px;
  color: var(--primary-color);
  opacity: 0.1;
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Georgia', serif;
  line-height: 1;
}

.testimonial-content {
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
  font-style: italic;
  color: var(--text-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: var(--spacing-md);
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: var(--spacing-md);
  border: 3px solid rgba(76, 175, 80, 0.2);
  padding: 3px;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contato refinado */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  transition: all var(--transition-normal);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
}

.contact-item:hover {
  background-color: rgba(76, 175, 80, 0.05);
  transform: translateX(5px);
}

.contact-icon {
  min-width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
}

.contact-details p,
.contact-details a {
  color: var(--text-light);
  transition: color var(--transition-normal);
}

.contact-details a:hover {
  color: var(--primary-color);
}

.contact-form {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: box-shadow var(--transition-normal);
}

.contact-form:hover {
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px var(--spacing-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all var(--transition-normal);
  background-color: #FAFAFA;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  background-color: white;
}

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

.contact-form .btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* Footer moderno */
footer {
  background-color: #2C3E50;
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-full);
}

.footer-col ul li {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
}

.footer-col ul li i {
  margin-right: var(--spacing-sm);
  color: var(--primary-light);
}

.footer-col ul li a {
  transition: all var(--transition-normal);
  color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-normal);
  color: white;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.copyright a {
  color: var(--primary-light);
  font-weight: 500;
  transition: color var(--transition-normal);
}

.copyright a:hover {
  color: white;
}

/* Botão de WhatsApp mais atraente */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.5);
}

/* Animações de entrada para elementos */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animações ativadas por scroll com JavaScript */
.about-img,
.about-text,
.service-box,
.testimonial-box {
  opacity: 0;
  transition: all 0.8s ease-in-out;
}

.about-img.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.service-box.visible,
.testimonial-box.visible {
  opacity: 1;
}

/* Estado inicial antes da animação */
.about-img {
  transform: translateX(-50px);
}

.about-text {
  transform: translateX(50px);
}

/* Animação sequencial para os serviços */
.service-box:nth-child(1) {
  animation-delay: 0.1s;
}

.service-box:nth-child(2) {
  animation-delay: 0.2s;
}

.service-box:nth-child(3) {
  animation-delay: 0.3s;
}

.service-box:nth-child(4) {
  animation-delay: 0.4s;
}

.service-box:nth-child(5) {
  animation-delay: 0.5s;
}

.service-box:nth-child(6) {
  animation-delay: 0.6s;
}

/* Correção para evitar scroll horizontal */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Estilos responsivos melhorados */
@media screen and (max-width: 991px) {
  :root {
    --spacing-xl: 60px;
  }

  .about-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .about-img {
    max-width: 500px;
    margin: 0 auto;
  }

  .navbar {
    padding: 15px 0;
    position: relative;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1002;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    gap: var(--spacing-md);
    z-index: 1001;
    padding-top: 80px;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: var(--spacing-sm) 0;
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    font-size: 1.2rem;
    display: block;
    padding: 12px;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-xl: 50px;
    --spacing-lg: 30px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }

  .services-container,
  .testimonials-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media screen and (max-width: 576px) {
  :root {
    --spacing-xl: 40px;
    --spacing-lg: 25px;
    --spacing-md: 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .about-text h3 {
    font-size: 1.6rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: var(--spacing-md);
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px;
    font-size: 0.95rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Correção para containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  overflow-x: clip;
}

/* Correção para serviços na versão mobile */
@media screen and (max-width: 576px) {
  .services-container {
    grid-template-columns: 1fr;
    padding: 0 5px;
  }

  .service-box {
    padding: var(--spacing-md);
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    padding: 0 5px;
  }

  /* Ajustes adicionais mobile */
  section {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}

/* Correção específica para o problema do hero-section no mobile */
.hero,
.hero-content {
  max-width: 100vw;
}

/* Ajuste para formulário responsivo */
@media screen and (max-width: 576px) {
  .contact-container {
    padding: 0 5px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Estilo para campos com erro de validação */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #ff3860 !important;
  box-shadow: 0 0 0 3px rgba(255, 56, 96, 0.1);
}

.error-message {
  color: #ff3860;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Estilo para campo com sucesso na validação */
.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
  border-color: #23d160 !important;
  box-shadow: 0 0 0 3px rgba(35, 209, 96, 0.1);
}

/* Feedback visual */
.form-group.focused label {
  color: var(--primary-color);
}

.form-button-wrapper {
  position: relative;
}

.form-button-wrapper .btn {
  position: relative;
  z-index: 1;
}

.loading-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  z-index: 2;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.form-button-wrapper.loading .loading-spinner {
  display: block;
}

.form-button-wrapper.loading .btn {
  color: transparent;
}