
.contato {
  padding: 60px 20px;
  background: #FFF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
}

.contato>h2,
.contato>p,
.contato>img {
  grid-column: 1;
  padding-left: 100px;
}

.contato>h2 {
  margin-top: 0;
}

.contato h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

.contato p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
}

.contato img {
  width: 400px;
}

.contato form {
  grid-column: 2;
  width: 100%;
  margin-top: -220px;
}

form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.campo {
  margin-bottom: 20px;
  position: relative;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 4px rgba(0, 119, 255, 0.3);
  outline: none;
}

/* Campos com erro */
input.error,
textarea.error {
  border-color: #ff4d4d;
  animation: shake 0.3s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* Botão */
.btn-enviar {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  background: #0077ff;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn-enviar:hover {
  background: #25D366;
}

.btn-enviar:active {
  transform: scale(0.97);
}

/* Animação de carregamento */
.btn-enviar.loading {
  position: relative;
  pointer-events: none;
  background: #00ff6a;
}

.btn-enviar.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}