/* ==================================== */
/* 1. Estilos Gerais e Variáveis        */
/* ==================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --blue: #0097b2;
  --black-dark: #1a1a1a;
  --white-pure: #ffffff;
  --text-primary: #f0f0f0;
  --text-secondary: #cccccc;
  --bg-form-dark: rgba(45, 45, 45, 0.8);
  --border-dark: #404040;
  --shadow-dark: rgba(0, 0, 0, 0.4);
  --degrade-BB: linear-gradient(90deg, #3d3b3a, #0097b2);
  --degrade-BlueDark: linear-gradient(135deg, #007c91, #005a6b);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--black-dark);
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--black-dark);
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
  background-color: var(--blue);
  border-radius: 10px;
  border: 3px solid var(--black-dark);
  transition: background-color 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background-image: var(--degrade-BlueDark);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: linear-gradient(
    135deg,
    #0097b2 0%,
    #007c91 25%,
    #3d3b3a 50%,
    #005a6b 75%,
    #0097b2 100%
  );
  background-size: 400% 400%;
  animation: gradientAnimation 25s ease infinite alternate;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bubbles li {
  position: absolute;
  display: block;
  list-style: none;
  background: rgba(0, 151, 178, 0.2);
  border-radius: 50%;
  animation: bubbleMove 25s linear infinite;
  bottom: -150px;
  filter: blur(3px);
  box-shadow: 0 0 10px rgba(0, 151, 178, 0.5);
  will-change: transform, opacity;
}

.bubbles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 25s;
}
.bubbles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
  background: rgba(61, 59, 58, 0.2);
  box-shadow: 0 0 10px rgba(61, 59, 58, 0.5);
}
.bubbles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
  animation-duration: 20s;
}
.bubbles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 22s;
  background: rgba(124, 145, 0, 0.2);
  box-shadow: 0 0 10px rgba(124, 145, 0, 0.5);
}
.bubbles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
  animation-duration: 10s;
}
.bubbles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  animation-duration: 18s;
}
.bubbles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
  animation-duration: 28s;
  background: rgba(61, 59, 58, 0.2);
  box-shadow: 0 0 10px rgba(61, 59, 58, 0.5);
}
.bubbles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}
.bubbles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
  background: rgba(124, 145, 0, 0.2);
  box-shadow: 0 0 10px rgba(124, 145, 0, 0.5);
}
.bubbles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes bubbleMove {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-50vh) scale(1.2) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-gradient {
  padding: 12px 28px;
  color: var(--white-pure);
  border: none;
  cursor: pointer;
  background-image: var(--degrade-BB);
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  display: inline-block;
  text-align: center;
  min-width: 140px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 151, 178, 0.4);
}

.btn-gradient:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(0, 151, 178, 0.2);
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-30deg);
  transition: all 0.6s ease;
}

.btn-gradient:hover::before {
  left: 100%;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.section-title span {
  display: block;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Animações de entrada */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==================================== */
/* 2. Estilos do Cabeçalho e Navegação  */
/* ==================================== */
.main-header {
  background: var(--bg-form-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 2px 10px var(--shadow-dark);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: 40px;
  margin-right: 10px;
  border-radius: 50%; /* ADICIONADO: Torna a imagem da logo redonda */
  object-fit: cover; /* Garante que a imagem cubra o círculo */
  border: 2px solid var(--blue); /* Opcional: Adiciona uma borda para um toque extra */
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.main-nav a:hover {
  color: var(--blue);
}

/* ==================================== */
/* 3. Estilos da Página Inicial         */
/* ==================================== */

.welcome-content {
  text-align: center;
  padding: 80px 0;
  animation: fadeIn 1s ease-out;
}

.welcome-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.welcome-content h1 span {
  background-image: var(--degrade-BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.form-flow-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.form-card {
  background-color: var(--bg-form-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  box-shadow: 0 5px 20px var(--shadow-dark);
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 0.6s ease-out forwards;
}

.form-card:nth-child(1) {
  animation-delay: 0.5s;
}
.form-card:nth-child(2) {
  animation-delay: 0.7s;
}
.form-card:nth-child(3) {
  animation-delay: 0.9s;
}
.form-card:nth-child(4) {
  animation-delay: 1.1s;
}
.form-card:nth-child(5) {
  animation-delay: 1.3s;
}
.form-card:nth-child(6) {
  animation-delay: 1.5s;
}

.form-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blue);
}

.form-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ==================================== */
/* 4. Estilos dos Formulários           */
/* ==================================== */
.form-section {
  padding: 60px 0;
}

.form-container {
  background-color: var(--bg-form-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(30px, 5vw, 40px);
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  box-shadow: 0 5px 20px var(--shadow-dark);
  max-width: 800px;
  margin: 0 auto;
}

.form-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.form-group span {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-form-dark);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.2);
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-group label {
  margin: 0 0 0 10px;
  font-weight: 400;
  cursor: pointer;
  color: var(--text-secondary);
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--blue);
}

/* ==================================== */
/* 5. Estilos de Responsividade         */
/* ==================================== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .main-nav {
    margin-top: 15px;
  }
  .main-nav ul {
    justify-content: center;
  }
  .main-nav li {
    margin: 0 10px;
  }
  .form-flow-container {
    flex-direction: column;
    align-items: center;
  }
  .form-card {
    max-width: 90%;
  }
}
