/* Contact: contact form (#contact) */

/* Main content section */
.contact-us-main-content {
  padding: 20px 70px;
  position: relative;
}

.contact-us-join-heading {
  color: var(--color-gray-600);
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 600;
  max-width: 60%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.contact-us-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 60%;
  /* Changed from 953px to 60% */
  width: 60%;
  /* Added width property */
}

.contact-us-form-group {
  position: relative;
  margin-bottom: 8px;
  /* Add spacing between form groups */
}

/* Input field styling */
.contact-us-form-input {
  -webkit-appearance: none;
  appearance: none;
  height: 41px;
  border-radius: 20px;
  border: 1px solid var(--color-gray-400);
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.89);
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Textarea styling */

/* Focus states for form elements */
.contact-us-form-input:focus,
.contact-us-form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 2px rgba(65, 184, 232, 0.2);
}

.contact-us-form-input[type="email"]:valid {
  border-color: var(--color-teal-dark);
  box-shadow: 0 0 0 1px var(--color-teal-dark);
}

.contact-us-form-input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
  box-shadow: 0 0 0 1px #e74c3c;
}

.contact-us-form-input[type="email"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 1px #3498db;
}

.contact-us-form-textarea {
  -webkit-appearance: none;
  appearance: none;
  /* Increased from 85px for better writing space */
  /* More consistent padding with input fields */
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: 85px;
  border-radius: 20px;
  border: 1px solid var(--color-gray-400);
  padding: 20px;
  resize: none;
  background-color: rgba(255, 255, 255, 0.89);
  width: 100%;
  font-family: "Montserrat", sans-serif;
}

.contact-us-submit-button {
  margin-top: 0px;
  height: 41px;
  border-radius: 20px;
  border: none;
  background-color: var(--color-gray-600);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  padding: 0 30px;
}

.contact-us-submit-button:hover {
  background-color: #5a5a5a;
  border-color: var(--color-gray-400);
}

/* Hidden until contact.js flags the field as invalid */
.contact-us-error-message {
  display: none;
  color: var(--color-purple-mid);
  font-size: 12px;
  margin-top: 4px;
  padding-left: 20px;
}

.contact-us-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-600);
}

@media (max-width: 991px) {
  /* Responsive styles for contact-us 991px */
  .contact-us-main-content {
    padding-top: 30px;
    padding-left: 60px;
    padding-right: 0px;
    padding-bottom: 40px;
  }

  .contact-us-contact-form {
    max-width: 88%;
    width: 88%;
  }

  .contact-us-form-input,
  .contact-us-form-textarea {
    font-size: 16px;
    /* Larger text on mobile for better readability */
  }

  .contact-us-join-heading {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .contact-us-contact-form {
    max-width: 90%;
    width: 90%;
  }

  .contact-us-form-label {
    font-size: 13px;
  }
}

/* Form submission messages created by contact.js */
.form-message {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
  font-weight: 500;
  box-sizing: border-box;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
