How to put an IntegerField and a Text into the same line in a survey using CSS / Django?

I do a survey and would love to put my IntegerField into the same line as my text. Right now, it is displayed vertically (InputField under the sentence) as seen in the picture (How it looks right now) but I would like to have a small IntegerField within the same line or the same sentence.

Anybody has an idea on how to do it? I am not really familiar with css. Maybe the css_class could help there.


class SurveyPolicy(forms.Form):  
    policy6b = forms.IntegerField(
        # required=False,
  def __init__(self, *args, **kwargs):
        super(SurveyPolicy, self).__init__(*args, **kwargs)
        self.helper = FormHelper()
        self.helper.form_id = 'survey-form'
        self.helper.label_class = 'col-lg-12'
        self.helper.field_class = 'col-lg-12'
        self.desc = "example"

        self.helper.layout = Layout(

                "<hr><h6 style='color: #2D2D2D; font-family: Arial;'>Die Maßnahmen sollten zu</h5>",
                Div('policy6b', css_class='form-group row-ml-0 mb-0'),
                "<h6 style='color: #2D2D2D; font-family: Arial;'>% durch eine Abgabe auf konventionelle Energieträger wie z.B. Erdgas finanziert werden - schließlich sollten Leute, die mehr CO2-Ausstoß verursachen auch mehr bezahlen.</h5>",