/* Contact Form Improvements */

/* 
 * Enhanced contact form styling for better UX
 * - Consistent input/select heights
 * - Better color scheme (soft teal background instead of harsh red)
 * - Improved spacing and alignment
 * - Better label colors
 * - Softer placeholder colors
 */

/* Main container with softer teal background */
.contact-form-content {
  background: linear-gradient(135deg, #c21500 0%, #c21500 100% 100%) !important;
  padding: 45px 40px 50px !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Override the global form red background */
.contact-form-content form,
.contact-form-content #contact-us-form {
  background-color: transparent !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
}

/* Heading styling with better spacing */
.contact-form-content h2 {
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  color: #d4f0f5 !important;
  font-size: 1.75em !important;
  line-height: 1.3 !important;
}

/* Subtext paragraph spacing */
.contact-form-content > p {
  font-style: italic !important;
  margin-bottom: 28px !important;
  color: #d4f0f5 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* Form spacing from header text */
.contact-form.mt-5 {
  margin-top: 35px !important;
}

/* Form group spacing */
.contact-form .form-group {
  margin-bottom: 20px !important;
}

/* Label styling with better color - white/light for visibility */
.contact-form .control-label,
.contact-form-content .control-label,
.contact-form-content label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #d4f0f5 !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Consistent height for all form inputs */
.contact-form .form-control {
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #2d3748 !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e0 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Select dropdown - same height as inputs */
.contact-form select.form-control {
  height: 48px !important;
  padding: 0 16px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 18px !important;
  padding-right: 40px !important;
}

/* Textarea styling */
.contact-form textarea.form-control {
  height: 140px !important;
  padding: 14px 16px !important;
  resize: vertical !important;
  min-height: 120px !important;
  max-height: 250px !important;
}

/* Placeholder styling - soft gray */
.contact-form .form-control::placeholder {
  color: #a0aec0 !important;
  opacity: 1 !important;
  font-size: 14px !important;
}

.contact-form .form-control::-webkit-input-placeholder {
  color: #a0aec0 !important;
}

.contact-form .form-control::-moz-placeholder {
  color: #a0aec0 !important;
}

.contact-form .form-control:-ms-input-placeholder {
  color: #a0aec0 !important;
}

/* Focus states */
.contact-form .form-control:focus {
  border-color: #4299e1 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15) !important;
  background-color: #ffffff !important;
}

/* Error message styling */
.contact-error-message {
  color: #e53e3e !important;
  font-size: 13px !important;
  margin-top: 6px !important;
  display: block !important;
  font-weight: 500 !important;
}

/* Main error message box - hide when empty */
#contact-form-messages {
  padding: 12px 16px !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  background-color: #fff5f5 !important;
  border: 1px solid #fc8181 !important;
}

#contact-form-messages:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.text-center:has(#contact-form-messages:empty) {
  display: none !important;
}

/* reCAPTCHA container spacing */
#gcaptcha {
  margin-bottom: 12px !important;
  margin-top: 8px !important;
  padding-left: 10px !important;
}

#contact-captcha-message {
  margin-top: 8px !important;
  display: block !important;
}

/* Submit button improvements */
.contact-form .btn-m5 {
  /* background: linear-gradient(135deg, #2c7a7b 0%, #1a5f6b 100%) !important;
  border: 2px solid #1a5f6b !important;
  color: #ffffff !important; */
  padding: 14px 36px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  /* box-shadow: 0 4px 12px rgba(44, 122, 123, 0.25) !important; */
  min-width: 140px !important;
  letter-spacing: 0.5px !important;
}

.contact-form .btn-m5:hover {
  /* background: linear-gradient(135deg, #1a5f6b 0%, #14505a 100%) !important;
  border-color: #14505a !important;
  color: #ffffff !important; */
  transform: translateY(-2px) !important;
  /* box-shadow: 0 6px 16px rgba(44, 122, 123, 0.35) !important; */
}

.contact-form .btn-m5:active {
  transform: translateY(0) !important;
  /* box-shadow: 0 2px 8px rgba(44, 122, 123, 0.25) !important; */
}

/* Float right adjustment for button */
.contact-form .float-right {
  margin-top: 10px !important;
}

/* Required asterisk styling */
.contact-form .text-danger {
  color: #e53e3e !important;
  font-weight: 600 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form-content {
    padding: 35px 25px 40px !important;
  }

  .contact-form-content h2 {
    font-size: 1.5em !important;
  }

  .contact-form .btn-m5 {
    width: 100% !important;
    margin-top: 15px !important;
  }

  .contact-form .float-right {
    float: none !important;
  }

  .contact-row .col-lg-5 {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 576px) {
  .contact-form-content {
    padding: 30px 20px 35px !important;
    border-radius: 12px !important;
  }

  .contact-form-content h2 {
    font-size: 1.35em !important;
    margin-bottom: 10px !important;
  }

  .contact-form-content > p {
    font-size: 14px !important;
    margin-bottom: 22px !important;
  }

  .contact-form.mt-5 {
    margin-top: 25px !important;
  }

  .contact-form .form-control {
    height: 46px !important;
    font-size: 14px !important;
  }

  .contact-form select.form-control {
    height: 46px !important;
  }
}
.contact-form .text-danger {
    color: #e1d7d7 !important;
    font-weight: 600 !important;
}