/* ============================================================
   Blog Reviews — Frontend CSS (MyForex theme)
   ============================================================ */

/* Section */
.br-section {
  background: #f6f8fa;
  padding: 50px 0;
}

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

/* Title */
.br-section__title {
  text-align: left;
  color: #556270;
  margin-bottom: 40px;
}

@media screen and (max-width: 1024px) {
  .br-section__title {
    margin-bottom: 24px;
  }
}

/* Empty state */
.br-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  box-shadow: 0px 10px 25px 0px #0000000d;
  border-radius: 12px;
  padding: 60px 40px;
  margin-bottom: 40px;
}

.br-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 200, 128, 0.08);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.br-empty__text {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: #556270;
  margin-bottom: 8px;
}

.br-empty__sub {
  font-size: 15px;
  line-height: 1.6;
  color: #77818c;
}

@media screen and (max-width: 1024px) {
  .br-empty {
    padding: 32px 15px;
  }
}

@media screen and (max-width: 767px) {
  .br-empty__text {
    font-size: 18px;
  }
}

/* ============================================================
   Reviews list
   ============================================================ */

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

@media screen and (max-width: 1024px) {
  .br-list {
    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;
}

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

/* Card */
.br-card {
  background: #ffffff;
  box-shadow: 0px 10px 25px 0px #0000000d;
  border-radius: 12px;
  padding: 24px;
}

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

.br-card__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.br-card__author {
  font-weight: 500;
  color: #1a3c6f;
}

.br-card__date {
  font-size: 14px;
  line-height: 1.2;
  color: rgba(119, 129, 140, 0.97);
}

.br-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

@media screen and (max-width: 600px) {
  .br-card__stars svg {
    width: 20px;
    height: 20px;
  }
}

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

.br-card__content {
  color: #000000;
  line-height: 1.6;
}

/* Admin reply */
.br-card__reply {
  margin-top: 16px;
}

.br-card__reply-label {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #1a3c6f;
  margin-bottom: 10px;
}

.br-card__reply-content {
  background: #f6f8fa;
  box-shadow: 0px 10px 25px 0px #0000000d;
  border-radius: 8px;
  padding: 18px 24px;
  margin-left: 32px;
  color: #000000;
  line-height: 1.6;
}

@media screen and (max-width: 1024px) {
  .br-card__reply-content {
    margin-left: 16px;
  }
}

@media screen and (max-width: 767px) {
  .br-card {
    padding: 24px 15px;
  }

  .br-card__reply-content {
    padding: 16px;
  }
}

/* Show more */
.br-show-more__container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.br-show-more {
  cursor: pointer;
  color: rgba(0, 200, 128, 0.97);
  background: transparent;
  border: none;
  padding: 10px 15px;
  margin: -10px -15px;
  font-size: inherit;
  font-family: inherit;
  transition: opacity 0.2s;
}

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

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

/* ============================================================
   Form
   ============================================================ */

.br-form-section__wrapper {
  margin: 0 15px;
}

.br-form-section {
  background: #ffffff;
  box-shadow: 0px 10px 25px 0px #0000000d;
  border-radius: 12px;
  padding: 30px 24px;
}

@media screen and (max-width: 1024px) {
  .br-form-section__wrapper {
    margin: 0;
  }

  .br-form-section {
    padding: 24px 15px;
  }
}

.br-form-section__title {
  color: #1a3c6f;
  text-align: left;
  margin-bottom: 18px;
}

/* Grid: name | email */
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}

@media screen and (max-width: 767px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

/* Label */
.br-form-section .contact-form__label {
  display: block;
  font-size: 18px;
  line-height: 24px;
  color: #556270;
  margin-bottom: 8px;
}

@media screen and (max-width: 1024px) {
  .br-form-section .contact-form__label {
    font-size: 16px;
    line-height: 18px;
  }
}

.contact-form__required {
  color: #d30c0c;
  margin-left: 2px;
}

/* Input */
.br-form-section .contact-form__input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(119, 129, 140, 0.97);
  border-radius: 6px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.4;
  font-family: "Roboto", sans-serif;
  color: #556270;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.br-form-section .contact-form__input:focus {
  border-color: #00c880;
  outline: none;
}

.br-form-section .contact-form__input::placeholder {
  color: #aaadb8;
}

/* Textarea */
.contact-form__textarea {
  width: 100%;
  height: 200px;
  resize: none;
  border: 1px solid rgba(119, 129, 140, 0.97);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.6;
  font-family: "Roboto", sans-serif;
  color: #556270;
  background: #ffffff;
  box-sizing: border-box;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.contact-form__textarea:focus {
  border-color: #00c880;
  outline: none;
}

.contact-form__textarea::placeholder {
  color: #aaadb8;
}

/* Rating */
.br-rating-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
}

.br-rating-field-title {
  font-size: 18px;
  line-height: 24px;
  color: #556270;
}

@media screen and (max-width: 1024px) {
  .br-rating-field-title {
    font-size: 16px;
    line-height: 18px;
  }
}

.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 svg,
.br-rating-picker__star path {
  pointer-events: none;
}

.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;
}

@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;
}

/* Field error */
.br-field-error {
  display: none;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: #d30c0c;
  margin-top: 4px;
}

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

/* Actions */
.contact-form__actions {
  display: flex;
  justify-content: flex-end;
}

/* Submit button spinner */
.br-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.br-submit-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  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: rgba(0, 0, 0, 0.5);
  animation: br-overlay-in 0.25s ease;
}

@keyframes br-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.br-popup__box {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0px 10px 25px 0px #0000000d;
  animation: br-box-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@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: #556270;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}

.br-popup__close:hover {
  color: #00c880;
}

.br-popup__icon {
  display: inline-flex;
  margin-bottom: 20px;
  color: #00c880;
  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__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a3c6f;
  margin-bottom: 12px;
}

.br-popup__text {
  font-size: 16px;
  line-height: 1.6;
  color: #556270;
  margin-bottom: 28px;
}

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

@media screen and (max-width: 480px) {
  .br-popup__box {
    padding: 40px 24px 32px;
  }
}
