#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px 5% 60px;
  box-sizing: border-box;
  background: white;
  text-align: center;
  overflow: hidden;
  font-family: "Outfit", sans-serif;
  margin-bottom: 0 !important;
}

#contact .contact-title h3 {
  font-size: 52px;
  font-weight: 900;
  color: #029CFF;
  margin-bottom: 30px;
  text-transform: uppercase;
  text-align: center;
}

#contact .contact-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1400px;
  width: 100%;
  gap: 60px;
  background: white;
}

#contact .contact-form,
#contact .contact-text {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

#contact .contact-form {
  transform: translateX(-80px);
  width: 100%;
  max-width: 600px;
  text-align: left;
}

#contact .contact-form.visible {
  opacity: 1;
  transform: translateX(0);
}

#contact .contact-text {
  transform: translateX(80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;
  padding: 0 10px;
}

#contact .contact-text.visible {
  opacity: 1;
  transform: translateX(0);
}

#contact .contact-form form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#contact .contact-form label {
  font-size: 14px;
  color: #009cff;
  margin-bottom: -6px;
  line-height: 1;
}

#contact .contact-form input,
#contact .textarea-group textarea {
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #029CFF;
  transition: border-color 0.3s ease;
}

#contact .contact-form input {
  border-bottom: 2px solid #029CFF;
  padding: 2px 0;
}

#contact .contact-form input::placeholder {
  color: #aaa;
}

#contact .textarea-group {
  position: relative;
}

#contact .textarea-group textarea {
  width: 100%;
  padding: 30px 16px 12px;
  border: 2px solid #029CFF;
  border-radius: 10px;
  resize: none;
  min-height: 150px;
  box-shadow: none;
}

#contact .textarea-group .textarea-label {
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 14px;
  color: #029CFF;
  pointer-events: none;
}

#contact .contact-form button {
  align-self: center;
  padding: 12px 40px;
  font-size: 16px;
  background-color: #029CFF;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

#contact .contact-form button:hover {
  background-color: #029CFF;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

#contact .mensaje-contacto {
  font-size: 34px;
  font-weight: 600;
  color: #029CFF;
  text-align: center;
  line-height: 1.3;
  margin-top: 40px;
  max-width: 600px;
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 992px) {
  #contact .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  #contact .contact-text {
    transform: translateY(80px);
    max-width: 90%;
  }

  #contact .contact-text.visible {
    transform: translateY(0);
  }

  #contact .mensaje-contacto {
    font-size: 30px;
    margin-top: 30px;
  }

  #contact .contact-title h3 {
    font-size: 28px;
  }
}
