.testimonial-page {
  padding-bottom: 50px;
}

.testimonial-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 32px;
}

.testimonial-page__title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
}

.testimonial-page__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #777;
  line-height: 1.5;
}

.testimonial-page__score {
  color: #222;
  font-size: 22px;
  font-weight: 600;
}

.testimonial-page__google,
.testimonial-form__submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background: #f51b35;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease;
}

.testimonial-page__google:hover,
.testimonial-page__google:focus,
.testimonial-form__submit:hover,
.testimonial-form__submit:focus {
  background: #d8142b;
  color: #fff;
  text-decoration: none;
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e3e5e8;
  border-radius: 6px;
  background: #fff;
}

.testimonial-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.testimonial-card__author {
  color: #222;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.testimonial-card__date {
  flex: 0 0 auto;
  color: #999;
  font-size: 13px;
}

.testimonial-stars {
  display: inline-flex;
  gap: 3px;
  color: #f4b400;
}

.testimonial-stars--summary {
  font-size: 17px;
}

.testimonial-card__text {
  margin-top: 14px;
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.testimonial-pagination {
  display: flex;
  align-items: center;
  margin-top: 24px;
}

.testimonial-page__empty {
  padding: 24px 0;
  color: #777;
}

.testimonial-form-section {
  max-width: 780px;
  margin: 44px auto 0;
  padding-top: 32px;
  border-top: 1px solid #e3e5e8;
}

.testimonial-form-section__title {
  margin: 0 0 22px;
  color: #222;
  font-size: 25px;
  letter-spacing: 0;
}

.testimonial-form .form-control {
  border-radius: 4px;
  box-shadow: none;
}

.testimonial-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.testimonial-rating-field {
  border: 0;
  padding: 0;
}

.testimonial-rating-field legend {
  width: auto;
  margin: 0 0 8px;
  border: 0;
  font-size: 14px;
}

.testimonial-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.testimonial-rating-input input {
  position: absolute;
  opacity: 0;
}

.testimonial-rating-input label {
  margin: 0 7px 0 0;
  color: #cfd3d8;
  cursor: pointer;
  font-size: 29px;
}

.testimonial-rating-input input:checked ~ label,
.testimonial-rating-input label:hover,
.testimonial-rating-input label:hover ~ label {
  color: #f4b400;
}

.testimonial-rating-input input:focus + label {
  outline: 2px solid #f51b35;
  outline-offset: 2px;
}

.testimonial-form__submit:disabled {
  cursor: wait;
  opacity: .7;
}

.testimonial-form__captcha {
  margin: 20px 0;
}

.testimonial-form__captcha fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-form__captcha legend,
.testimonial-form__captcha label {
  display: none;
}

.testimonial-form__captcha .form-group {
  margin: 0;
}

.testimonial-form__captcha .col-sm-10 {
  float: none;
  width: 100%;
  padding: 0;
}

.testimonial-form__captcha .text-danger {
  margin-top: 8px;
}

.testimonial-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .testimonial-page__header {
    flex-direction: column;
  }

  .testimonial-page__title {
    font-size: 27px;
  }

  .testimonial-page__google {
    width: 100%;
  }

  .testimonial-list {
    grid-template-columns: 1fr;
  }

  .testimonial-card__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .testimonial-pagination {
    display: block;
  }

  .testimonial-pagination .text-right {
    margin-top: 10px;
    text-align: left;
  }

  .testimonial-form__submit {
    width: 100%;
  }

  .testimonial-form__captcha .g-recaptcha {
    transform: scale(.9);
    transform-origin: left top;
    margin-bottom: -8px;
  }
}
