@media (max-width: 768px) {

  /* HEADER ROW HIDE */
  html body #gform_fields_1_4 li.gfmc-row-1-column,
  html body #gform_fields_9_5 li.gfmc-row-1-column {
    display: none !important;
  }

  /* FLEX WRAPPER BLOCK */
  html body #gform_fields_1_4 ul.flex-wrapper,
  html body #gform_fields_9_5 ul.flex-wrapper {
    display: block !important;
    width: 100% !important;
  }

  /* COLUMNS FULL WIDTH */
  html body #gform_fields_1_4 li.gfmc-column,
  html body #gform_fields_9_5 li.gfmc-column {
    display: block !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* TYPE OF SCHOOL HIDE */
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-hs-type),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-col-type),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-biz-type),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-pro-type),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-hs-type),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-col-type),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-biz-type),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-pro-type){
    display: none !important;
  }

  /* CARD TOP - Name fields */
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-hs-name),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-col-name),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-biz-name),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-pro-name),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-hs-name),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-col-name),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-biz-name),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-pro-name){
    background: #fff !important;
    padding: 16px 16px 0 16px !important;
    margin-top: 16px !important;
  }

  /* BLUE HEADINGS */
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-hs-name)::before,
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-hs-name)::before {
    content: "1. High School" !important;
    display: block !important;
    color: #1d4ed8 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
  }
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-col-name)::before,
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-col-name)::before {
    content: "2. College" !important;
    display: block !important;
    color: #1d4ed8 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
  }
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-biz-name)::before,
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-biz-name)::before {
    content: "3. Business/Trade School" !important;
    display: block !important;
    color: #1d4ed8 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
  }
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-pro-name)::before,
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-pro-name)::before {
    content: "4. Professional School" !important;
    display: block !important;
    color: #1d4ed8 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
  }

  /* CARD MIDDLE - Location & Years */
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-hs-location),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-hs-years),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-col-location),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-col-years),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-biz-location),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-biz-years),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-pro-location),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-pro-years),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-hs-location),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-hs-years),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-col-location),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-col-years),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-biz-location),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-biz-years),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-pro-location),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-pro-years) {
    background: #fff !important;
    padding: 0 16px !important;
  }

  /* CARD BOTTOM - Major fields */
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-hs-major),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-col-major),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-biz-major),
  html body #gform_fields_1_4 li.gfmc-column:has(li.edu-pro-major),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-hs-major),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-col-major),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-biz-major),
  html body #gform_fields_9_5 li.gfmc-column:has(li.edu-pro-major) {
    background: #fff !important;
    padding: 0 16px 16px 16px !important;
    margin-bottom: 4px !important;
  }

  /* HIDDEN LABEL FIX */
  html body #gform_fields_1_4 .gfield.hidden_label .gfield_label,
  html body #gform_fields_1_4 .hidden_label .gfield_label,
  html body #gform_fields_1_4 label.gfield_label,
  html body #gform_fields_1_4 .gform-field-label,
  html body #gform_fields_9_5 .gfield.hidden_label .gfield_label,
  html body #gform_fields_9_5 .hidden_label .gfield_label,
  html body #gform_fields_9_5 label.gfield_label,
  html body #gform_fields_9_5 .gform-field-label {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: normal !important;
    font-size: 13px !important;
    color: #333 !important;
    margin: 12px 0 4px !important;
    font-weight: 400 !important;
  }

  /* INPUT FULL WIDTH */
  html body #gform_fields_1_4 .ginput_container_text input.medium,
  html body #gform_fields_1_4 .ginput_container_text input,
  html body #gform_fields_9_5 .ginput_container_text input.medium,
  html body #gform_fields_9_5 .ginput_container_text input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    background: #fff !important;
    height: 40px !important;
    display: block !important;
  }

  /* BUTTONS */
  html body .gform_page_footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }

  html body .gform_page_footer input[type="button"] {
    width: 70% !important;
    border-radius: 25px !important;
    padding: 12px !important;
  }

  html body .gform_save_link {
    margin-top: 4px !important;
    text-align: center !important;
  }
  
  html body #gform_fields_1_4 li.gfmc-row-1-column,
  html body #gform_fields_9_5 li.gfmc-row-1-column {
  display: none !important;
  }
}
@media (max-width: 400px) {
    .avada-page-titlebar-wrapper {
        display: none !important;
    }
}