/* Global Styles */
#lg-contact-form *,
#lg-contact-form *::before,
#lg-contact-form *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: inherit, system-ui, sans-serif; /* Or your desired fonts */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#lg-contact-form textarea,
#lg-contact-form input,
#lg-contact-form button,
#lg-contact-form select {
  font-family: inherit, system-ui, sans-serif; /* Or your desired fonts */
}

#lg-contact-form .form-container {
  margin-top: 2rem;
  flex: 1;
  max-width: 100%;
  padding: 2rem; /* Default padding for larger screens */
  //min-width: 50%;
  background-color: #333;
  color: #fff;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #lg-contact-form .form-container {
    max-width: 100%;
    padding: 0; /* Remove internal padding for a tighter layout */
    margin-top: 0; /* Remove any top margin */
  }
}

/* Adjust hero height on smaller screens */

/* Form Styling */
/* #lg-contact-form form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  //background-color: #333;
  //color: #fff;
  margin: 0 auto; /* Center align the form */
} */

/* Label Styling */
#lg-contact-form form label {
  display: block; /* Ensures labels are on their own lines */
  margin-bottom: 0.2rem; /* Space between label and input */
  color: #fff;
  font-size: 1rem;
}

#lg-contact-form form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.3rem;
  border: none;
  outline: 0;
  border-radius: 0px;
  background-color: #fff;
  color: #333;
}

#lg-contact-form form select {
  width: 100%;
  padding: 0.75rem;

  margin-bottom: 0.3rem;
  border: none;
  outline: 0;
  border-radius: 0px;
  background-color: #fff;
  color: #333;
  line-height: 1.4;
}

#lg-contact-form form select {
  appearance: none; /* Removes default appearance */
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="grey" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.5 4.5a.5.5 0 0 1 .854-.354l5.146 5.146L12.646 4.146a.5.5 0 1 1 .708.708l-5.5 5.5a.5.5 0 0 1-.708 0l-5.5-5.5A.5.5 0 0 1 1.5 4.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 16px;
}

#lg-contact-form form select:focus {
  border-color: #ff6600;
  outline: none;
}

/* Ensure consistent placeholder styling */
#lg-contact-form form input::placeholder,
#lg-contact-form form textarea::placeholder {
  color: #999;
  font-size: 1rem;
}

/* Checkbox Styling */
#lg-contact-form form input[type='checkbox'] {
  width: 20px; /* Standard size for the checkbox */
  height: 20px;
  margin-right: 10px; /* Space between the checkbox and the label */
  appearance: none;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  vertical-align: middle; /* Ensure alignment with label */
  display: inline-block; /* Make checkbox inline */
}

#lg-contact-form form input[type='checkbox']:checked {
  background-color: #ff6600; /* Background color when checked */
  border-color: #ff6600; /* Border color when checked */
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><polyline points="20 6 9 17 4 12"/></svg>'); /* Checkmark icon */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px; /* Adjust size of checkmark */
}

#lg-contact-form form input[type='checkbox']:focus {
  outline: none;
  border-color: #ff6600; /* Highlight border on focus */
}

#lg-contact-form .checkbox-container {
  display: flex;
  align-items: center; /* Vertical alignment */
  margin-top: 10px;
  //margin-bottom: 1rem;
}

/* Label Styling for Checkboxes */
#lg-contact-form form label[for*='checkbox'] {
  font-size: 1rem;
  color: #ffffff; /* Label color */
  cursor: pointer; /* Pointer cursor on hover */
}

#lg-contact-form span {
  color: #ffffff;
}

#lg-contact-form a {
  color: #1e90ff;
}

#lg-contact-form form textarea {
  height: 120px; /* Set a default height for textarea */
  resize: none; /* Prevent users from resizing */
  margin-bottom: 0.3rem;
  width: 100%;
  padding: 0.75rem;

  border: none;
  outline: 0;
  border-radius: 0px;
  background-color: #fff;
  color: #333;
}

/* Adjust button styling */
#lg-contact-form form button {
  width: 100%;
  height: 70px; /* Set a default height for button */
  padding: 0.5rem; /* Adjust padding */
  font-size: 1.5rem;
  margin-top: 20px;
  background-color: #ff6600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 0px;
}

#lg-contact-form form button:hover {
  background-color: #e65c00;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
  #lg-contact-form .form-container {
    //max-width: 100%;
    padding: 1rem;
    margin-top: 1rem;
  }

  #lg-contact-form form {
    padding: 15px; /* Adjust form padding on smaller screens */
  }

  #lg-contact-form input,
  #lg-contact-form textarea {
    padding: 0.5rem; /* Slightly reduce padding for smaller screens */
  }

  #lg-contact-form label {
    text-align: center;
  }
}

#lg-contact-form .cta-header {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1px;
  color: #ffffff;
}

#lg-contact-form .cta-header h4 {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1px;
  color: #ff6600;
}
#lg-contact-form .cf-hints {
  color: #ffffff;
  font-size: 1rem;
  font-style: italic;
  //font-weight: bold;
  text-align: center;
  margin-bottom: 1px;
}

#lg-contact-form .cta-message-success {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: normal;
  text-align: center;
  margin: 30px 0;
  line-height: 1.6;
  padding: 25px;
  background-color: rgba(50, 50, 50, 0.7);
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease-out 0.2s both;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border-left: 4px solid #ff6600;
}

#lg-contact-form .cta-header-success {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ff6600;
  position: relative;
  display: inline-block;
  padding: 0 10px;
  animation: fadeIn 0.8s ease-out;
  width: 100%;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

#lg-contact-form .cta-header-success::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 80px;
  height: 3px;
  background: #ff6600;
  transform: translateX(-50%);
}

/* Thank you message container styling */
#lg-contact-form #form_success {
  display: none;
  padding: 35px;
  border-radius: 0;
  background: #222;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease-out;
  position: relative;
  overflow: hidden;
  border-top: 3px solid #ff6600;
}

/* Animations for thank you message elements */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
