/* Style for regular inputs */
.reg-input {
  position: relative;
}
.reg-input .reg-dropdown {
  width: 100%;
}
.reg-input .label {
  text-align: left;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  color: #1C1C1E;
}
.reg-input input,
input.reg-input {
  width: 100%;
  height: 38px;
  font-size: 14px;
  font-weight: normal;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 0 15px 0 15px;
  outline: none;
  color: #1C1C1E;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: none;
  border: 1px solid #eceff1;
}
.reg-input.small input,
input.reg-input.small {
  height: 30px;
  padding: 0 5px;
  max-width: 40px;
  text-align: center;
}
.reg-input.small.normal input,
input.reg-input.small.normal {
  text-align: left;
  max-width: none;
}
.reg-input textarea,
textarea.reg-input {
  resize: none;
  outline: none;
  border: 1px solid #eceff1;
  box-shadow: none;
  border-radius: 5px;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: normal;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 15px 15px;
  color: #1C1C1E;
  width: 100%;
  height: 120px;
  display: block;
}
.reg-input.bold {
  font-weight: bold;
}
.reg-input textarea.y-resizable {
  resize: vertical;
}
.reg-input input,
input.reg-input,
.reg-input textarea,
textarea.reg-input {
  -webkit-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}
.reg-input input:hover,
input.reg-input:hover,
.reg-input textarea:hover,
textarea.reg-input:hover {
  border-color: #c5c5c5;
}
.reg-input input:disabled,
input.reg-input:disabled {
  background-color: #e7e7e7;
  cursor: not-allowed;
}
.reg-input input:-webkit-autofill {
  /* Remove the yellow default autocomplete background on Chrome */
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: #1C1C1E!important;
  border-color: #eceff1;
}
.reg-input.invalid input:-webkit-autofill {
  /* Remove the yellow default autocomplete background on Chrome */
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: #1C1C1E!important;
  border-color: #ff7f7f;
}
.reg-input .sub-message {
  font-size: 12px;
  position: absolute;
  bottom: -14px;
  height: 10px;
  line-height: 10px;
  left: 0;
  visibility: hidden;
  opacity: 0;
}
.form-message.error {
  font-size: 12px;
}
.reg-input .sub-message.error,
.form-message.error {
  color: #ff7f7f;
}
.reg-input .sub-message.warning {
  color: #e9ab59;
}
.reg-input.invalid .sub-message {
  visibility: visible;
  opacity: 1;
}
.reg-input.warning .sub-message {
  visibility: visible;
  opacity: 1;
}
.reg-input.invalid input,
.reg-input.invalid textarea,
input.reg-input.invalid,
textarea.reg-input.invalid,
.reg-input.invalid .reg-date-picker .dp-display,
.reg-input.invalid .reg-date-picker .dp-display .dp-icon,
.reg-input.invalid .reg-dropdown .dd-display {
  border: 1px solid #ff7f7f;
  box-shadow: none;
}
.reg-input-column:after {
  content: "";
  display: table;
  clear: both;
}
.reg-input-column .reg-input {
  margin-bottom: 20px;
}
.reg-input-column .reg-input:last-child,
.reg-input-column .reg-input.last {
  margin-bottom: 0;
}

.reg-input-tab .reg-tab {
  display: inline-block;
  vertical-align: top;
  height: 40px;
  line-height: 38px;
  border-left: 1px solid #eceff1;
  border-top: 1px solid #eceff1;
  border-bottom: 1px solid #eceff1;
  font-size: 12px;
  font-weight: bold;
  color: #4f4f4f;
  padding: 0 10px;
  -webkit-transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}
.reg-input-tab .reg-tab:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.reg-input-tab .reg-tab:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right: 1px solid #eceff1;
}
.reg-input-tab .reg-tab:hover {
  background-color: #f5f8fb;
}
.reg-input-tab .reg-tab.selected {
  color: #9D9FE5;
  border-color: #9D9FE5;
}
.reg-input-tab .reg-tab.selected:not(:last-child) + .reg-tab {
  border-left-color: #9D9FE5;
}
.reg-input-tab.has-2 .reg-tab {
  width: 50%;
}
.reg-input-tab.small .reg-tab {
  height: 22px;
  line-height: 20px;
  font-size: 10px;
}
.reg-inline-input-ctn .reg-input-tab.small {
  margin-top: -11px;
}

