/*========== Start Form Element  ==========*/
// Check Box Style
.custom-control-input:disabled~.custom-control-label::before,
.custom-control-label::before {
  background-color: $main-color;
  border-color: $base-color4;
}

.yoo-checkbox-wrap.yoo-style1 {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: $base-color3;
  line-height: 1.3em;

  .yoo-checkbox {
    margin-right: 8px;
  }
}

.yoo-checkbox-wrap.yoo-style1.yoo-color1 {
  color: $base-color1;
}

.yoo-checkbox-text.yoo-style1 {
  font-size: 14px;
}

.yoo-signup-img.yoo-style1 {
  padding: 0 15px;
}

.yoo-checkbox-wrap {
  display: flex;
  align-items: center;
  position: relative;

  .yoo-checkbox {
    margin-right: 5px;
  }
}

.yoo-checkbox.yoo-style1,
.yoo-checkbox.yoo-style2,
.yoo-checkbox.yoo-style3 {
  display: block;
  height: 16px;
  width: 16px;
  position: relative;
  overflow: hidden;
  flex: none;

  [type="checkbox"]:disabled+.yoo-checkbox-icon {
    opacity: 0.25;
  }

  input {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
    left: 0;
  }

  .yoo-checkbox-icon {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    border: 1px solid $base-color4;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

    i {
      opacity: 0;
    }
  }

  [type="checkbox"]:checked+.yoo-checkbox-icon {

    i {
      opacity: 1;
      color: #fff;
    }
  }

  &.yoo-color1 {
    [type="checkbox"]:checked+.yoo-checkbox-icon {
      background-color: $accent-color1;
      border-color: $accent-color1;
    }
  }

  &.yoo-color2 {
    [type="checkbox"]:checked+.yoo-checkbox-icon {
      background-color: $accent-color2;
      border-color: $accent-color2;
    }
  }

  &.yoo-color3 {
    [type="checkbox"]:checked+.yoo-checkbox-icon {
      background-color: $accent-color3;
      border-color: $accent-color3;
    }
  }

  &.yoo-color4 {
    [type="checkbox"]:checked+.yoo-checkbox-icon {
      background-color: $accent-color4;
      border-color: $accent-color4;
    }
  }

  &.yoo-color5 {
    [type="checkbox"]:checked+.yoo-checkbox-icon {
      background-color: $accent-color5;
      border-color: $accent-color5;
    }
  }

  &.yoo-color6 {
    [type="checkbox"]:checked+.yoo-checkbox-icon {
      background-color: $accent-color6;
      border-color: $accent-color6;
    }
  }
}

.yoo-checkbox-list {
  display: flex;
  flex-wrap: wrap;

  .yoo-checkbox-wrap {
    margin-right: 30px;

    &:last-child {
      margin-right: 0;
    }
  }
}

.yoo-checkbox.yoo-style2 {
  .yoo-checkbox-icon {
    border-width: 2px;
    border-color: $base-color3;

  }

  &.yoo-size1 {
    height: 18px;
    width: 18px;
  }
}

.yoo-checkbox.yoo-style3 {
  height: 12px;
  width: 12px;

  .yoo-checkbox-icon {
    border-radius: 2px;
    border-color: $base-color3;
    font-size: 10px;
    padding-bottom: 0;
  }

}

/** Custom Select **/

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.yoo-custom-select-wrapper {
  position: relative;
  user-select: none;
}

.yoo-custom-select-wrapper select {
  display: none;
}

.yoo-custom-select {
  cursor: pointer;
  max-width: 100%;
  padding: 0;
  line-height: 1.5;
  vertical-align: middle;
  background: transparent;
  border-radius: 0;
  appearance: none;
  display: block;
  position: relative;
  border-radius: 2px;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  padding-right: 17px;
  min-height: 29px;
}

.custom-select-trigger:hover {
  color: $base-color2;
}

.custom-select-trigger:after {
  content: "";
  position: absolute;
  right: 0px;
  top: 49%;
  transform: translateY(-50%);
  font-size: 9px;
  transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid $base-color2;
  border-radius: 4px;
}

.yoo-custom-select.opened .custom-select-trigger:after,
.yoo-toggle-areea.yoo-active .yoo-toggle-btn i.fa-sort-desc {
  transform: translateY(-50%) rotate(-180deg);
}

