:root {
  --sh-form-surface: #F2F3F5;
  --sh-form-text: #000;
  --sh-form-control-border: #868383;
  --sh-form-checkmark: #fff;
  --sh-form-input-border: #000;
  --sh-form-accent: #008B29;
  --sh-form-accent-hover: #00641e;
  --sh-form-on-accent: #fff;
  --sh-form-link: #000;
}

body.theme-dark{
  --sh-form-surface: #2A2A31;
  --sh-form-text: #F2F4F7;
  --sh-form-control-border: #6A707A;
  --sh-form-checkmark: #FFFFFF;
  --sh-form-input-border: #F2F4F7;
  --sh-form-accent: #008B29;
  --sh-form-accent-hover: #00641e;
  --sh-form-on-accent: #FFFFFF;
  --sh-form-link: #F2F4F7;
}

.smart-house__form-steps {
  overflow: hidden;
  max-height: 503px;
}

.smart-house__form-property-block {
  height: 503px;
  width: 100%;
  background-color: var(--sh-form-surface);
  padding: 41px 112px 27px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.smart-house__form-property-block--last {
  padding: 43px 165px 38px;
}

.smart-house__form-title {
  width: 756px;
  margin: 0 auto;
  text-align: center;
  font-size: 40px;
  line-height: 150%;
  font-weight: 700;
  color: var(--sh-form-text);
  margin-bottom: 54px;
}

.b-message-form_checkbox,
.b-message-form_radio {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 16px 0;
  margin-top: 28px;
  justify-content: space-between;
}

.b-message-form_item-title.checkbox,
.b-message-form_item-title.radio {
  width: 100%;
  font-size: 26px;
  line-height: 120%;
  font-weight: 700;
  color: var(--sh-form-text);
  margin-bottom: 0;
}

.b-message-form_checkbox .b-message-form_field_item,
.b-message-form_radio .b-message-form_field_item {
  width: calc(50% - 30px);
}

.b-message-form_field_item input[type="checkbox"],
.b-message-form_field_item input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.b-message-form_field_item input[type="checkbox"]+label,
.b-message-form_field_item input[type="radio"]+label {
  margin-bottom: 0;
  position: relative;
  font-size: 26px;
  line-height: 140%;
  font-weight: 400;
  color: var(--sh-form-text);
  padding-left: 51px;
  display: block;
  cursor: pointer;
}

.b-message-form_field_item input[type="checkbox"]+label::before,
.b-message-form_field_item input[type="radio"]+label::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid var(--sh-form-control-border);
}

.b-message-form_field_item input[type="checkbox"]+label::after,
.b-message-form_field_item input[type="radio"]+label::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 12px;
  bottom: 3px;
  width: 8px;
  height: 12px;
  transform: rotate(45deg);
  border-bottom: 2px solid var(--sh-form-checkmark);
  border-right: 2px solid var(--sh-form-checkmark);
  opacity: 0;
}

.b-message-form_field_item input[type="checkbox"]:checked+label::before,
.b-message-form_field_item input[type="radio"]:checked+label::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid var(--sh-form-accent);
  background-color: var(--sh-form-accent);
}

.b-message-form_field_item input[type="checkbox"]:checked+label::after,
.b-message-form_field_item input[type="radio"]:checked+label::after {
  opacity: 1;
}

.smart-house__form-navigation {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  align-items: end;
  padding: 0 30px 0 5px;
  gap: 16px;
}

.smart-house__form-counter {
  display: flex;
  font-size: 20px;
  line-height: 85%;
  font-weight: 300;
  margin-right: auto;
}

.smart-house__form-text {
  font-size: 18px;
  line-height: 140%;
  margin-bottom: 47px;
  margin-top: 39px;
}

.smart-house__form-inputs-box {
  display: flex;
  justify-content: space-between;
}

.smart-house__form-inputs-box .b-message-form_item {
  width: calc(100% / 3 - 20px);
}

