@media screen and (max-width: 768px) {

  /* Prevent horizontal scrolling */
  html, body {
    overflow-x: hidden;
  }

  /* ===============================
     Custom Field Table Responsive
  =============================== */
  /* table.tribe-section-content,
  table.tribe-section-content colgroup,
  table.tribe-section-content tr,
  table.tribe-section-content td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  } */

    /* ===============================
     Fix Half-Width Inputs in Tables (e.g. External Link)
  =============================== */
   table.tribe-section-content td.tribe-section-content-field input[type="text"] {
    width: 90% !important;
    max-width: 90% !important;
    box-sizing: border-box;
    display: block;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  /* Optional: Remove default input size attribute on small screens */
  table.tribe-section-content input[size] {
    width: 90% !important;
  } 

  @media screen and (max-width: 768px) {

  /* Stack each field row for mobile */
  table.tribe-section-content,
  table.tribe-section-content colgroup,
  table.tribe-section-content tr,
  table.tribe-section-content td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Ensure labels are full-width, top aligned */
  .tribe-section-content-label {
    width: 100% !important;
    padding-bottom: 5px;
  }

  .tribe-section-content-label label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: normal;
  }

  /* Ensure input field is full width and spaced */
  .tribe-section-content-field {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .tribe-section-content-field input[type="text"],
  .tribe-section-content-field input,
  .tribe-section-content-field textarea,
  .tribe-section-content-field select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block;
    box-sizing: border-box;
  }

  /* Optional: If input has size attribute, override */
  table.tribe-section-content input[size] {
    width: 100% !important;
  }
}



  .tribe-section-content .tribe-section-content-row {
    margin-bottom: 20px;
  }

  .tribe-section-content-label label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
  }

  .tribe-section-content-field input[type="text"],
  .tribe-section-content-field input,
  .tribe-section-content-field textarea,
  .tribe-section-content-field select {
    width: 100% !important;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  /* ===============================
     Event Title Field
  =============================== */
  .events-community-post-title {
    width: 100%;
    margin-bottom: 20px;
  }

  .events-community-post-title label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
  }

  .events-community-post-title input[type="text"] {
    width: 100% !important;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  /* ===============================
     Select2: Categories & Tags
  =============================== */
  .select2-container,
  .select2-selection--multiple {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .select2-container--default .select2-selection--multiple {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .select2-search__field {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  /* ===============================
     Wrapper & Container Cleanup
  =============================== */
  .tribe-community-events,
  .tribe-section-content,
  .tribe-section-content-field,
  .select2-selection--multiple {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}
/* @media screen and (min-width: 1024px) {
  body.page-id-852 .submit-listing-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
  }

  body.page-id-852 .acf-form {
    width: 100% !important ;
  }
} */
@media screen and (min-width: 1024px) {
  body.page-id-852 .site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
  }

  body.page-id-852 .submit-listing-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
  }

  body.page-id-852 .acf-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    display: block;
     /* background: #f00606 !important; */
  }
  body.page-id-852 .acf-form .acf-fields {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  body.page-id-852 .acf-form .acf-field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  
}

body.page-id-852 .acf-form .acf-form-submit {
  width: 100%;
  text-align: center; /* optional: center button */
  margin-top: 20px;
  box-sizing: border-box;
}

body.page-id-852 .acf-form .acf-form-submit input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0 auto;
  padding: 12px 16px;
  font-size: 1rem;
  background-color: var(--tec-color-button-primary, #333333);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

body.page-id-852 .acf-form .acf-form-submit input[type="submit"]:hover {
  background-color: #222222;
}
body.page-id-852 .acf-form .acf-form-submit input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.5);
}