.custom-options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0px;
  right: 0;
  margin-top: 0px;
  background-color: $main-color;
  transition: all 0.4s ease-in-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-15px);
  z-index: 10;
  border: 1px solid $base-color4;
  border-radius: 4px;
  border-bottom-width: 2px;
  max-height: 285px;
  overflow: auto;
  width: max-content;
}

.yoo-custom-select.opened .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  position: relative;
  display: block;
  padding: 7px 15px;
  border-bottom: 1px solid $base-color4;
  color: $base-color2;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  background: $main-color;
  font-size: 13px;
}

.custom-option:last-child {
  border: none;
}

.custom-option:hover {
  background: $base-color5;
}

/*Style Two*/
.yoo-form-field.yoo-style1 .custom-select-trigger {
  border: 1px solid $base-color4;
  background-color: $main-color;
  font-weight: 400;
}

.yoo-form-field.yoo-style1 .yoo-custom-select.opened .custom-select-trigger {
  border-color: #13ce66;
}

.yoo-custom-select-wrap.yoo-style2 {
  .custom-select-trigger {
    min-height: 36px;
    border: 1px solid $base-color4;
    padding: 3px 15px;
    border-radius: 4px;
    font-size: 14px;
    color: $base-color1;

    &:after {
      right: 15px;
      border-top: 5px solid $base-color1;
    }
  }

  .custom-options {
    width: 100%;
  }

  .custom-option {
    font-size: 14px;
  }

  &.yoo-color1 {
    .custom-select-trigger {
      color: $base-color3;

      &:after {
        border-top: 5px solid $base-color3;
      }
    }
  }
}

/*End Custom Select*/
.yoo-login-wrap.yoo-style1 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 0;
}

.yoo-login-wrap.yoo-style2 {
  display: flex;

  .yoo-left-login {
    flex: none;
    max-width: 600px;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 60px;

    .yoo-footer-nav {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 11px 0;
    }
  }

  .yoo-left-right {
    flex: 1;
  }
}

.yoo-login-wrap.yoo-style3 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 100vh;
  padding: 45px 0;

  .yoo-left-login,
  .yoo-left-right {
    padding: 15px;
  }
}

.yoo-login-image {
  min-width: 460px;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  position: relative;

  &.yoo-height1 {
    height: 573px;
  }

  &.yoo-height2 {
    height: 620px;
  }

  .yoo-login-image-text {
    color: #fff;
    padding: 50px;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));

    p {
      font-size: 16px;
      line-height: 1.6em;
      margin-bottom: 9px;
    }

    span {
      display: block;
      font-size: 14px;
      opacity: 0.8;
    }
  }
}

.yoo-forget-pass-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

// Start Form Style
input:focus,
textarea:focus {
  outline: none;
}

input,
textarea {
  border: 1px solid $base-color4;
  font-size: 14px;
  line-height: 1.6em;
  padding: 6px 15px;
  width: 100%;
  display: block;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: $main-color;

  &:focus {
    border-color: $base-color3;
  }
}

input[type="checkbox"],
input[type="radio"] {
  width: initial;
}

textarea {
  height: 147px;
}

.form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: $base-color3;
}

.form-control::-moz-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder {
  color: $base-color3;
}

.form-control:-ms-input-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: $base-color3;
}

.form-control:-moz-placeholder,
input:-moz-placeholder,
textarea:-moz-placeholder {
  color: $base-color3;
}

form .row {
  margin-top: 0px;
}

form .row>div {
  margin-top: 0px;
}

.yoo-form-separator {
  overflow: hidden;
  display: block;
  text-align: center;
  color: $base-color3;
  position: relative;

  &:before,
  &:after {
    content: '';
    position: absolute;
    height: 1px;
    width: 50%;
    background-color: $base-color4;
    top: 9px;
  }

  &:before {
    left: -16px;
  }

  &:after {
    right: -16px;
  }
}

.yoo-form.yoo-style1,
.yoo-form.yoo-style2 {
  .yoo-form-title {
    font-size: 32px;
    margin-bottom: 0;
  }

  .yoo-form-subtitle {
    font-size: 16px;
    line-height: 1.6em;
  }

  .row {
    margin-right: -7px;
    margin-left: -7px;
    margin-top: -15px;

    [class*=col-] {
      margin-top: 15px;
      padding-left: 7px;
      padding-right: 7px;
    }
  }
}

