/* Fonte base */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #0f172a;
  color: #fff;
}

/* Navegação */
.sticky-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1e293b, #334155);
  padding: 3px 8px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid #004aad;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 74, 173, 0.5);
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1);
}

.logo-container span {
  font: 700 22px/1 'Roboto', sans-serif;
  color: #ff4d4d;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.menu-toggle:hover {
  transform: rotate(90deg);
  color: #007bff;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: #007bff;
  background: rgba(0, 74, 173, 0.2);
  transform: scale(1.05);
  text-decoration: none;
}

.nav-link i {
  transition: 0.3s ease;
}

.nav-link:hover i, .nav-link:focus i, .nav-link.active i {
  transform: rotate(10deg);
  color: #ff4d4d;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 18px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #ff4d4d);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link:focus::after, .nav-link.active::after {
  width: calc(100% - 36px);
  animation: underline 0.3s ease;
}

@keyframes underline {
  from { width: 0; }
  to { width: calc(100% - 36px); }
}

/* Formulário */
.intake-main {
  padding: 80px 1rem 2rem 1rem;
}

.intake-container {
  max-width: 700px;
  margin: 0 auto;
  background: #1e293b;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.intake-container h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
}

.intake-form {
  animation: fadeIn 0.5s ease;
}

.intake-form label {
  display: block;
  margin-top: 1.2rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 0.4rem;
  border: 2px solid #334155;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background-color: rgba(30, 41, 59, 0.8);
  color: #fff;
}

.intake-form input:hover,
.intake-form select:hover,
.intake-form textarea:hover {
  border-color: #007bff;
  background-color: rgba(30, 41, 59, 0.9);
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  background-color: rgba(30, 41, 59, 1);
}

.intake-form button {
  background: linear-gradient(45deg, #004aad, #007bff);
  border: none;
  padding: 15px;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}

.intake-form button:hover, 
.intake-form button:focus {
  background: linear-gradient(45deg, #003087, #005bb5);
  transform: scale(1.02);
}

.intake-form button:disabled {
  background: #334155;
  cursor: not-allowed;
  transform: none;
}

.intake-form button i {
  transition: transform 0.3s ease;
}

.intake-form button:hover i {
  transform: translateX(5px);
}

/* Grupos de formulário */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #334155;
  border-radius: 5px;
  background: rgba(30, 41, 59, 0.8);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  color: #fff;
  background-color: #1e293b;
}

/* Estilo base para todos os selects */
.intake-form select,
.form-group select {
    background-color: #1e293b !important;
    color: #fff;
}

/* Estilo para as opções dos selects */
.intake-form select option,
.form-group select option {
    background-color: #1e293b !important;
    color: #fff !important;
    padding: 8px !important;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay p {
  margin-top: 1rem;
  color: #fff;
  font-weight: 500;
}

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

/* Footer */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background: #007bff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a:hover {
  color: #007bff;
  transform: translateX(5px);
}

.footer-section ul li a i {
  font-size: 0.9rem;
}

.footer-section .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-section .social-links a {
  color: #cbd5e1;
  font-size: 1.5rem;
  transition: 0.3s ease;
}

.footer-section .social-links a:hover {
  color: #007bff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background: #151e2b;
  color: #cbd5e1;
}

/* Responsivo */
@media (max-width: 768px) {
  .sticky-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(90deg, #1e293b, #334155);
    position: static;
    padding: 0;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    text-align: right;
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section .social-links {
    justify-content: center;
  }
}
