.leave-review .form-group {
  width: 100%;
}
.leave-review__title {
  margin: 0;
  margin-bottom: 40px;
  color: var(--black, #242424);
  font-size: 32px;
  font-weight: 800;
  line-height: 140%;
}

.block-top {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
}
.block-top__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.block-top__label:last-child {
  grid-column: 2 span;
}
.block-top__label:nth-child(3) {
  margin-bottom: 20px;
}
.block-top__input {
  padding: 26px 30px;
  color: rgba(35, 31, 32, 0.6);
  font-size: 16px;
  line-height: 18px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 12px 50px 0px rgba(0, 0, 0, 0.03);
}
.block-top__input::placeholder {
  color: rgba(35, 31, 32, 0.6);
  font-size: 16px;
  line-height: 18px;
}
.block-top__input:focus {
  outline: none;
}
.block-top__textarea {
  width: 100%;
  height: 164px;
  padding: 26px 30px;
  color: rgba(35, 31, 32, 0.6);
  font-size: 16px;
  line-height: 18px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 12px 50px 0px rgba(0, 0, 0, 0.03);
  resize: none;
}
.block-top__caption {
  margin-bottom: 15px;
  color: #231f20;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
}

.block-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
}
.block-bottom__left {
  display: flex;
  align-items: center;
}
.block-bottom__input {
  position: absolute;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.block-bottom__descr {
  margin-right: 39px;
  color: #231f20;
  font-size: 24px;
  font-weight: 600;
  line-height: 18px;
  flex-shrink: 0;
}
.block-bottom__checkbox-block {
  display: flex;
  gap: 10px;
}
.block-bottom__btn {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 60px;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 140%;
  width: 100%;
  border-radius: 10px;
}
.block-bottom__btn-descr {
  color: rgba(35, 31, 32, 0.4);
  font-size: 12px;
  line-height: 150%;
}

.star-rating {
  position: relative;
  display: inline-block;
}
.star-rating::before {
  content: "";
  display: block;
  width: 214px;
  height: 30px;
}
.star-rating__items {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row-reverse;
  overflow: hidden;
}
.star-rating__item {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
  top: 0;
  left: 0;
}
.star-rating__label {
  flex: 0 0 20%;
  height: 100%;
  cursor: pointer;
}
.star-rating__label::before {
  content: "";
  display: block;
  width: 34px;
  height: 30px;
  background-image: url(/img/blocks/leave-review/check.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.4;
  transition: opacity 0.3s ease-in-out;
}

.star-rating__item:checked,
.star-rating__item:checked ~ .star-rating__label::before {
  opacity: 1;
}

.star-rating__label:hover::before,
.star-rating__label:hover ~ .star-rating__label::before,
.star-rating__item:checked ~ .star-rating__label:hover::before {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .leave-review__title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .leave-review__title {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 120%;
  }
  .block-top {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .block-top__input::placeholder {
    font-size: 12px;
    line-height: 18px;
  }
  .block-top__input {
    padding: 16px;
    font-size: 12px;
    line-height: 18px;
    border-radius: 8px;
  }
  .block-top__textarea {
    height: 50px;
    padding: 16px;
    font-size: 12px;
    line-height: 18px;
    border-radius: 8px;
  }
  .block-top__caption {
    margin-bottom: 8px;
    color: #231f20;
    font-size: 12px;
    line-height: 18px;
  }
  .block-bottom__left {
    align-items: flex-start;
    flex-direction: column;
  }
  .block-bottom__descr {
    margin-right: 0;
    margin-bottom: 15px;
    color: #231f20;
    font-size: 16px;
    line-height: 18px;
  }
  .block-bottom__btn {
    margin-bottom: 6px;
    padding: 16px 32px;
    font-size: 16px;
    line-height: 140%;
    border-radius: 8px;
  }
  .star-rating::before {
    width: 171.2px;
    height: 24px;
  }
  .star-rating__label::before {
    width: 27.2px;
    height: 24px;
  }
}

@media (max-width: 1200px) {
  .block-bottom {
    grid-template-columns: 3fr 2fr;
  }
}

@media (max-width: 1024px) {
  .block-bottom {
    grid-template-columns: 1fr;
  }
  .block-bottom__btn {
    max-width: 540px;
  }
}
