/* Formulários Elegantes - Melhorias Visuais para Páginas de Limpeza */

.form-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0066CC 0%, #0080FF 50%, #00BFFF 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #76B947, #4a9d23, #76B947);
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.form-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  color: #fff;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.5); }
  to { text-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.8); }
}

.form-section form {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0D2C54 0%, #1a4a8a 50%, #2c5aa0 100%);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  border: 2px solid rgba(13, 44, 84, 0.3);
  animation: formPulse 3s ease-in-out infinite;
}

@keyframes formPulse {
  0%, 100% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 20px rgba(13, 44, 84, 0.4); }
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  animation: labelPulse 2s ease-in-out infinite alternate;
}

@keyframes labelPulse {
  from { color: #fff; }
  to { color: rgba(255, 255, 255, 0.8); }
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  background: white;
  color: #333;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.form-section input::before,
.form-section textarea::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
  transition: left 0.5s;
}

.form-section input:hover::before,
.form-section textarea:hover::before {
  left: 100%;
}

.form-section input::placeholder,
.form-section textarea::placeholder {
  color: #6c757d;
  font-weight: 400;
}

.form-section input:focus,
.form-section textarea:focus {
  outline: none;
  border-color: #0066CC;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2), 0 0 20px rgba(0, 102, 204, 0.3);
  transform: translateY(-2px);
  animation: inputGlow 0.5s ease-out;
}

@keyframes inputGlow {
  0% { box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2); }
  50% { box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2), 0 0 30px rgba(0, 102, 204, 0.5); }
  100% { box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2), 0 0 20px rgba(0, 102, 204, 0.3); }
}

.form-section input.error,
.form-section textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.form-section .btn {
  background: linear-gradient(135deg, #76B947 0%, #4a9d23 100%);
  color: white;
  border: 2px solid #76B947;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(118, 185, 71, 0.4);
  width: 100%;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(118, 185, 71, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(118, 185, 71, 0.4), 0 0 20px rgba(118, 185, 71, 0.6); }
}

.form-section .btn:hover {
  background: linear-gradient(135deg, #4a9d23 0%, #76B947 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(118, 185, 71, 0.6), 0 0 30px rgba(118, 185, 71, 0.8);
  border-color: #4a9d23;
  animation: none;
}

.form-section .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.form-section .btn:hover::before {
  left: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
  .form-section {
    padding: 60px 15px;
  }
  
  .form-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .form-section form {
    padding: 30px 20px;
    border-radius: 15px;
  }
  
  .form-section input,
  .form-section textarea {
    padding: 15px 18px;
    font-size: 16px;
  }
  
  .form-section .btn {
    padding: 15px 30px;
    font-size: 16px;
  }
}