.smart-house__form-inputs-box .b-message-form_item input {
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--sh-form-input-border);
  height: 54px;
  border-radius: 0;
  font-size: 26px;
  line-height: 2;
  font-weight: 400;
  color: var(--sh-form-text);
  width: 100%;
}

.smart-house__form-inputs-box .b-message-form_item input::placeholder {
  color: var(--sh-form-text);
  font-size: 26px;
  line-height: 2;
  font-weight: 400;
  opacity: 0.6;
}

.smart-house__form-submit .g-button,
.smart-house__form .prev-step,
.smart-house__form .next-step {
  border: none;
  border-radius: 5px;
  background-color: var(--sh-form-accent);
  color: var(--sh-form-on-accent);
  width: 140px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  line-height: 90%;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.5s;
}

.smart-house__form-submit .g-button:hover,
.smart-house__form .prev-step:hover,
.smart-house__form .next-step:hover {
  background-color: var(--sh-form-accent-hover);
}

.smart-house__form-submit .g-button:disabled,
.smart-house__form .prev-step:disabled,
.smart-house__form .next-step:disabled {
  background-color: var(--sh-form-accent);
  opacity: 0.6;
  cursor: default;
}

.smart-house__form-submit .g-button {
  margin-right: 27px;
  border-radius: 10px;
  min-width: 132px;
  width: 132px;
  font-size: 20px;
}

.smart-house__form-submit {
  display: flex;
  align-items: center;
}

.smart-house__form-submit p {
  max-width: 543px;
  font-size: 16px;
  line-height: 125%;
  font-weight: 400;
  margin: 3px 0 0 0;
}

.smart-house__form-submit p a {
  color: var(--sh-form-link);
  text-decoration: underline;
}

