@font-face {
  font-family: "Avenir Next Cyr";
  src: url(/review/font/AvenirNextCyr-Regular.eot) format("eot"),
    url(/review/font/AvenirNextCyr-Regular.woff) format("woff"),
    url(/review/font/AvenirNextCyr-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "TrajanPro3Regular";
  src: url(/review/font/TrajanPro3-Regular.eot) format("eot"),
    url(/review/font/TrajanPro3-Regular.woff) format("woff"),
    url(/review/font/TrajanPro3-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-size: cover;
  background-color: #fff;
  font-family: "Avenir Next Cyr";
  font-size: 14px;
  font-weight: 400;
  color: #222;
}

.section-review-form {
  max-width: 1600px;
  height: auto;
  padding: 0 15px;
  padding-top: 50px;
  padding-bottom: 50px;
}
/*=======================================*/
/*===== FORM =====*/
/*=======================================*/
.container-form {
  display: flex;
  flex-direction: row;
  width: 80%;
  margin: 0 auto;
  margin-top:60px;
}

.review-info {
  width: 30%;
  margin-right: 10%;
}
.review-info > h3 {
  margin: 15px;
  padding-top: 15px;
  font-family: "TrajanPro3Regular";
  font-weight: 400;
  font-size: 24px;
  line-height: 53px;
  color: #afa18f;
  letter-spacing: 0.14em;
  text-align: center;
}
.review-info > p {
  width: 80%;
  font-size: 12px;
  line-height: 20px;
  margin: 0;
}
.review-form {
  width: 70%;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}

.form-flex {
  display: flex;
  justify-content: space-between;
}

.form-g {
  display: flex;
  flex-direction: column-reverse;
}
.form-name {
  font-size: 14px;
  display: block;
  margin-bottom: 20px;
}
.form-input {
  width: 200px;
  height: 40px;
  border: 2px solid #dfdfdf;
  outline: none;
  padding-left: 20px;
  transition: all 400ms ease;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.form-input:focus {
  border: 2px solid #afa18f;
}
.form-input:focus ~ .form-name,
.form-name:focus {
  color: #afa18f;
}

.review-form__texarea {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.form-texarea {
  font-size: 14px;
  height: 120px;
  resize: none;
  padding: 20px;
  outline: none;
  transition: all 400ms ease;
  border: 2px solid #dfdfdf;
}
.form-texarea:focus {
  border: 2px solid #afa18f;
}
.form-texarea:focus ~ .form-name,
.form-name:focus {
  color: #afa18f;
}
/*=======================================*/
/*===== FILE =====*/
/*=======================================*/
.file-input {
  border: 2px solid #dfdfdf;
  transition: all 0.3s ease-in-out;
  padding: 10px;
  outline: none;
}

.file-input:focus {
  border: 2px solid #afa18f;
}
/*=======================================*/
/*===== RATING =====*/
/*=======================================*/
.rating {
  position: relative;
  font-size: 25px;
  display: inline-block;
  margin-bottom: 25px;
}
.rating::before {
  content: "★★★★★";
  display: block;
}
.rating__items {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row-reverse;
  overflow: hidden;
}
.rating__item {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
  top: 0;
  left: 0;
}
.rating__label {
  float: 0 0 20%;
  height: 100%;
  cursor: pointer;
  color: rgb(204, 204, 204);
}
.rating__label::before {
  content: "★";
  display: block;
  transition: color 0.3s ease 0s;
}
.rating__item:checked,
.rating__item:checked ~ .rating__label {
  color: #ffd700;
}
.rating__label:hover,
.rating__label:hover ~ .rating__label,
.rating__label:checked ~ .rating__label:hover {
  color: #ffff00;
}

/*=======================================*/
/*===== CHECKBOX =====*/
/*=======================================*/
.form-check {
  margin: 30px 0;
  margin-bottom: 10px;
}
.form-check > label {
  font-size: 14px;
}
.form-check > label > a {
  text-decoration: none;
  outline: none;
  color: #000;
}
.form-check > label > a:hover {
  border-bottom: 1px solid #111111;
}
.form-message {
  height: 30px;
  width: 100%;
}
.form-check > button {
  outline: none;
  transition: all 400ms ease;
  border: 2px solid #dfdfdf;
  padding: 10px 20px;
  cursor: pointer;
}
.form-check > button:focus,
.form-check > button:hover {
  border: 2px solid #afa18f;
  color: #afa18f;
}

@media screen and (max-width: 767px) {
  .container-form {
    display: flex;
    width: auto;
    padding: 15px;
    flex-direction: column;
  }
  .review-info {
    width: 100%;
    padding: 0 15px;
    margin-right: 0;
  }
  .review-info > p {
    width: 100%;
  }
  .review-form {
    margin-top: 30px;
    width: 100%;
    padding: 0 15px;
  }
  .form-fdc {
    flex-direction: column;
  }
  .form-input {
    width: 100%;
  }
  .form-input:not(:last-child) {
    margin-bottom: 30px;
  }
}
@media screen and (max-width: 550px) {
  .form-fdc-bottom {
    flex-direction: column;
  }
  .rating-name {
    text-align: left;
    margin-top: 30px;
  }
  .rating__items {
    width: auto;
  }
}