.yoo-form.yoo-style2 {
  max-width: 460px;
  width: 100%;
  background-color: $main-color;
  border-radius: 4px;
  margin: auto;
  padding: 50px;
  text-align: center;
}

.yoo-social-area.yoo-style1 {
  li:not(:last-child) {
    margin-bottom: 10px;
  }
}

.yoo-form-btn.yoo-style1 {
  width: 100%;
  padding: 0px;
  height: 36px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6em;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  i {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  span {
    flex: 1;
  }

  &:hover {
    opacity: 0.85;
  }
}

.yoo-form-btn.yoo-style1 {
  &.yoo-color1 {
    background-color: $accent-color2;
    color: rgba(255, 255, 255, 0.9);
  }

  &.yoo-colo2 {
    background-color: $accent-color2;
    color: rgba(255, 255, 255, 0.9);
  }

  &.yoo-colo3 {
    background-color: $accent-color4;
    color: rgba(255, 255, 255, 0.9);
  }
}

.yoo-form-btn.yoo-style2 {
  &.yoo-color1 {
    &:before {
      background-color: $base-color3;
    }

    &:after {
      background-color: $base-color2;
    }
  }
}

.yoo-form-btn.yoo-style2 {
  display: inline-block;
  position: relative;
  line-height: 1.35em;

  &:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: $base-color2;
  }

  &:after {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    transform-origin: right center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleX(0);
    background-color: $base-color1;
  }
}

.yoo-checkbox-text {
  .yoo-form-btn.yoo-style2 {

    &:before {
      background-color: $base-color4;
    }
  }
}

.yoo-form-btn.yoo-style2:hover:after {
  opacity: 1;
  transform-origin: left center;
  transform: scaleX(1);
}

.yoo-form-btn.yoo-style2.yoo-type1:before,
.yoo-form-btn.yoo-style2.yoo-type1:after {
  height: 1px;
}

.yoo-form-field-wrap.yoo-style1 {
  display: flex;
  align-items: flex-start;

  .yoo-form-field-label {
    flex: none;
    width: 160px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.2em;
    padding: 0px 20px;
    text-align: right;
    min-height: 36px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .yoo-form-field {
    flex: 1;
    width: 100%;
  }

  .yoo-with-left-icon {
    position: relative;

    .yoo-form-field-left-icon {
      position: absolute;
      font-size: 21px;
      display: flex;
      height: 100%;
      align-items: center;
      width: 40px;
      justify-content: center;
      color: $base-color3;
    }

    input {
      padding-left: 45px;
    }
  }
}

.yoo-profile-setting-container .yoo-form-field-wrap.yoo-style1 .yoo-form-field-label {
  align-items: flex-start;
}

.yoo-form-field-wrap.yoo-style2 {
  .yoo-form-field-label {
    font-size: 14px;
    line-height: 1.6em;
    margin-bottom: 2px;
    display: block;
  }

}

.yoo-form-field.yoo-with-left-text {
  position: relative;

  .yoo-form-field-left-text {
    position: absolute;
    left: 1px;
    top: 1px;
    height: calc(100% - 2px);
    width: 35px;
    background-color: $base-color5;
    border-right: 1px solid $base-color4;
    border-radius: 4px 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: $base-color3;
  }

  input {
    padding-left: 48px;
  }
}

.yoo-form-field.yoo-with-right-text {
  position: relative;

  .yoo-form-field-right-text {
    position: absolute;
    right: 1px;
    height: calc(100% - 2px);
    top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    width: 52px;
    border-left: 1px solid $base-color4;
    background-color: $base-color5;
    border-radius: 0 4px 4px 0;
    color: $base-color3;
  }

  input {
    padding-right: 67px;
  }
}

.yoo-form-field.yoo-color1 input {
  color: $base-color1;
}

.yoo-form-field-note {
  font-size: 13px;
  color: $base-color3;
  margin-top: 5px;
}

// Start radio Button

.yoo-radio-wrap.yoo-style1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  .yoo-radio {
    margin-bottom: 4px;
    padding-left: 22px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    display: block;
    line-height: 1.6em;
    margin-bottom: 0;
    margin-right: 15px;

    &:last-child {
      margin-right: 0;
    }

    input {
      position: absolute;
      left: -9999px;
    }

    i {
      position: absolute;
      top: 50%;
      margin-top: -6px;
      left: 0;
      display: block;
      width: 12px;
      height: 12px;
      outline: 0;
      border: 1px solid $base-color3;
      transition: all 0.3s ease;
      border-radius: 50%;
    }

    input:checked+i {
      border-color: $accent-color2;
      border-width: 4px;
    }
  }

  &.yoo-type1 {
    .yoo-radio {
      margin-right: 25px;

      &:last-child {
        margin-right: 0;
      }
    }
  }
}

