/*  */
.learny-form-field-row {
  padding: 20px 0;
  font-size: 14px;
  line-height: 1.3;
}

.learny-form-separator {
  border-bottom: 1px solid #e4e4e4;
}

.learny-form-field-label {
  display: block;
  float: left;
  width: 200px;
}

.learny-form-field-label label {
  display: block;
  font-weight: 500;
}

.learny-form-field {
  display: block;
  margin: 0 0 0 200px;
  max-width: 800px;
}

.learny-form-field-row input[type="text"],
.learny-form-field-row input[type="email"],
.learny-form-field-row input[type="number"],
.learny-form-field-row input[type="password"],
.learny-form-field-row textarea,
.learny-form-field-row .tutor-field-type-slider {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #333;
  display: inline-block;
  vertical-align: middle;
  padding: 7px 12px;
  margin: 0 10px 0 0;
  width: 400px;
  min-height: 35px;
}

.learny-form-field p.learny-form-field-description {
  font-style: italic;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.learny-form-field input[type=checkbox]+label,
.learny-form-field input[type=radio]+label {
  font-size: 14px;
  line-height: 21px;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  margin-left: 4px;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {

  .learny-form-field input[type=checkbox],
  .learny-form-field input[type=radio] {
    --active: #275EFE;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, .3);
    --border: #BBC1E1;
    --border-hover: #275EFE;
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
  }

  .learny-form-field input[type=checkbox]:after,
  .learny-form-field input[type=radio]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
  }

  .learny-form-field input[type=checkbox]:checked,
  .learny-form-field input[type=radio]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: .3s;
    --d-t: .6s;
    --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
  }

  .learny-form-field input[type=checkbox]:disabled,
  .learny-form-field input[type=radio]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }

  .learny-form-field input[type=checkbox]:disabled:checked,
  .learny-form-field input[type=radio]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
  }

  .learny-form-field input[type=checkbox]:disabled+label,
  .learny-form-field input[type=radio]:disabled+label {
    cursor: not-allowed;
  }

  .learny-form-field input[type=checkbox]:hover:not(:checked):not(:disabled),
  .learny-form-field input[type=radio]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }

  .learny-form-field input[type=checkbox]:focus,
  .learny-form-field input[type=radio]:focus {
    box-shadow: 0 0 0 var(--focus);
  }

  .learny-form-field input[type=checkbox]:not(.learny-switch),
  .learny-form-field input[type=radio]:not(.learny-switch) {
    width: 21px;
  }

  .learny-form-field input[type=checkbox]:not(.learny-switch):after,
  .learny-form-field input[type=radio]:not(.learny-switch):after {
    opacity: var(--o, 0);
  }

  .learny-form-field input[type=checkbox]:not(.learny-switch):checked,
  .learny-form-field input[type=radio]:not(.learny-switch):checked {
    --o: 1;
  }

  .learny-form-field input[type=checkbox]+label,
  .learny-form-field input[type=radio]+label {
    font-size: 14px;
    line-height: 21px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin-left: 4px;
  }

  .learny-form-field input[type=checkbox]:not(.learny-switch) {
    border-radius: 7px;
  }

  .learny-form-field input[type=checkbox]:not(.learny-switch):after {
    width: 5px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 7px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
  }

  .learny-form-field input[type=checkbox]:not(.learny-switch):checked {
    --r: 43deg;
  }

  .learny-form-field input[type=checkbox].learny-switch {
    width: 38px;
    border-radius: 11px;
  }

  .learny-form-field input[type=checkbox].learny-switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
  }

  .learny-form-field input[type=checkbox].learny-switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
  }

  .learny-form-field input[type=checkbox].learny-switch:disabled:not(:checked):after {
    opacity: 0.6;
  }

  .learny-switch[type=checkbox]:checked::before {
    display: none;
  }

  .learny-form-field [type=checkbox]:checked::before {
    display: none;
  }

  .learny-form-field input[type=radio] {
    border-radius: 50%;
  }

  .learny-form-field input[type=radio]:after {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--active-inner);
    opacity: 0;
    transform: scale(var(--s, 0.7));
  }

  .learny-form-field input[type=radio]:checked {
    --s: .5;
  }
}


.learny-form-field input:before,
.learny-form-field input:after {
  box-sizing: inherit;
}

.learny-full-width {
  width: 100% !important;
}

/* RAW SELECT */
.learny-og-select {
  width: 100%;
  min-height: 40px !important;
}

/* MODAL FORM INPUTS */

.learny-form-group {
  margin-bottom: 1rem;
}

.learny-form-group label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #3f4254 !important;
}

.learny-form-group input[type="text"],
.learny-form-group input[type="number"],
.learny-form-group input[type="email"],
.learny-form-group input[type="password"],
.learny-form-group input[type="date"] {
  display: block;
  margin-bottom: 0.5rem;
  width: 100%;
  border: 1px solid #e4e6ef !important;
  padding: 5px 10px !important;
  color: #3f4254 !important;
  font-weight: 300;
  font-size: 13px;
  box-shadow: 0 0 0 0px #007cba !important;
  border-radius: 6px !important;
}

.learny-form-actions {
  float: right;
  margin: 20px;
}

.learny-form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  line-height: 2.2;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.learny-form-group textarea {
  padding: 10px 10px !important;
  color: #3f4254 !important;
  font-weight: 300;
  font-size: 13px;
  border: 1px solid #e4e6ef !important;
}

.learny-form-group textarea:focus {
  border: 1px solid #69b3ff !important;
  box-shadow: 0 0 0 0px #007cba;
  outline: 0px solid transparent;
}

textarea.readonly,
textarea[readonly] {
  background-color: #fff;
}