/*****
 CSS Versions of SCSS include: _custom-forms
*****/
/*
// Checkboxes and radios
//
// Base class takes care of all the key behavioral aspects.
*/
.custom-control {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
}

.custom-control-inline {
  display: -ms-inline-flexbox;
  display: inline-flex;
}

.custom-control-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  background-color: #007bff;
}

.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-control-input:active ~ .custom-control-label::before {
  color: #fff;
  background-color: #b3d7ff;
}

.custom-control-input:disabled ~ .custom-control-label {
  color: #6c757d;
}

.custom-control-input:disabled ~ .custom-control-label::before {
  background-color: #e9ecef;
}

/*
// Custom control indicators
//
// Build the custom controls out of pseudo-elements.
*/
.custom-control-label {
  position: relative;
  margin-bottom: 0;
}

.custom-control-label::before {
  position: absolute;
  top: 0;
  left: -1.5rem;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  content: "";
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #dee2e6;
}

.custom-control-label::after {
  position: absolute;
  top: 0;
  left: -1.5rem;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 65% 65%;
}

/*
// Checkboxes
//
// Tweak just a few things for checkboxes.
*/
.custom-checkbox .custom-control-label::before {
  border-radius: 0.25rem;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #ddd;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23666' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
}

.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
  background-color: #ddd;
}

.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23666' d='M0 2h4'/%3E%3C/svg%3E");
}

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background-color: rgba(0, 123, 255, 0.5);
}

.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before {
  background-color: rgba(0, 123, 255, 0.5);
}

/*
// Radios
//
// Tweak just a few things for radios.
*/
.custom-radio .custom-control-label::before {
  border-radius: 50%;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #007bff;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background-color: rgba(0, 123, 255, 0.5);
}

/*
// Select
//
// Replaces the browser default select with a custom one, mostly pulled from
// https://primer.github.io/.
//
*/
.custom-select {
  display: inline-block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  line-height: 1.5;
  color: #495057;
  vertical-align: middle;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.custom-select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(128, 189, 255, 0.5);
}
/*
// For visual consistency with other platforms/browsers,
// suppress the default white text on blue background highlight given to
// the selected option text when the (still closed) <select> receives focus
// in IE and (under certain conditions) Edge.
// See https://github.com/twbs/bootstrap/issues/19398.
*/
.custom-select:focus::-ms-value {
  color: #495057;
  background-color: #fff;
}

.custom-select[multiple], .custom-select[size]:not([size="1"]) {
  height: auto;
  padding-right: 0.75rem;
  background-image: none;
}

.custom-select:disabled {
  color: #6c757d;
  background-color: #e9ecef;
}

.custom-select::-ms-expand {
  opacity: 0;
}

.custom-select-sm {
  height: calc(1.8125rem + 2px);
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 75%;
}

.custom-select-lg {
  height: calc(2.875rem + 2px);
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 125%;
}

/*
// File
//
// Custom file input.
*/
.custom-file {
  position: relative;
  display: inline-block;
  width: 100%;
  height: calc(2.25rem + 2px);
  margin-bottom: 0;
}

.custom-file-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(2.25rem + 2px);
  margin: 0;
  opacity: 0;
}

.custom-file-input:focus ~ .custom-file-label {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-file-input:focus ~ .custom-file-label::after {
  border-color: #80bdff;
}

.custom-file-input:disabled ~ .custom-file-label {
  background-color: #e9ecef;
}

.custom-file-input:lang(en) ~ .custom-file-label::after {
  content: "Browse";
}

.custom-file-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.custom-file-label::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  height: 2.25rem;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  color: #495057;
  content: "Browse";
  background-color: #e9ecef;
  border-left: 1px solid #ced4da;
  border-radius: 0 0.25rem 0.25rem 0;
}

/*
// Range
//
// Style range inputs the same across browsers. Vendor-specific rules for pseudo
// elements cannot be mixed. As such, there are no shared styles for focus or
// active states on prefixed selectors.
*/
.custom-range {
  width: 100%;
  padding-left: 0;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.custom-range:focus {
  outline: none;
}

.custom-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-range:focus::-ms-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-range::-moz-focus-outer {
  border: 0;
}

.custom-range::-webkit-slider-thumb {
  width: 1rem;
  height: 1rem;
  margin-top: -0.25rem;
  background-color: #007bff;
  border: 0;
  border-radius: 1rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
}

@media screen and (prefers-reduced-motion: reduce) {
  .custom-range::-webkit-slider-thumb {
    transition: none;
  }
}

.custom-range::-webkit-slider-thumb:active {
  background-color: #b3d7ff;
}

.custom-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background-color: #dee2e6;
  border-color: transparent;
  border-radius: 1rem;
}

.custom-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background-color: #007bff;
  border: 0;
  border-radius: 1rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -moz-appearance: none;
  appearance: none;
}

@media screen and (prefers-reduced-motion: reduce) {
  .custom-range::-moz-range-thumb {
    transition: none;
  }
}

.custom-range::-moz-range-thumb:active {
  background-color: #b3d7ff;
}

.custom-range::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background-color: #dee2e6;
  border-color: transparent;
  border-radius: 1rem;
}

.custom-range::-ms-thumb {
  width: 1rem;
  height: 1rem;
  margin-top: 0;
  margin-right: 0.2rem;
  margin-left: 0.2rem;
  background-color: #007bff;
  border: 0;
  border-radius: 1rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
}

@media screen and (prefers-reduced-motion: reduce) {
  .custom-range::-ms-thumb {
    transition: none;
  }
}

.custom-range::-ms-thumb:active {
  background-color: #b3d7ff;
}

