/* Reviews Page Specific Styles */

.page-intro-section {
  padding: 40px 0 30px;
  background: linear-gradient(135deg, #FFFFFF 0%, #EAF6FC 100%);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-btn);
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 8px;
  color: #B0C4DE;
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs li:last-child span {
  color: var(--color-heading);
  font-weight: 500;
}

.page-intro-content {
  max-width: 800px;
  margin-bottom: 35px;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 15px;
}

.page-lead {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Rating Overview Card */
.rating-overview-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.rating-stat-main {
  text-align: center;
  min-width: 180px;
}

.rating-score {
  font-size: 52px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: 5px;
}

.rating-stars-lg {
  color: #FFB800;
  font-size: 22px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.rating-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

.rating-divider {
  width: 1px;
  height: 80px;
  background: var(--color-border);
}

.rating-breakdown {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-bar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.rating-bar-item span {
  width: 220px;
  color: var(--color-text-muted);
}

.bar-outer {
  flex-grow: 1;
  height: 8px;
  background: var(--bg-section);
  border-radius: 4px;
  overflow: hidden;
}

.bar-inner {
  height: 100%;
  background: var(--color-btn);
  border-radius: 4px;
}

.rating-bar-item strong {
  font-size: 13px;
  color: var(--color-heading);
  min-width: 60px;
  text-align: right;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Filter Tabs */
.review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-tab {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  padding: 10px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-tab:hover {
  border-color: var(--color-btn);
  color: var(--color-btn);
}

.filter-tab.active {
  background: var(--color-btn);
  color: #FFFFFF;
  border-color: var(--color-btn);
  box-shadow: 0 4px 12px rgba(35, 125, 181, 0.25);
}

/* Detailed Reviews Feed */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.review-detailed-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.review-detailed-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--bg-section);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #237DB5, #80C7E2);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(35, 125, 181, 0.2);
}

.author-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-heading);
}

.author-location {
  font-size: 13px;
  color: var(--color-text-muted);
}

.review-badge-wrap {
  text-align: right;
}

.procedure-tag {
  display: inline-block;
  background: var(--bg-section);
  color: var(--color-btn);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
}

.star-rating {
  color: #FFB800;
  letter-spacing: 2px;
  font-size: 16px;
}

.review-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.chip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.chip strong {
  color: var(--color-heading);
}

.review-text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.review-text:last-of-type {
  margin-bottom: 0;
}

.review-card-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.verified-label {
  color: #10B981;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-date-text {
  color: var(--color-text-muted);
}

/* Guarantee Banner */
.reviews-guarantee-banner {
  margin-top: 50px;
  background: linear-gradient(135deg, #EAF6FC 0%, #FFFFFF 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.guarantee-icon {
  width: 64px;
  height: 64px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.guarantee-text h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.guarantee-text p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Review Form Styling */
.review-form-wrapper {
  margin-top: 0;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: #FFFFFF;
  resize: vertical;
  transition: border-color 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-btn);
}

.star-rating-select {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.star-rating-select input {
  display: none;
}

.star-rating-select label {
  font-size: 26px;
  color: #CBD5E1;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 0 !important;
}

.star-rating-select label:hover,
.star-rating-select label:hover ~ label,
.star-rating-select input:checked ~ label {
  color: #FFB800;
}

/* FAQ Accordion */
.faq-accordion-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h4 {
  font-size: 16px;
  font-weight: 500;
}

.faq-icon {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-btn);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-section);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 18px 25px;
  border-top: 1px solid var(--color-border);
}

.faq-answer p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Responsive Adjustments for Reviews Page */
@media (max-width: 992px) {
  .rating-overview-card {
    flex-direction: column;
    text-align: center;
  }

  .rating-divider {
    width: 100%;
    height: 1px;
  }

  .rating-bar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .rating-bar-item span {
    width: 100%;
  }

  .bar-outer {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .review-card-head {
    flex-direction: column;
    gap: 12px;
  }

  .review-badge-wrap {
    text-align: left;
  }

  .page-title {
    font-size: 28px;
  }

  .reviews-guarantee-banner {
    flex-direction: column;
    text-align: center;
  }
}