/* Contato Section Styles */

.contato {
  width: 100%;
  background-color: #FFFFFF;
  padding: 40px 20px;
  position: relative;
}

/* Optional background image with overlay */
.contato--with-bg {
  background-image: url('/img/contato-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: #FFFFFF;
}

.contato--with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.contato__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contato__heading {
  font-weight: 600;
  font-size: 24px;
  color: #0A1B2A;
  text-align: center;
  margin-bottom: 15px;
}

.contato--with-bg .contato__heading {
  color: #FFFFFF;
}

.contato__subheading {
  font-weight: 400;
  font-size: 16px;
  color: #0A1B2A;
  text-align: center;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contato--with-bg .contato__subheading {
  color: #FFFFFF;
}

.contato__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contato__form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contato__label {
  font-weight: 500;
  font-size: 14px;
  color: #0A1B2A;
}

.contato__input,
.contato__textarea {
  padding: 12px 16px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #0A1B2A;
  transition: all 0.3s ease;
}

.contato__input:focus,
.contato__textarea:focus {
  outline: none;
  border-color: #5A7152;
  box-shadow: 0 0 0 2px rgba(90, 113, 82, 0.2);
}

.contato__textarea {
  min-height: 120px;
  resize: vertical;
}

.contato__button {
  display: inline-block;
  padding: 14px 30px;
  background-color: #5A7152;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 10px;
}

.contato__button:hover {
  background-color: #4a5e44;
  transform: translateY(-2px);
}

.contato__button:active {
  transform: translateY(0);
}

.contato__message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.contato__message--success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.contato__message--error {
  background-color: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
  border: 1px solid #d32f2f;
}

/* Loading spinner */
.contato__spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form validation styles */
.contato__input.error,
.contato__textarea.error {
  border-color: #d32f2f;
}

.contato__error-text {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

/* Media Queries for Responsive Design */
@media screen and (min-width: 768px) {
  .contato {
    padding: 60px 40px;
  }
  
  .contato__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .contato__subheading {
    font-size: 17px;
    margin-bottom: 40px;
  }
}

@media screen and (min-width: 1024px) {
  .contato {
    padding: 80px 40px;
  }
  
  .contato__heading {
    font-size: 32px;
  }
  
  .contato__subheading {
    font-size: 18px;
  }
  
  .contato__form {
    padding: 40px;
  }
}
