
[ALERT]
<? \S::set_session( 'form-token', bin2hex( random_bytes( 32 ) ) );?>
<form method="POST" action="" id="footer-contact">
  <input type="hidden" name="action" value="footer_contact_mail_send">
  <input type="hidden" name="token" value="<?= \S::get_session( 'form-token' );?>">
  <input type="hidden" name="website" value="">
  <div class="form-row">
    <div class="form-group col-md-6">
      <input type="text" class="form-control" id="name" name="name" placeholder="Nome dell'azienda" required>
    </div>
    <div class="form-group col-md-6">
      <input type="text" class="form-control" id="email" name="email" placeholder="E-mail" required>
    </div>
  </div>
  <div class="form-row">
    <div class="form-group col-md-6">
      <select class="form-control" id="indirizzo" name="indirizzo" required>
        <option value="" selected disabled>--- REGIONE ---</option>
        <option value="L'Aquila">L'Aquila</option>
        <option value="Basilicata">Basilicata</option>
        <option value="Calabria">Calabria</option>
        <option value="Campania">Campania</option>
        <option value="Emilia-Romagna">Emilia-Romagna</option>
        <option value="Friuli-Venezia Giulia">Friuli-Venezia Giulia</option>
        <option value="Lazio">Lazio</option>
        <option value="Liguria">Liguria</option>
        <option value="Lombardia">Lombardia</option>
        <option value="Marche">Marche</option>
        <option value="Molise">Molise</option>
        <option value="Piemonte">Piemonte</option>
        <option value="Puglia">Puglia</option>
        <option value="Sardegna">Sardegna</option>
        <option value="Sicilia">Sicilia</option>
        <option value="Toscana">Toscana</option>
        <option value="Trentino-Alto Adige / Südtirol">Trentino-Alto Adige / Südtirol</option>
        <option value="Umbria">Umbria</option>
        <option value="Valle d'Aosta / Vallée d'Aoste">Valle d'Aosta / Vallée d'Aoste</option>
        <option value="Veneto">Veneto</option>
      </select>
    </div>
    <div class="form-group col-6">
      <input type="text" class="form-control" id="zip_code" name="zip_code"  placeholder="Codice Postale">
    </div>
  </div>
  <div class="form-row">
  <div class="form-group col-md-6">
      <input type="text" class="form-control" id="phone"  name="phone" placeholder="Cellulare" required>
    </div>
    <div class="form-group col-md-6">
      <select class="form-control" name="kind_of_cooperation">
        <option value="" selected disabled>--- TIPO DI COLLABORAZIONE ---</option>
        <option value="klient prywatny">Cliente privato</option>
        <option value="sprzedawca">Rivenditore</option>
        <option value="firma budowlana">Impresa Edile</option>
        <option value="konstruktor">Costruttore</option>
        <option value="architekt">Architetto</option>
        <option value="przedsiębiorca">Imprenditore</option>
        <option value="producent">Produttore Infissi</option>
        <option value="agent">Agente</option>
        <option value="inny">Altro</option>
      </select>
    </div>
  </div>
  <div class="form-row">
    <div class="form-group col-12">
      <textarea class="form-control" id="altre-informazioni" name="altre-informazioni" rows="7" placeholder="Altre informazioni" required></textarea>
    </div>
  </div>
  <div class="form-row">
    <div class="form-group col-md-7">
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="home-form-check" required>
        <label class="form-check-label" for="home-form-check">
          Autorizzo il trattamento dei miei dati personali da me sopra forniti per preparare un'offerta adeguata.
        </label>
      </div>
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="home-form-check-2" required>
        <label class="form-check-label" for="home-form-check-2">
          Autorizzo il trattamento dei miei dati personali per finalità di marketing.
        </label>
      </div>
    </div>
    <div class="form-group col-md-5">
      <button type="submit" class="btn">invia<img alt="" src="/upload/filemanager/icon/arrow-right-black.svg" /></button>
    </div>
  </div>

  <div class="form-row">
    <div class="col-12">
      <div class="g-recaptcha" data-sitekey="6LfaovglAAAAAAieLVC7i4xGkQA5ufXUbWLipSbp"></div>
    </div>
  </div>

  <? if ( $settings['contact_form_captcha'] ):?>
    <div class="form-row">
      <div class="col-12 small">
        <div class="captcha">
          <div class="check"> </div> <span>Non sono un robot</span>
        </div>
      </div>
    </div>
  <? endif;?>
</form>
<? if ( $settings['contact_form_captcha'] ):?>
  <link href="/libraries/jquery/captcha.css" rel="stylesheet" type="text/css">
  <script class="footer" type="text/javascript" src="/plugins/captcha.js"></script>
<? endif;?>
<script class="footer" type="text/javascript">
  <? if ( $settings['contact_form_captcha'] ):?>
    $( function()
    {
      $( '#footer-contact' ).captcha();
    });
  <? endif;?>
</script>