select,
.form-control,
.form-select,
textarea,
input {
    height: 56px;
    padding: 0 25px 0 25px;
    padding-right: 50px;
    border: 1px solid $gray-color;
    color: $body-color;
    background-color: $white-color;
    font-size: 14px;
    width: 100%;
    font-family: $body-font; 
    font-weight: 400; 
    border-radius: 8px;
	transition: 0.4s ease-in-out; 

    &:focus {
        outline: 0;
        box-shadow: none;
        border-color: $theme-color; 
        background-color: $white-color;   
    }

    @include inputPlaceholder { 
        color: $body-color;   
    }
}



.form-select,
select {
    display: block;
    width: 100%;
    line-height: 1.5;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 26px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    &.style2 {
        background-image: url("data:image/svg+xml,%3Csvg width='11' height='6' viewBox='0 0 11 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.87109 1.71094L5.71484 5.62109C5.56901 5.7487 5.41406 5.8125 5.25 5.8125C5.08594 5.8125 4.9401 5.7487 4.8125 5.62109L0.65625 1.71094C0.382812 1.40104 0.373698 1.09115 0.628906 0.78125C0.920573 0.507812 1.23047 0.498698 1.55859 0.753906L5.25 4.25391L8.96875 0.753906C9.27865 0.498698 9.57943 0.498698 9.87109 0.753906C10.1263 1.08203 10.1263 1.40104 9.87109 1.71094Z' fill='%238B929C'/%3E%3C/svg%3E");
    }
}

textarea.form-control,
textarea {
    min-height: 154px;
    padding-top: 16px;
    padding-bottom: 17px;
   
}

.form-group {
    margin-bottom: var(--bs-gutter-x);
    position: relative;

    > i ,
    > img {
        display: inline-block;
        position: absolute;
        right: 35px;
        top: 17px; 
        font-size: 14px;
        color: $body-color;
        &.fa-envelope {
            padding-top: 1px;
        }
        &.fa-comment {
            margin-top: -2px;
        }
        &.fa-chevron-down {
            width: 17px;
            background-color: $smoke-color2;
        }
    }

    &.has-label {
        > i {
            top: 50px;
        }
    }
}

[class*="col-"].form-group {
    > i {
        right: calc((var(--bs-gutter-x) / 2) + 25px);
    }
}

.form-rounded-10 {
    .form-control,
    .form-select {
        border-radius: 10px !important;
    }
    .th-btn {
        border-radius: 10px;
    }
}

option {
    &:checked,
    &:focus,
    &:hover {
        background-color: $theme-color;
        color: $white-color;
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="checkbox"] {
    visibility: hidden;
    opacity: 0;
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    display: none;
  
    &:checked {
      ~label {
  
        &:before {
          content: "\f00c";
          color: $white-color;
          background-color: $theme-color;
          border-color: $theme-color;
        }
      }
    }
  
    ~label {
      position: relative;
      padding-left: 30px;
      cursor: pointer;
      display: block;
  
      &:before {
        content: '';
        font-family: $icon-font;
        font-weight: 700;
        position: absolute;
        left: 0px;
        top: 3.5px;
        background-color: $white-color;
        border: 1px solid $border-color;
        height: 18px;
        width: 18px;
        line-height: 18px;
        text-align: center;
        font-size: 12px;
      }
    }
  }
  
  
  input[type="radio"] {
    visibility: hidden;
    opacity: 0;
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    display: none;
  
  
    ~label {
      position: relative;
      padding-left: 30px;
      cursor: pointer;
      line-height: 1;
      display: inline-block;
      font-weight: 600;
      margin-bottom: 0;
  
  
      &::before {
        content: '\f111';
        position: absolute;
        font-family: $icon-font;
        left: 0;
        top: -2px;
        width: 20px;
        height: 20px;
        padding-left: 0;
        font-size: 0.6em;
        line-height: 19px;
        text-align: center;
        border: 1px solid $theme-color;
        border-radius: 100%;
        font-weight: 700;
        background: $white-color;
        color: transparent;
        transition: all 0.2s ease;
      }
    }
  
    &:checked {
      ~label {
        &::before {
          border-color: $theme-color;
          background-color: $theme-color;
          color: $white-color;
        }
      }
    }
  
  }
  
  label {
    margin-bottom: 0.5em;  
    margin-top: -0.3em;
    display: block;
    color: $title-color;
    font-family: $body-font;
    font-size: 16px;
  }

textarea.is-invalid,
select.is-invalid,
input.is-invalid,
.was-validated input:invalid {
    border: 1px solid $error-color !important;
    background-position: right calc(0.375em + 0.8875rem) center;
    background-image: none;

    &:focus {
        outline: 0;
        box-shadow: none;
    }
}

textarea.is-invalid {
    background-position: top calc(0.375em + 0.5875rem) right
        calc(0.375em + 0.8875rem);
}

.row.no-gutters > .form-group {
    margin-bottom: 0;
}

.form-messages {
    display: none;

    &.mb-0 * {
        margin-bottom: 0;
    }

    &.success {
        color: $success-color;
        display: block;
    }

    &.error {
        color: $error-color;
        display: block;
    }

    pre {
        padding: 0;
        background-color: transparent;
        color: inherit;
    }
}

input[type=date] {
    padding: 0 25px 0 25px;
    position: relative;
}
input[type=date]::-webkit-calendar-picker-indicator {
    background: transparent;
    position: absolute;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 1;
    cursor: pointer;  
}
[class*="col-"].form-group {
    > i {
        right: calc((var(--bs-gutter-x) / 2) + 25px);
    }
    .form-icon-left {
        left: calc((var(--bs-gutter-x) / 2) + 30px);
        right: auto;
    }
}
input[type=time] {
    padding: 0 30px;
    position: relative;
}
  
input[type=time]::-webkit-calendar-picker-indicator {
    background: transparent;
    position: absolute;
    left: 0px;
    height: 100%;
    width: 100%; 
    z-index: 1;
    cursor: pointer;
}