@import "../variables.scss";

/* //////////////////////////////////////////////////////////////////////////////////
*
*  Paged Layout 
*
/* /////////////////////////////////////////////////////////////////////////////////*/

*{
  outline: none;
}


.form-row{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-input{
  width: 48%;
  position: relative;
  input, .select-wrapper input.select-dropdown{
    width: calc(100% - 65px );
    max-width: unset;
    padding: 0;
    box-sizing: unset;
    padding: 7px 20px 7px 45px;
    border-radius: 5px;
    border: solid 1px #e0e0e0;
    font-size: 13px;
  }
  .iti {
    position: relative;
    display: inline-block;
    width: 100%;
  }
  .iti input, .iti input[type=text], .iti input[type=tel] {
    width: calc(100% - 58px);
  }
  i{
    position: absolute;
    top: 15px;
    left: 15px;
    color: $blue;
  }
  .select-wrapper .select-icon i {
    font-size: 20px;
    top: 5px;
    left: unset;
  }
  .select-wrapper ul{
    max-height: 300px;
    overflow-y: scroll;
    top: 46px;
  }
  .select-wrapper.active{
    input.select-dropdown{
      background-color: #fff;
    }
  }
}

.form-full{
  width: 100%;
  position: relative;
  textarea{
    width: calc(100% - 80px );
    border: solid 1px #e0e0e0;
    padding: 30px 40px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 300;
  }
  i{
    position: absolute;
    top: 15px;
    left: 15px;
    color: $blue;
    z-index: 9999;
  }
}

.form-full.rgpd{
  span{
    font-size: 12px;
    font-style: italic;
    padding-left: 10px;
  }
}

.devis{
  .iti__country-list {
    position: absolute;
    z-index: 9999999;
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0 0 0 -1px;
    box-shadow: $box-shadow;
    background-color: white;
    border: none;
    white-space: nowrap;
    max-height: 200px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
}

button.main-cta{
  background-color: $blue;
  border: none;
  color: #fff;
  padding: 10px 35px;
  border-radius: 40px;
  font-size: 14px;
  cursor: pointer;
}

button.cta-orange{
  background-color: $orange;
}

.row-cta{
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 30px 0;
}

.select-wrapper.active{
  position: relative;
  z-index: 999999;
}



/* //////////////////////////////////////////////////////////////////////////////////
*
*  Input type Select 
*
/* /////////////////////////////////////////////////////////////////////////////////*/

.select-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    align-items: center;
    z-index: 1000;
    border-radius: 5px;
}

.select-wrapper ul {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 0;
    top: 63px;
    background-color: #fff;
    overflow-y: auto;
    z-index: 999;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: $box-shadow;
    border-radius: 0 0 5px 5px;
    left: 0;
}

.select-wrapper.active ul {
  opacity: 1;
  pointer-events: auto;
}

.select-wrapper ul li {
  clear: both;
  cursor: pointer;
  min-height: 50px;
  line-height: 1.5rem;
  width: 100%;
  text-align: left;
  text-transform: none;
  transition: all 0.2s ease;
  font-size: 13px;
  // color: $light-grey
}

.select-wrapper ul li:hover {
  background-color: #eee;
}

.select-wrapper ul li>span {
  display: block;
  line-height: 22px;
  padding: 14px 16px;
}

.select-wrapper input.select-dropdown{
    position: relative;
    display: block;
    cursor: pointer;
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 25px;
    font-size: 11px;
    color: #7e7e7e;
    z-index: 1000;
    border-radius: 5px;
    background: none;
}

.select-wrapper .select-icon{
    position: absolute;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    cursor: pointer;
    i{
        // color: $light-grey;
        font-size: 20px;
    }
    i.fa-times{
        // color: $theme-red;
    }
}

.select-wrapper select {
  display: none;
}

.select-wrapper:hover i.fa-angle-down{
  // color: $theme-green;
}
