#new-contact-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.form-row.single {
  flex-direction: column;
}

.form-group {
  flex: 1;
  position: relative;
}

.form-group.full-width {
  width: 100%;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 0;
  font-size: 16px;
  color: #333;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 20px;
}

.form-label {
  position: absolute;
  top: 15px;
  left: 0;
  font-size: 16px;
  color: #999;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-textarea + .form-label {
  top: 20px;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: #333;
}

.form-input:focus + .form-label,
.form-input:valid + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:valid + .form-label {
  top: -25px;
  font-size: 12px;
  color: #333;
  font-weight: 500;
  text-transform: uppercase;
}

/* Animated bottom border effect */
.form-input::after,
.form-textarea::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.4s ease;
}

.form-group::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.4s ease;
  z-index: 1;
}

.form-input:focus ~ .form-group::after,
.form-textarea:focus ~ .form-group::after,
.form-group:focus-within::after {
  width: 100%;
}

.submit-button-container {
  text-align: left;
  margin-top: 50px;
}

.submit-btn {
  background: transparent;
  border: 2px solid #333;
  color: #333;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #333;
  transition: left 0.4s ease;
  z-index: -1;
}

.submit-btn:hover {
  color: #fff;
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn:active {
  transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-section {
    padding: 40px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .submit-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  .contact-section {
    padding: 0px !important;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 0px !important;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .form-input,
  .form-textarea {
    font-size: 14px;
  }

  .form-label {
    font-size: 14px;
  }
}

/* Animation classes for enhanced experience */
.form-group {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-row:nth-child(2) .form-group {
  animation-delay: 0.3s;
}
.form-row:nth-child(3) .form-group {
  animation-delay: 0.4s;
}
.form-row:nth-child(4) .form-group {
  animation-delay: 0.5s;
}
.form-row:nth-child(5) .form-group {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-button-container {
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.7s forwards;
}
