<%= form_for message, url: messages_url, remote: true do |f| %>
      <div class="modal-body">
              <% if message.errors.present? %>
                <div class="alert alert-dismissible alert-danger">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                      <span aria-hidden="true">×</span>
                    </button>
                    <h6>
                        <strong>There <%= message.errors.count == 1 ? "was an error" : "were #{message.errors.count} errors" %> sending your request. Please try again.</strong>
                    </h6>
                    <ul class="pl-4">
                        <% message.errors.full_messages.each do |msg| %>
                            <li style="list-style:circle;"><%= msg %></li>
                        <% end %>
                    </ul>
                </div>
              <% end %>
            <div class="row">
                <div class="col">
                  <div class="form-group">
                    <%= f.text_field :first_name, validate: true, class: 'form-control first_name', onchange: "removeErrorClass(this)", placeholder: "First Name" %>
                  </div>
                </div>
                <div class="col">
                  <div class="form-group">
                    <%= f.text_field :last_name, class: 'form-control last_name', onchange: "removeErrorClass(this)", placeholder: "Last Name" %>
                  </div>
                </div>
            </div>
            <div class="form-group">
                <%= f.email_field :email, class: 'form-control email', onchange: "removeErrorClass(this)", placeholder: "Email Address" %>
            </div>
            <div class="form-group">
                <%= f.select( :job_title, ["C-level Executive", "CEO / President", "CFO Chief Financial Officer", "CBO Chief Business Officer", "VP – Vice President", "VP of Operations", "Director", "Director of Operations", "Director of QA & Compliance", "Director of Health Services", "Director of Medical Affairs", "Contract Director", "Manager", "Manager of Building Operations", "Service Manager", "Facility Manager / Property Manager", "Vendor Manager", "Office Manager", "Superintendent", "School Board President", "School Board Member", "Chairman", "Administrative Assistant", "Job Seeker", "Other"].map { |c| [ c, c ] }, {include_blank: "Job Title"}, {:class => 'browser-default form-control job_title', onchange: "removeErrorClass(this)"}) %>
            </div>
            <div class="form-group">
                <%= f.number_field :phone_number, class: 'form-control phone_number', onchange: "removeErrorClass(this)", placeholder: "Phone Number" %>
            </div>
            <div class="form-group">
                <%= f.text_field :company_name, class: 'form-control company_name', placeholder: "Company Name" %>
            </div>
            
            <div class="form-group">
                <%= f.select( :industry, ["Aviation", "Banking & Financial", "BioPharma", "Commercial Office", "Commercial Real Estate", "Construction", "Education", "Government", "Healthcare", "High-Tech", "Hospitality", "Industrial & Manufacturing", "Oil & Gas", "Religious & Civic", "Residential", "Retail", "Senior Living", "Sports & Entertainment", "Transportation", "Other"].map { |c| [ c, c ] }, {include_blank: "Which Industry is best suited to your business?"}, {:class => 'browser-default form-control industry', onchange: "removeErrorClass(this)"}) %>
            </div>
            <div class="form-group">
                <%= f.select( :service, ["Cleaning Services", "Facility Management Services", "Landscape", "Security Services"].map { |c| [ c, c ] }, {include_blank: "Services"}, {:class => 'browser-default form-control service', onchange: "removeErrorClass(this)"}) %>
            </div>
            <div class="form-group">
                <%= f.select( :total_square_footage, ["0-10K", "11K-99K", "100K-999K", "1,000,000+"].map { |c| [ c, c ] }, {include_blank: "Total Square Footage"}, {:class => 'browser-default form-control total_square_footage'}) %>
            </div>
            <div class="form-group">
                <%= f.text_area :comments, class: 'md-textarea form-control comments', placeholder: "Comments" %>
            </div>
            <div class="float-right mb-5">
              <button type="submit" class="btn btn-success hvr-sweep-to-right m-0">Send</button>
            </div>
      </div>
<% end %>