<template>
  <modal name="contacts-modal" width="30%" height="400">
    <div>
      <b-row class="d-flex justify-content-between mb-3 mt-1">
        <b-col class="d-flex modal-text-color ml-2" cols="8">
          <div class="d-flex align-self-center justify-content-center rounded-div mr-2 mt-1">
            <font-awesome-icon icon="address-book" class="align-self-center" />
          </div>
          <div class="pt-1">
            <div class="inline-block akkurat-regular min-header-text">
              Contato Odorata
            </div>
            <div class="akkurat-bold max-header-text">Fale com a sua Gerente</div>
          </div>
        </b-col>
        <b-col class="d-flex justify-content-end mr-2 mt-1">
          <span class="close-icon" @click="closeModal">
            <font-awesome-icon icon="times" class="align-self-center" />
          </span>
        </b-col>
      </b-row>
      <b-form>
        <b-form-row class="px-5 mx-3 mt-5" style="">
          <div class="text-left label">
            <label for="modal-name">Nome:</label>
          </div>
          <b-form-input
            id="modal-name"
            class="radius-theme"
            type="text"
            v-model.trim="name"
          ></b-form-input>
        </b-form-row>
        <b-form-row class="px-5 mx-3" style="">
          <div class="text-left label">
            <label for="modal-phone-number">Telefone:</label>
          </div>
          <the-mask
            id="modal-phone-number"
            type="tel"
            class="form-control radius-theme"
            mask="(##) # ####-####"
            placeholder="(62) 9 9090-9090"
            v-model.trim="phoneNumber"
          />
        </b-form-row>
        <b-form-row class="px-5 mx-3" style="">
          <div class="text-left label">
            <label for="modal-email">E-mail:</label>
          </div>
          <b-form-input
            id="modal-email"
            class="radius-theme"
            type="text"
            placeholder="maria@email.com"
            v-model.trim="email"
          ></b-form-input>
        </b-form-row>
      </b-form>
      <b-row>
        <b-col class="d-flex justify-content-center">
          <b-button
            class="mr-2 mb-0 btn shadow-none border-0 btn-default"
            @click="closeModal"
          >
            Fechar
          </b-button>
        </b-col>
      </b-row>
    </div>
  </modal>
</template>

<script>
export default {
  name: 'contacts-modal',
  data: () => ({
    name: '',
    phoneNumber: '',
    email: '',
  }),
  methods: {
    closeModal() {
      this.$modal.hide('contacts-modal');
    },
  },
};
</script>

<style scoped lang="scss">
@import '../../assets/css/main.scss';
@import '../../assets/css/cards.scss';

.modal-text-color {
  color: #3E3E3E;
}

.min-header-text {
  letter-spacing: 0.2px;
  font-size: 9px;
}

.max-header-text {
  letter-spacing: 0.4px;
  font-size: 16px;
}

.close-icon {
  color: #979797;
  font-size: 20px;
}

.btn-default {
  border-radius: 20px;
  width: 148px;
  height: 35px;
  background: #FF9B64;
  margin-top: 60px;
}

</style>
