
.section-reviews .container {
  position: relative;
  z-index: 1;
}

.reviews-hero-card {
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  border-radius: 26px;
  display: grid;
  gap: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reviews-hero-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reviews-title {
  margin: 0;
  font-size: clamp(1.85rem, 1.6rem + 0.9vw, 2.35rem);
  font-weight: 700;
}

.reviews-sub {
  margin: 0;
  max-width: 640px;
  line-height: 1.65;
  color: rgba(226, 235, 255, 0.76);
}

.reviews-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reviews-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.reviews-highlights li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(229, 238, 255, 0.78);
  line-height: 1.55;
}

.reviews-highlights i {
  font-size: 1.2rem;
  color: var(--mint);
  margin-top: 0.1rem;
}

.reviews-panel {
  padding: clamp(1.75rem, 1.5rem + 0.75vw, 2.4rem);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 3.25rem);
}

.reviews-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviews-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.reviews-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reviews-filter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.reviews-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reviews-filter-form .form-label {
  font-weight: 500;
  margin-bottom: 0.35rem;
}


.reviews-filter-form .form-select,
.reviews-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  border-radius: 14px;
  border: 1px solid rgba(118, 178, 255, 0.32);
  color: #dce7ff;
  background-color: rgba(10, 16, 28, 0.92);
  background-image:
    linear-gradient(140deg, rgba(16, 28, 46, 0.9), rgba(8, 18, 34, 0.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' fill='none'%3E%3Cpath d='M2 2l8 8 8-8' stroke='%2388c8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 1.05rem center;
  background-size: cover, 18px 10px;
  box-shadow:
    0 0 0 1px rgba(6, 12, 22, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-image 0.2s ease, background-color 0.2s ease;
}

.reviews-filter-form .form-select:hover,
.reviews-select:hover {
  border-color: rgba(142, 206, 255, 0.45);
}

.reviews-filter-form .form-select:focus,
.reviews-select:focus {
  border-color: rgba(142, 206, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(17, 38, 66, 0.85),
    0 0 0 4px rgba(90, 170, 255, 0.18);
}

.reviews-filter-form .form-select:focus-visible,
.reviews-filter-form .form-select:active,
.reviews-select:focus-visible,
.reviews-select:active {
  background-color: rgba(12, 20, 34, 0.96);
  background-image:
    linear-gradient(140deg, rgba(23, 40, 64, 0.96), rgba(12, 24, 42, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' fill='none'%3E%3Cpath d='M2 10l8-8 8 8' stroke='%2388c8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.reviews-select option,
.reviews-filter-form .form-select option {
  background-color: #0b111c;
  color: #f5f6ff;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-card article {
  padding: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem);
  border-radius: 20px;
  background: rgba(11, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.review-card article:hover,
.review-card article:focus-within {
  border-color: rgba(93, 245, 201, 0.55);
  transform: translateY(-2px);
}

.review-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.review-card__headline {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.review-card__stars {
  display: inline-flex;
  gap: 0.25rem;
  color: #f6c344;
  font-size: 1.05rem;
}

.review-card__body p {
  margin: 0;
  white-space: pre-wrap;
  color: rgba(233, 239, 255, 0.9);
  line-height: 1.65;
}

.review-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: rgba(238, 243, 255, 0.88);
}

.review-card__footer .text-secondary {
  color: rgba(176, 192, 221, 0.8) !important;
}

.reviews-modal {
  background: rgba(15, 20, 31, 0.2);
  border: 1px solid rgba(113, 152, 210, 0.22);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e9efff;
}

.reviews-modal__header {
  padding: 1.35rem 1.6rem 0.85rem;
  align-items: flex-start;
}

.reviews-modal__body {
  padding: 0 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reviews-modal .modal-title {
  font-size: clamp(1.45rem, 1.25rem + 0.6vw, 1.7rem);
  font-weight: 600;
}

.reviews-modal .btn-close {
  filter: invert(90%);
  opacity: 0.8;
}

.reviews-modal .btn-close:hover,
.reviews-modal .btn-close:focus {
  opacity: 1;
}

.reviews-modal .form-label {
  font-weight: 500;
}

.reviews-modal .form-text {
  color: rgba(173, 192, 222, 0.75);
}

.empty-state {
  text-align: center;
  padding: clamp(2.25rem, 2rem + 1vw, 3rem) 1.5rem;
  border-radius: 22px;
  background: rgba(10, 13, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(224, 234, 255, 0.86);
}

.reviews-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: rgba(198, 210, 233, 0.75);
}

@media (max-width: 1199.98px) {
  .reviews-hero-card {
    grid-template-columns: 1fr;
  }

  .reviews-highlights {
    max-width: 520px;
  }
}

@media (max-width: 991.98px) {
  .section-reviews {
    padding: 56px 0 60px;
  }

  .reviews-panel {
    border-radius: 20px;
  }
}

@media (max-width: 767.98px) {
  .reviews-hero-card {
    border-radius: 20px;
  }

  .reviews-title {
    font-size: clamp(1.6rem, 1.45rem + 0.8vw, 1.95rem);
  }

  .reviews-panel__header {
    align-items: stretch;
  }
}

@media (max-width: 575.98px) {
  .reviews-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reviews-filter-actions .btn,
  .reviews-filter-actions .btn-link {
    width: 100%;
    text-align: center;
  }
}