.custom-range::-ms-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background-color: transparent;
  border-color: transparent;
  border-width: 0.5rem;
}

.custom-range::-ms-fill-lower {
  background-color: #dee2e6;
  border-radius: 1rem;
}

.custom-range::-ms-fill-upper {
  margin-right: 15px;
  background-color: #dee2e6;
  border-radius: 1rem;
}

.custom-control-label::before,
.custom-file-label,
.custom-select {
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/*
// Modifiers: Lead Tracker
*/
.ui-form .form-group {
    display: flex;
    flex-direction: column;
}
.ui-form .form-group label {
    order: 0;
    margin-bottom: 2px;
    cursor: pointer;
    padding-left: 0.8em;
}
.ui-form .form-group * {
    order: 1;
}
.ui-form label, .label {
    font-size: 0.75rem;
    color: #999;
}
.ui-form .form-control, .ui-form .custom-select{
    background: transparent;
    padding: 5px;
    color: #555;
    border-color: #dedede;
    border-radius: 0;
    box-shadow: none;
}
.ui-form .custom-select {
    cursor: pointer;
    background: transparent url('https://mapledrawhubb.com/static.infragistics.com/marketing/Website/css/background/ui-form-select-dropdown.png?v=201706271258') no-repeat right 7px center !important;
    font-size: 1rem;
}
.ui-form input::placeholder, .ui-form textarea::placeholder {
    color: #ccc;
}
.ui-form .form-control:focus, .ui-form .custom-select:focus {
    box-shadow: none;
    border-color: #b4b4b4;
}
.ui-form .form-control:focus ~ label {
    color: #333;
}
.ui-form textarea.form-control {
    border-width: 1px;
    margin-top: 0.75rem;
}
.ui-form .form-control.required ~ label::after {
    content: "*";
    margin-left: 4px;
    color: currentColor;
    display: inline-block;
    font-weight: bold;
}

.ui-form__required-note {
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: block;
    position: relative;
    padding-left: 8px;
}

.ui-form__required-note::after {
    color: currentColor;
    display: inline-block;
    font-weight: bold;
    content: "*";
    position: absolute;
    left: 0;
}
/*Light theme*/
.ui-form[data-form-theme*="light"] .form-control, .ui-form[data-form-theme*="light"] .custom-select {
    border-color: #999;
}
.ui-form[data-form-theme*="light"] .form-control:focus, .ui-form[data-form-theme*="light"] .custom-select:focus {
    border-color: #333;
}
.ui-form[data-form-theme*="light"] .form-control.fieldInvalid, .ui-form[data-form-theme*="light"] .custom-select.fieldInvalid,
.ui-form[data-form-theme*="light"] .form-control.fieldInvalid:focus, .ui-form[data-form-theme*="light"] .custom-select.fieldInvalid:focus {
    border-color: red;
}
/*Dark theme*/
.ui-form[data-form-theme*="dark"] .ui-form__required-note {
    color: #ccc;
}
.ui-form[data-form-theme*="dark"] .form-group label {color: #ddd;}
.ui-form[data-form-theme*="dark"] .form-control, .ui-form[data-form-theme*="dark"] .custom-select {
    border-color: #dedede;
    background-color: white;
}
.ui-form[data-form-theme*="dark"] .form-control:focus, .ui-form[data-form-theme*="dark"] .custom-select:focus {
    border-color: #fff;
}
.ui-form[data-form-theme*="dark"] .form-control:focus ~ label, .ui-form[data-form-theme*="dark"] .custom-select:focus ~ label {
    color: #fff;
}
.ui-form[data-form-theme*="dark"] input::placeholder, .ui-form[data-form-theme*="dark"] textarea::placeholder {
    color: #ccc;
}
.ui-form[data-form-theme*="dark"] .form-control.fieldInvalid, .ui-form[data-form-theme*="dark"] .custom-select.fieldInvalid,
.ui-form[data-form-theme*="dark"] .form-control.fieldInvalid:focus, .ui-form[data-form-theme*="dark"] .custom-select.fieldInvalid:focus {
    border-color: #f7a5b0;
}
.ui-form[data-form-theme*="dark"] .form-control.fieldInvalid ~ label, .ui-form[data-form-theme*="dark"] .custom-select.fieldInvalid ~ label,
.ui-form[data-form-theme*="dark"] .form-control.fieldInvalid:focus ~ label, .ui-form[data-form-theme*="dark"] .custom-select.fieldInvalid:focus ~ label {
    color: #f5d1d6;
}

/* Label like placeholder start */	
.ui-form.placeholder-label-field .form-group input[type="text"],	
.ui-form.placeholder-label-field .form-group input[type="email"],	
.ui-form.placeholder-label-field .form-group input[type="tel"],	
.ui-form.placeholder-label-field .form-group input[type="url"] {	
  color: #6c757d;	
}	
.ui-form.placeholder-label-field .form-group input[type="text"]::placeholder,	
.ui-form.placeholder-label-field .form-group input[type="email"]::placeholder,	
.ui-form.placeholder-label-field .form-group input[type="tel"]::placeholder,	
.ui-form.placeholder-label-field .form-group input[type="url"]::placeholder {	
  color: #6c757d;	
}
/* Label like placeholder end */

/*Modal theme*/
.ui-form[data-form-theme*="modal-layout"] .form-row:not(.name) .form-group {
    max-width: 100%;
    flex: 0 0 100%;
}

.ui-form[data-form-theme*="modal-layout"] .submit {
    margin: 0 auto;
    display: block;
}

@media screen and (prefers-reduced-motion: reduce) {
  .custom-control-label::before,
  .custom-file-label,
  .custom-select {
    transition: none;
  }
}