// End radio Button

// Start Switch Style
.yoo-switch-wrap.yoo-style1 {
  display: flex;
  justify-content: space-between;

  .yoo-switch-text {
    font-size: 14px;
  }
}

.yoo-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background-color: $base-color3;
  cursor: pointer;
  transition: all 0.3s ease;

  span {
    display: block;
    height: 16px;
    width: 16px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0px 2px 0.99px 0.01px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
  }

  &.yoo-active {
    background-color: $accent-color3;

    span {
      left: 18px;
    }
  }
}

.form-control {
  font-size: 14px;
  border-color: $base-color4;
  background-color: $main-color;
}

.form-text {
  font-size: 12px;
  color: $base-color3 !important;
  line-height: 1.6em;
}

.invalid-feedback,
.valid-feedback {
  font-size: 12px;
  line-height: 1.6em;
}

.form-group label {
  margin-bottom: 5px;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: none;
}

.input-group-text {
  padding: 3px 10px;
  line-height: 1.6em;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.form-control.is-valid:focus,
.was-validated .form-control:valid:focus,
.form-control:focus {
  box-shadow: none;
}

.form-control:focus {
  color: $base-color2;
}

.input-group-text {
  color: $base-color2;
  background-color: $base-color5;
  border-color: $base-color4;
}

.custom-control-label::before {
  border-color: $base-color4;
}

.form-control:focus {
  color: $base-color2;
  background-color: $main-color;
  border-color: $accent-color6;
  box-shadow: none;
}

.input-group .btn {
  padding: 0 15px;
  font-weight: 400;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle {
  background-color: $accent-color6;
  border-color: $accent-color6;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: $accent-color4;
}

.invalid-feedback,
.form-check-input.is-invalid~.form-check-label,
.was-validated .form-check-input:invalid~.form-check-label {
  color: $accent-color4;
}

.dropdown-item {
  color: $base-color2;
}

.custom-control-input:checked~.custom-control-label::before {
  border-color: $accent-color6;
  background-color: $accent-color6;
}

.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: $accent-color3;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: $base-color4;
}

.custom-control-label::after {
  left: -24px;
}

.yoo-cs-input-btn {
  position: relative;
}

.yoo-cs-input-btn:before {
  content: '';
  position: absolute;
  height: 50px;
  width: 100px;
  background-color: $main-color;
  left: 5px;
  bottom: 1px;
  pointer-events: none;
}

.yoo-cs-input-btn span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 80px;
  height: 28px;
  border: 1px solid $base-color4;
  text-align: center;
  line-height: 26px;
  font-size: 13px;
  border-radius: 4px;
  font-weight: 500;
  background: $base-color5;
  pointer-events: none;
  transition: all 0.3s ease;
}

.yoo-cs-input-btn:hover span {
  background-color: $base-color6;
}

.form-control-file:hover {
  cursor: pointer;
}

.form-control-file {
  padding-top: 15px;
  padding-bottom: 15px;
}

// End Switch Style
@media screen and (max-width: 991px) {
  .yoo-login-wrap.yoo-style3 {
    flex-direction: column;
  }
}

@media screen and (max-width: 575px) {
  .yoo-login-image {
    min-width: 100%;
  }

  .yoo-login-image-text br {
    display: none;
  }

  .yoo-form-field-wrap.yoo-style1 {
    flex-direction: column;
  }

  .yoo-form-field-wrap.yoo-style1 .yoo-form-field-label {
    width: 100%;
    padding-right: 0;
    justify-content: flex-start;
    padding-left: 0;
  }
}

/*========== End Form Element  ==========*/
