{% trans_default_domain 'forms' %}
<div {{ attributes }}>
   <h4 class="title">{{ 'form.title.b2b'|trans }}</h4>

   {{ form_start(form, {
      attr: {
         'data-action': 'live#action',
         'data-live-action-param': 'handleForm',
         'data-recaptcha-lazy': '',
      },
   }) }}
   <div class="form-group required">
      {{ form_row(form.name, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.surname, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.email, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group">
      {{ form_row(form.invoice_email, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.company, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.phone, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.ico, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.dic, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.street, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group required">
      {{ form_row(form.city, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group country required">
      {{ form_row(form.psc, {attr: {class: 'form-control'}}) }}
      {{ form_row(form.country, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group">
      {{ form_row(form.additional_address, {attr: {class: 'form-control'}}) }}
   </div>
   <div class="form-group checkbox{% if this.showAdditionalAddress %} active{% endif %}">
      <a data-action="live#action" data-live-action-param="toggleAdditionalAddress" role="button">
         {{ form_row(form.additional_address_delivery, {attr: {class: 'form-control'}, checked: this.showAdditionalAddress ? 'checked' : null }) }}
         <twig:ux:icon name="check" class="c-icon"/>
      </a>
      <p>{{ 'different.address.delivery'|trans }}</p>
   </div>
   {% if this.showAdditionalAddress %}
      <div class="form-group required">
         {{ form_row(form.iname, {attr: {class: 'form-control'}}) }}
      </div>
      <div class="form-group required">
         {{ form_row(form.isurname, {attr: {class: 'form-control'}}) }}
      </div>
      <div class="form-group required">
         {{ form_row(form.istreet, {attr: {class: 'form-control'}}) }}
      </div>
      <div class="form-group required">
         {{ form_row(form.icity, {attr: {class: 'form-control'}}) }}
      </div>
      <div class="form-group required">
         {{ form_row(form.ipsc, {attr: {class: 'form-control'}}) }}
      </div>
   {% endif %}
   <p class="privacy-policy">
      {{ 'form.policy.agree'|trans({'%consentUrl%': this.consentUrl, '%privacyPolicyUrl%': this.privacyPolicyUrl})|raw }}
   </p>
   <div class="submit-wrapper">
      <button class="btn" type="submit">
         {{ 'form.submit'|trans }}
      </button>
   </div>
   {{ form_end(form, {render_rest: false}) }}
</div>
