.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: linear-gradient(
    45deg,
    rgba(197, 164, 126, 0.03),
    rgba(176, 143, 105, 0.05)
  );
  border-radius: 50%;
  top: -400px;
  right: -200px;
  z-index: 0;
  animation: float 15s ease-in-out infinite;
}

.contact-section::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: linear-gradient(
    -45deg,
    rgba(197, 164, 126, 0.02),
    rgba(176, 143, 105, 0.04)
  );
  border-radius: 50%;
  bottom: -300px;
  left: -100px;
  z-index: 0;
  animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 30px);
  }
}

.contact-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.contact-subtitle {
  color: #c5a47e;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.contact-title {
  font-size: 36px;
  font-weight: 800;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.contact-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #c5a47e;
  border-radius: 2px;
}

.contact-description {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 164, 126, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #c5a47e;
  font-weight: 600;
  font-size: 14px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-input:focus,
.form-textarea:focus {
  border-color: #c5a47e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: #c5a47e;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  border: 2px solid #c5a47e;
}

.form-submit:hover {
  background: #b08f69;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 164, 126, 0.2);
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .contact-title {
    font-size: 28px;
  }

  .contact-description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 40px 0;
  }

  .contact-title {
    font-size: 24px;
  }

  .form-submit {
    padding: 12px 30px;
    font-size: 15px;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: #c5a47e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}

.modal-title {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.modal-text {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-button {
  background: #c5a47e;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #c5a47e;
}

.modal-button:hover {
  background: #b08f69;
  border-color: #b08f69;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 164, 126, 0.2);
}

/* Loading State para o botão de envio */
.form-submit {
  position: relative;
  overflow: hidden;
}

.button-text {
  transition: all 0.3s ease;
}

.button-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  visibility: hidden;
}

.loading .button-text {
  opacity: 0;
}

.loading .button-spinner {
  opacity: 1;
  visibility: visible;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsividade */
@media (max-width: 480px) {
  .modal-content {
    padding: 30px 20px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-text {
    font-size: 14px;
  }

  .modal-button {
    padding: 10px 25px;
    font-size: 14px;
  }
}
