input::placeholder {
  font-size: 14px;
  color: #BCC3CE;
}

input[type="text"],
input[type="password"],
input[type="date"] {
  gap: 10px;
  max-width: 100%;
  height: 50px;
  padding: 11px 16px;
  font-size: 16px;
  background: #fff;
  border: 2px solid #bcc3ce;
  border-radius: 12px;
  outline: none;
  -webkit-appearance : none;
  transition: border-color 0.2s ease;
}

textarea{
  font-size: 16px;
}

input[type="text"]:active,
input[type="text"]:focus,
input[type="password"]:active,
input[type="password"]:focus,
input[type="date"]:active,
input[type="date"]:focus {
  border: 2px solid #88acf1;

  /* outline: 2px solid #88ACF1; */
}

.form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.form__label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.form__label label {
  margin-right: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 175%;
  letter-spacing: 0.04em;
}

.form__important {
  margin-right: 8px;
  font-size: 12px;
  line-height: 150%;
  color: #ec0000;
  letter-spacing: 0.0125em;
}

.form__note {
  font-size: 12px;
  line-height: 150%;
  color: #8e959e;
  letter-spacing: 0.0125em;
}

.form__control{
  flex: 1;
  user-select: none;
}

.form__control .input[type="text"] {

}

.form__control.-size-small input[type="text"]{
  width: 30%;
}

.form__control.-size-medium input[type="text"]{
  width: 60%;
}

.form__control.-size-large input[type="text"]{
  width: 100%;
}/* stylelint-disable-next-line media-feature-range-notation */

@media screen and (max-width: 1110px) {
  .form__control.-size-small input[type="text"]{
    width: 50%;
  }

  .form__control.-size-medium input[type="text"]{
    width: 75%;
  }

  .form__control.-size-large input[type="text"]{
    width: 100%;
  }
}

@media screen and (min-width: 1025px) {
  .form__group {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 50px;
  }

  .form__label {
    flex: 0 0 180px;
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  .form__important {
    margin-right: 0;
  }
}

.form-check-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 24px;
}

/* radio */
.form__control input[type="radio"]:checked,
.form__control input[type="radio"]:not(:checked) {
  display: none;
}

.form__control input[type="radio"]:checked + label,
.form__control input[type="radio"]:not(:checked) + label {
  position: relative;
  display: inline-block;
  padding-left: 32px;
  line-height: 24px;
  cursor: pointer;
}

.form__control input[type="radio"]:checked + label::before,
.form__control input[type="radio"]:not(:checked) + label::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  content: "";
  background: #fff;
  border: 2px solid #bcc3ce;
  border-radius: 100%;
}

.form__control input[type="radio"]:checked + label::before {
  border: 2px solid #6282d4;
}

.form__control input[type="radio"]:checked + label::after,
.form__control input[type="radio"]:not(:checked) + label::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  content: "";
  background-color: #6282d4;
  border-radius: 100%;
  transition: all 0.2s ease;
}

.form__control input[type="radio"]:not(:checked) + label::after {
  opacity: 0;
  transform: scale(0);
}

.form__control input[type="radio"]:checked + label::after {
  opacity: 1;
  transform: scale(1);
}

/* checkbox */
.form__control input[type="checkbox"]:checked,
.form__control input[type="checkbox"]:not(:checked) {
  display: none;
}

.form__control input[type="checkbox"]:checked + label,
.form__control input[type="checkbox"]:not(:checked) + label {
  position: relative;
  display: inline-block;
  padding-left: 32px;
  line-height: 24px;
  cursor: pointer;
}

.form__control input[type="checkbox"]:checked + label::before,
.form__control input[type="checkbox"]:not(:checked) + label::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  content: "";
  background: #fff;
  border: 2px solid #bcc3ce;
  border-radius: 8px;
}

.form__control input[type="checkbox"]:checked + label::before {
  border: 2px solid #6282d4;
}

.form__control input[type="checkbox"]:checked + label::after,
.form__control input[type="checkbox"]:not(:checked) + label::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  content: "";
  background-color: transparent;
  background-image: url("/webform/smile/assets/icon-check.svg");
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.form__control input[type="checkbox"]:not(:checked) + label::after {
  opacity: 0;
  transform: scale(0);
}

.form__control input[type="checkbox"]:checked + label::after {
  opacity: 1;
  transform: scale(1);
}

/* form validation style */
.form-error-list {
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.75;
  color: #d20000;
  background: #ffeded;
  border: 2px solid #d20000;
  border-radius: 12px;
}

.pageThree .form-error-list {
  margin-top: 40px;
}

.pageFour .form-error-list {
  margin-top: 40px;
}

.form-error-list > .list-item {
  padding-left: 1.3em;
  margin-left: 0;
  text-indent: -1em;
}

.form__control .validation_msg {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: #d20000;
}

.form__control.is-error {
  color: #d20000;
}

.form__control.is-error input[type="text"],
.form__control.is-error input[type="password"],
.form__control.is-error input[type="date"] {
  background: #ffeded;
  border: 2px solid #d20000;
}


/* js-flatpicker */
.js-flatpickr {
  position: relative;
}

.js-flatpickr .icon {
  position: absolute;
  top: 50%;
  left: 30%;
  pointer-events: none;
  transform: translate(calc(-100% - 10px), -50%);
}

.js-flatpickr input[type="text"].js-flatpickr-input {
  padding-right: 42px;
}

.js-flatpickr .form__control.-input-with-icon {
  position: relative;
}


@media screen and (max-width: 1110px) {
  .js-flatpickr .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(calc(-100% - 10px), -50%);
  }
  
  .js-flatpickr input[type="text"].js-flatpickr-input {
    padding-right: 42px;
  }
}