/* Checkbox */
.reg-check-ctn {
  cursor: pointer;
}
.reg-check-ctn:hover > .reg-checkbox,
.reg-check-ctn:hover > .reg-radiobox {
  border-color: #9D9FE5;
}
.reg-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid #eceff1;
  border-radius: 3px;
  -webkit-transition: background-color 0.3s ease, border-color 0.3s ease, background-position 0.3s ease;
  transition: background-color 0.3s ease, border-color 0.3s ease, background-position 0.3s ease;
  background-position: center -100%;
  background-size: 58%;
  background-repeat: no-repeat;
}
.reg-checkbox.selected,
.reg-checkbox.minus,
.reg-checkbox.checked {
  background-color: #9D9FE5;
  background-image: url(/images/app/misc/check.svg);
  background-position: center center;
}
.reg-checkbox.selected,
.reg-checkbox.minus,
.reg-checkbox.checked,
.reg-checkbox:hover {
  border-color: #9D9FE5;
}
.reg-checkbox.minus {
  background-image: url(/images/app/misc/minus.svg);
}
/* Radiobox */
.reg-radiobox {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  border: 1px solid #eceff1;
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.reg-radiobox:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  top: 50%;
  left: 50%;
  margin-top: -5px;
  margin-left: -5px;
  background-color: #9D9FE5;
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
}
.reg-radiobox.selected:after,
.reg-radiobox.checked:after {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}
.reg-radiobox.selected,
.reg-radiobox.checked,
.reg-radiobox:hover {
  border-color: #9D9FE5;
}
.input-row {
  display: table;
}
.input-row .i-left,
.input-row .i-right {
  display: table-cell;
  vertical-align: top;
}
.input-row .i-left {
  padding-right: 15px;
  font-size: 14px;
  line-height: 38px;
  color: #5f676e;
}
.input-row .i-right {
  width: 100%;
}
.input-row .i-right .reg-dropdown {
  width: 100%;
}

.input-row.full .i-left {
  width: 100%;
}
.input-row.full .i-left .reg-switch {
  position: relative;
  top: 6px;
  margin-right: 10px;
}
.input-double-row:after {
  content: "";
  clear: both;
  display: table;
}
.input-double-row > * {
  float: left;
  width: 48%;
}

.input-double-row > *:first-child {
  margin-right: 4%;
}
.reg-input > .icon {
  position: absolute;
  top: 0;
  right: 14px;
  height: 100%;
  width: 12px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}
.reg-input.with-icon-right input {
  padding-right: 30px;
}
.reg-input.search > .icon {
  background-image: url(/images/app/glass.svg);
}
.reg-input.search .icon.cross {
  pointer-events: all;
  background-image: url(/images/app/dd-cross.svg);
  cursor: pointer;
}
.reg-input.search .icon.cross:hover {
  opacity: 0.7;
}
reg-number-input {
  display: inline-block;
  vertical-align: top;
}
reg-number-input.px-0 input {
  padding: 0;
  text-align: center;
}

.reg-check-input {
  position: relative;
}
.pb-panel .question .reg-checkbox,
.reg-check-input .reg-radiobox,
.reg-check-input .reg-checkbox {
  position: absolute;
  top: 0;
  left: 0;
}
.reg-check-input {
  padding-left: 30px;
}
.reg-check-input .label {
  padding-top: 1px;
  line-height: 1.3;
}
.reg-check-input {
  cursor: pointer;
}
.reg-check-input:hover .reg-checkbox {
  border-color: #9D9FE5;
}
.reg-switch-ctn,
.reg-inline-input-ctn {
  position: relative;
  user-select: none;
}
.reg-switch-ctn {
  padding-right: 50px;
  cursor: pointer;
}
.reg-inline-input-ctn {
  padding-right: 70px;
}
.reg-inline-input-ctn .label,
.reg-switch-ctn .label {
  padding: 10px 0;
  line-height: 1.3;
}
.reg-switch-ctn .reg-switch,
.reg-inline-input-ctn > *:not(.label) {
  position: absolute;
  top: 50%;
  right: 0;
}
.reg-switch-ctn .reg-switch {
  margin-top: -10px;
}
.reg-inline-input-ctn > .reg-input {
  margin-top: -20px;
  max-width: 50px;
}
.reg-inline-input-ctn > .reg-color-picker,
.reg-inline-input-ctn > .other-input,
.reg-inline-input-ctn > .reg-btn.medium,
.reg-inline-input-ctn > .reg-dropdown {
  margin-top: -19px;
}
.reg-inline-input-ctn > .reg-add-btn {
  margin-top: -13px;
}
.reg-input.img-input {
  position: relative;
}
.reg-input.img-input .label {
  padding-right: 30px;
}
.reg-input.img-input .reg-add-btn {
  position: absolute;
  top: 0;
  right: 0;
}
.reg-input .br-legend,
.reg-input .sub-label {
  color: #8e9eba;
  font-weight: normal;
  font-size: 12px;
}
.reg-input .sub-label {
  margin-top: 2px;
}
.reg-input .br-legend {
  position: absolute;
  right: 6px;
  bottom: 5px;
}
