.reviews-section .swiper-container {
  padding-bottom: 35px;
}

.reviews-section .swiper-slide > p.center.h4 {
  max-height: 120px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #33bfc0 #d6f1f1;
}

.reviews-section .swiper-slide > p.center.h4::-webkit-scrollbar {
  width: 4px;
}

.reviews-section .swiper-slide > p.center.h4::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #d6f1f1;
}

.reviews-section .swiper-slide > p.center.h4::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #33bfc0;
}

.reviews-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(279px, 100%);
  margin: 35px auto 0;
}

.reviews-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 25px;
  border: 0;
  border-radius: 100px;
  color: #fff;
  background: #33bfc0;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reviews-cta__button:hover {
  background: #269fa0;
}

.reviews-cta__button:active {
  transform: translateY(1px);
}

.reviews-cta__button:focus-visible,
.review-modal button:focus-visible,
.review-modal input:focus-visible,
.review-modal textarea:focus-visible {
  outline: 3px solid rgba(51, 191, 192, 0.35);
  outline-offset: 2px;
}

.reviews-cta__privacy {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(40, 26, 88, 0.8);
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
}

.reviews-cta__privacy img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

body.review-modal-open {
  overflow: hidden;
}

.review-modal[hidden],
.review-modal [hidden] {
  display: none !important;
}

.review-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #281a58;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 47, 47, 0.48);
}

.review-modal__dialog {
  position: relative;
  width: min(773px, 100%);
  max-height: calc(100vh - 48px);
  padding: 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(40, 26, 88, 0.2);
}

.review-modal__close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.review-modal__close img {
  display: block;
  width: 44px;
  height: 44px;
}

.review-modal__form-state {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.review-modal__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  padding-right: 8px;
}

.review-modal__privacy-note {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(40, 26, 88, 0.8);
  font-size: 14px;
  line-height: 1.25;
}

.review-modal__privacy-icon {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d6f1f1;
  border-radius: 6px;
  background: #f1fafa;
}

.review-modal__privacy-icon img {
  width: 20px;
  height: 20px;
}

.review-modal h2 {
  margin: 0;
  color: #281a58;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.review-form__rating-field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.review-form__rating-field legend,
.review-form__field > span {
  display: block;
  margin: 0 0 10px;
  color: rgba(40, 26, 88, 0.8);
  font-size: 12px;
  line-height: 1;
}

.review-form__rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  width: max-content;
}

.review-form__rating-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.review-form__rating-star {
  width: 24px;
  height: 24px;
  margin: 0;
  background-image: url("../images/icons/review-rating.svg");
  background-repeat: no-repeat;
  background-position: -128px 0;
  background-size: 152px 24px;
  cursor: pointer;
}

.review-form__rating-input:checked + .review-form__rating-star,
.review-form__rating-input:checked ~ .review-form__rating-star,
.review-form__rating-star:hover,
.review-form__rating-star:hover ~ .review-form__rating-star {
  background-position: 0 0;
}

.review-form__rating-input:focus-visible + .review-form__rating-star {
  outline: 3px solid rgba(51, 191, 192, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-form__field {
  display: block;
  min-width: 0;
  margin: 0;
}

.review-form__field input,
.review-form__field textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  color: #281a58;
  background: #f1fafa;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.2s ease;
}

.review-form__field input {
  min-height: 62px;
  padding: 20px 25px;
}

.review-form__field textarea {
  min-height: 120px;
  padding: 20px 25px;
  resize: vertical;
}

.review-form__field input::placeholder,
.review-form__field textarea::placeholder {
  color: rgba(40, 26, 88, 0.48);
  opacity: 1;
}

.review-form__field input:focus,
.review-form__field textarea:focus {
  box-shadow: inset 0 0 0 1px #33bfc0;
}

.review-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-form__error {
  padding: 12px 16px;
  border-radius: 12px;
  color: #8b1e24;
  background: #fde9ea;
  font-size: 14px;
  line-height: 1.4;
}

.review-form__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 5px;
}

.review-form__submit,
.review-modal__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(348px, 100%);
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 90px;
  color: #fff;
  background: #6dbd77;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.review-form__submit:hover,
.review-modal__continue:hover {
  background: #55a961;
}

.review-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.review-form__footer p {
  margin: 0;
  color: rgba(40, 26, 88, 0.68);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.review-form__footer a {
  color: inherit;
  text-decoration: underline;
}

.review-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  padding: 20px 0 0;
  text-align: center;
}

.review-modal.is-success .review-modal__close {
  display: none;
}

.review-modal__success-icon {
  position: relative;
  width: 60px;
  height: 60px;
}

.review-modal__success-icon span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  background: #d6f1f1;
}

.review-modal__success-icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
}

.review-modal__success-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.review-modal__success-copy h2 {
  text-align: center;
}

.review-modal__success-copy p {
  margin: 0;
  color: rgba(40, 26, 88, 0.8);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 767px) {
  .review-modal {
    align-items: end;
    padding: 12px;
  }

  .review-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 20px;
    border-radius: 20px;
  }

  .review-modal__close {
    top: 14px;
    right: 14px;
  }

  .review-modal__heading {
    padding-right: 42px;
  }

  .review-modal h2 {
    font-size: 26px;
  }

  .review-form__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-form__field input,
  .review-form__field textarea {
    padding-right: 18px;
    padding-left: 18px;
  }

  .review-modal__success {
    gap: 28px;
    padding: 32px 0 10px;
  }
}

@media (max-width: 390px) {
  .reviews-cta__privacy {
    font-size: 13px;
  }

  .review-modal {
    padding: 8px;
  }

  .review-modal__dialog {
    max-height: calc(100vh - 16px);
    padding: 20px 16px;
  }

  .review-modal h2 {
    font-size: 23px;
  }
}