.smart-house__form-success {
  height: 503px;
  width: 100%;
  background-color: var(--sh-form-surface);
  padding: 40px 112px 27px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.smart-house__form-success-title {
  font-size: 36px;
  line-height: 140%;
  font-weight: 500;
  margin-bottom: 30px;
  text-align: center;
  max-width: 640px;
}

.smart-house__form-success-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.smart-house__form-success-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 1200px) {
  .smart-house__form-property-block {
    padding: 41px 82px 27px;
  }

  .smart-house__form-title {
    font-size: 32px;
    width: 100%;
  }

  .b-message-form_item-title.checkbox,
  .b-message-form_item-title.radio {
    font-size: 24px;
  }

  .b-message-form_field_item input[type="checkbox"]+label,
  .b-message-form_field_item input[type="radio"]+label {
    font-size: 22px;
  }

  .smart-house__form-text {
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .smart-house__form-submit {
    font-size: 14px;
    margin-top: auto;
  }

  .smart-house__form-inputs-box .b-message-form_item {
    width: calc(50% - 18px);
  }

  .smart-house__form-inputs-box .b-message-form_item input,
  .smart-house__form-inputs-box .b-message-form_item input::placeholder {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {

  .smart-house__form-success,
  .smart-house__form-steps {
    height: 450px;
  }

  .smart-house__form-property-block {
    padding: 41px 62px 27px;
    height: 450px;
  }

  .smart-house__form-title {
    text-align: left;
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 120%;
  }

  .b-message-form_item-title.checkbox,
  .b-message-form_item-title.radio {
    font-size: 22px;
  }

  .b-message-form_field_item input[type="checkbox"]+label,
  .b-message-form_field_item input[type="radio"]+label {
    font-size: 20px;
  }

  .smart-house__form-inputs-box {
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 10px;
  }

  .smart-house__form-inputs-box .b-message-form_item {
    width: 100%;
  }

  .smart-house__form-success-title {
    font-size: 30px;
  }
}

@media (max-width: 920px) {

  .smart-house__form-success,
  .smart-house__form-steps,
  .smart-house__form-property-block {
    height: 490px;
  }

  .smart-house__form-title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .b-message-form_item-title.checkbox,
  .b-message-form_item-title.radio {
    font-size: 20px;
  }

  .b-message-form_field_item input[type="checkbox"]+label,
  .b-message-form_field_item input[type="radio"]+label {
    line-height: 120%;
  }

  .smart-house__form-inputs-box {
    gap: 20px;
  }

  .smart-house__form-inputs-box .b-message-form_item input::placeholder,
  .smart-house__form-inputs-box .b-message-form_item input {
    font-size: 22px;
  }

  .smart-house__form-success,
  .smart-house__form-property-block {
    padding: 30px 42px 20px;
  }

  .b-message-form_checkbox .b-message-form_field_item,
  .b-message-form_radio .b-message-form_field_item {
    width: 100%;
  }

  .smart-house__form-text {
    font-size: 14px;
  }

  .smart-house__form-submit p {
    font-size: 12px;
  }

  .b-message-form_checkbox,
  .b-message-form_radio {
    gap: 28px;
    margin-top: 20px;
  }

  .b-message-form_field_item input[type="checkbox"]+label,
  .b-message-form_field_item input[type="radio"]+label {
    padding-left: 48px;
  }

  .b-message-form_field_item input[type="checkbox"]+label::before,
  .b-message-form_field_item input[type="checkbox"]:checked+label::before,
  .b-message-form_field_item input[type="radio"]+label::before,
  .b-message-form_field_item input[type="radio"]:checked+label::before {
    top: 0;
  }

  .b-message-form_field_item input[type="checkbox"]+label::after,
  .b-message-form_field_item input[type="radio"]+label::after {
    top: 3px;
  }

  .smart-house__form-success-title {
    font-size: 28px;
  }

  .smart-house__form-success-icon {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 767px) {

  .smart-house__form-success,
  .smart-house__form-property-block {
    padding: 20px 25px;
  }

  .smart-house__form-inputs-box {
    gap: 12px;
  }

  .smart-house__form-inputs-box .b-message-form_item input::placeholder,
  .smart-house__form-inputs-box .b-message-form_item input {
    font-size: 20px;
  }

  .smart-house__form-title {
    font-size: 24px;
  }

  .b-message-form_item-title.checkbox,
  .b-message-form_item-title.radio {
    font-size: 18px;
  }

  .b-message-form_checkbox,
  .b-message-form_radio {
    margin-top: 16px;
  }

  .smart-house__form-submit .g-button {
    margin-right: 12px;
  }

  .smart-house__form-navigation {
    padding: 0 0 0 3px;
  }

  .smart-house__form-navigation {
    align-items: center;
  }
}

@media (max-width: 520px) {

  .smart-house__form-success,
  .smart-house__form-property-block {
    padding: 14px 11px 23px;
  }

  .smart-house__form-inputs-box .b-message-form_item input::placeholder,
  .smart-house__form-inputs-box .b-message-form_item input {
    font-size: 18px;
  }

  .smart-house__form-title {
    font-size: 20px;
    line-height: 126%;
    margin-bottom: 20px;
  }

  .b-message-form_checkbox,
  .b-message-form_radio {
    margin-top: 33px;
    gap: 20px;
  }

  .b-message-form_item-title.checkbox,
  .b-message-form_item-title.radio {
    font-size: 16px;
    max-width: 230px;
    display: block;
  }

  .smart-house__form-inputs-box {
    margin-top: 0;
  }

  .smart-house__form-text {
    font-size: 12px;
  }

  .smart-house__form-submit p {
    font-size: 10px;
  }

  .smart-house__form .prev-step,
  .smart-house__form .next-step {
    width: 126px;
    height: 45px;
  }

  .smart-house__form-success-title {
    font-size: 26px;
  }

  .smart-house__form-text {
    margin-bottom: 0;
  }
}

@media (max-width: 460px) {
  .smart-house__form-navigation {
    gap: 6px;
  }

  .smart-house__form .prev-step,
  .smart-house__form .next-step {
    width: 106px;
    height: 40px;
    font-size: 18px;
  }
}