.br-section {
  padding: 60px 0;
}

.br-form-section__wrapper {
  margin: 0 calc(var(--main-padding-side) * -1);
  padding-left: calc(var(--main-padding-side));
  padding-right: calc(var(--main-padding-side));
}

[data-theme="light"] .br-form-section__wrapper {
  background-image: url("../../../../themes/firedrake/assets/images/feedback-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

[data-theme="dark"] .br-form-section__wrapper {
  background-image: url("../../../../themes/firedrake/assets/images/feedback-bg-dark.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.br-section__title {
  text-align: center;
  margin-bottom: 40px;
}

.br-empty {
  text-align: center;
  color: #e2e2e2;
  margin-bottom: 40px;
}

.br-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.br-card--hidden {
  display: none;
}

.br-list--expanded .br-card--hidden {
  display: block;
  animation: br-fade-in 0.3s ease both;
}

@media screen and (max-width: 1024px) {
  .br-section {
    padding: 40px 0;
  }

  .br-section__title {
    margin-bottom: 24px;
  }
}

@media screen and (max-width: 480px) {
  .br-list {
    margin-bottom: 18px;
  }

  .br-section__title {
    margin-bottom: 18px;
  }
}

@keyframes br-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.br-card {
  border-radius: 32px;
  padding: 32px 28px;
  box-shadow: 0px 4px 16px 0px #ff5c0040;
}

.br-card[data-theme="dark"] {
  background: #0409110d;
}
.br-card[data-theme="light"] {
  background: #ffffff0d;
}

.br-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.br-card__author + .br-card__date {
  margin-left: 6px;
}

.br-card__author {
  display: inline;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: #ff5c00;
}

.br-card__date {
  display: inline;
}

.br-card__stars,
.br-stars-mini {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.br-star {
  display: inline-flex;
  line-height: 1;
}

.br-star svg {
  width: 30px;
  height: 30px;
}


.br-card__reply {
  margin: 18px 0 0 32px;
}

.br-card__reply-label {
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ff5c00;
}

.br-card__reply-content {
  border-radius: 8px;
  padding: 18px 24px;
  background: #ff5c0033;
  box-shadow: 0px 10px 25px 0px #0000000d;
}

.br-show-more {
  cursor: pointer;
  transition: color 0.2s;
  color: #ff5c00;
  padding: 15px;
  margin: -15px;
}

.br-show-more__text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.br-show-more__container {
  display: flex;
  justify-content: center;
}

.br-show-more:hover {
  text-decoration: unset;
  opacity: 0.8;
}

@media screen and (max-width: 1024px) {
  .br-card__date {
    font-size: 14px;
    line-height: 1.2;
  }

  .br-star svg {
    width: 20px;
    height: 20px;
  }

  .br-card__reply {
    margin: 12px 0 0 12px;
  }
}

@media screen and (max-width: 480px) {
  .br-card {
    padding: 24px;
    border-radius: 16px;
  }
}

/* form */

.br-form-section__wrapper {
  padding-top: 100px;
}

.br-form-section {
  max-width: 740px;
  margin: 0 auto;
}

.br-form-section__title {
  text-align: center;
  margin-bottom: 32px;
}

.br-field-error {
  display: none;
  min-height: 18px;
  font-size: 12px;
  color: #d00;
  margin-top: 4px;
}

.br-field-error:not(:empty) {
  display: block;
}

.br-rating-field {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.br-rating-field-title {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.br-rating-field-required {
  color: #d30c0c;
}

.br-rating-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.br-rating-picker__star {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.15s;
  display: inline-flex;
  -webkit-tap-highlight-color: transparent;
}

.br-rating-picker__star .br-pkr-fill {
  display: none;
}

.br-rating-picker__star.is-hovered .br-pkr-outline,
.br-rating-picker__star.is-selected .br-pkr-outline {
  display: none;
}

.br-rating-picker__star.is-hovered .br-pkr-fill,
.br-rating-picker__star.is-selected .br-pkr-fill {
  display: block;
}

@media screen and (max-width: 1024px) {
  .br-form-section__wrapper {
    padding-top: 64px;
    background-position: left !important;
  }

  .br-rating-field {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .br-form-section__wrapper {
    padding-top: 50px;
  }

  .br-form-section__title {
    margin-bottom: 24px;
  }

  .contact-form__actions,
  .br-rating-field {
    margin-top: 18px;
  }
}

@keyframes br-star-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.4) rotate(-8deg);
  }
  70% {
    transform: scale(0.95) rotate(4deg);
  }
  100% {
    transform: scale(1.08);
  }
}
.br-rating-picker__star.is-animating {
  animation: br-star-pop 0.4s ease both;
}

/* ---------- Submit button spinner ---------- */
.br-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  justify-content: center;
}
.br-submit-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: br-spin 0.7s linear infinite;
}
@keyframes br-spin {
  to {
    transform: rotate(360deg);
  }
}
.br-submit-btn.is-loading .br-submit-btn__spinner {
  display: block;
}
.br-submit-btn.is-loading .br-submit-btn__text {
  opacity: 0.7;
}

/* ---------- Popup ---------- */
.br-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.br-popup[hidden] {
  display: none;
}

.br-popup__overlay {
  position: absolute;
  inset: 0;
  background: #040911cc;
  animation: br-overlay-in 0.25s ease;
}
@keyframes br-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.br-popup__box {
  position: relative;
  isolation: isolate;
  background: var(--color-bg);
  border-radius: 12px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: br-box-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  color: var(--color-text);
}

.br-popup__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, #ff5c00 0%, #ff5c00 104.27%);

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.br-popup__title {
  margin-bottom: 16px;
}

@keyframes br-box-in {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.br-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #e2e2e2;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.br-popup__close:hover {
  color: #ff5c00;
}

.br-popup__icon {
  display: inline-flex;
  margin-bottom: 20px;
  color: #ff5c00;
  animation: br-icon-in 0.5s 0.2s ease both;
}
@keyframes br-icon-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.br-popup__text {
  margin-bottom: 28px;
}

.br-popup__btn {
  min-width: 140px;
}
