/**
* Testimonials / Client Feedback Section
* Matches DevFolio design tokens (see main.css :root variables)
*/

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.testimonials-outer {
  padding-bottom: 20px;
}

.testimonials-outer .row {
  --bs-gutter-x: 1.5rem;
}

.feedback-form-panel,
.testimonial-slider-panel {
  background: var(--surface-color);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.feedback-form-panel {
  padding: 32px 28px;
}

.testimonial-slider-panel {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {

  .feedback-form-panel,
  .testimonial-slider-panel {
    padding: 26px 22px;
  }
}

/*--------------------------------------------------------------
# Feedback Form
--------------------------------------------------------------*/
.panel-heading {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.panel-sub {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 22px;
}

.feedback-field-wrap {
  margin-bottom: 16px;
}

.feedback-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.feedback-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--default-color);
  background: var(--background-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
}

textarea.feedback-input {
  resize: vertical;
  min-height: 110px;
}

/*--------------------------------------------------------------
# Star Rating Widget
--------------------------------------------------------------*/
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  color: #d7d7d7;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating label::before {
  content: "\f586";
  /* bootstrap-icons: bi-star-fill */
  font-family: "bootstrap-icons" !important;
  font-style: normal;
}

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

.star-rating label:hover {
  transform: scale(1.15);
}

.rating-hint {
  font-size: 0.8rem;
  margin-top: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/*--------------------------------------------------------------
# Submit Button
--------------------------------------------------------------*/
.feedback-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  border-radius: 25px;
  padding: 10px 26px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feedback-submit-btn:hover {
  background: color-mix(in srgb, var(--accent-color), #000 15%);
  transform: translateY(-1px);
}

.feedback-submit-btn:disabled {
  opacity: 0.65;
  transform: none;
}

/*--------------------------------------------------------------
# Swiper Slider + Cards
--------------------------------------------------------------*/
.testimonial-swiper {
  flex: 1;
  width: 100%;
  padding-bottom: 48px;
}

.testimonial-card {
  background: color-mix(in srgb, var(--background-color), var(--surface-color) 60%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
  color: #f5b301;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-message {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--default-color);
  font-style: italic;
  flex: 1;
  margin-bottom: 18px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #7b2ff7 55%));
  color: var(--contrast-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.testimonial-name {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--heading-color);
  line-height: 1.2;
}

.testimonial-role {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.testimonial-date {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-left: auto;
  white-space: nowrap;
}

/* Pagination bullets */
.testimonial-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: color-mix(in srgb, var(--accent-color), transparent 70%);
  opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Empty State
--------------------------------------------------------------*/
.testimonials-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 220px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.testimonials-empty i {
  font-size: 2.4rem;
  color: color-mix(in srgb, var(--accent-color), transparent 35%);
}

.testimonials-empty p {
  margin: 0;
  font-size: 0.95rem;
}
