.feedback-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(3.75rem, 5vw, 4.25rem) 0;
  border-block: 1px solid rgba(6, 26, 51, 0.09);
  background:
    radial-gradient(circle at 88% 8%, rgba(74, 144, 226, 0.1), transparent 24rem),
    linear-gradient(180deg, var(--paper) 0%, #faf7f0 58%, var(--paper-2) 100%);
  color: var(--ink);
}

.feedback-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: max(24px, calc((100vw - 1140px) / 2));
  width: min(34vw, 430px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 105, 170, 0.42));
}

.feedback-layout {
  position: relative;
}

.feedback-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: clamp(3rem, 7vw, 6.5rem);
  margin-bottom: clamp(1.5rem, 2.4vw, 1.75rem);
}

.feedback-heading .eyebrow {
  color: var(--blue);
}

.feedback-heading h2 {
  max-width: 10ch;
  margin-top: 0.75rem;
  color: var(--navy);
  font-size: clamp(3rem, 4.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.feedback-heading-rule {
  display: block;
  width: 7.25rem;
  height: 3px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-2), rgba(74, 144, 226, 0.12));
}

.feedback-copy {
  align-self: end;
  padding-bottom: 0.15rem;
}

.feedback-support {
  max-width: 31rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.68;
}

.feedback-proof-stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.9rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.feedback-proof-stat strong {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.feedback-all {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.feedback-all svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 180ms ease;
}

.feedback-all:hover {
  text-decoration: underline;
}

.feedback-all:hover svg {
  transform: translateX(3px);
}

.feedback-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.feedback-control {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(6, 26, 51, 0.17);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  box-shadow: 0 7px 18px rgba(6, 26, 51, 0.06);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.feedback-control svg {
  width: 1.2rem;
  height: 1.2rem;
}

.feedback-control-previous svg {
  transform: rotate(180deg);
}

.feedback-control:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.feedback-control:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

.feedback-shelf {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 1.7vw, 1.3rem);
  border: 1px solid rgba(74, 144, 226, 0.25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(74, 144, 226, 0.08) 1px, transparent 1px) 0 0 / 52px 100%,
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 62%, #0b294c 100%);
  box-shadow:
    0 26px 58px rgba(6, 26, 51, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feedback-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.4rem 0 0.45rem;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.feedback-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.feedback-carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.feedback-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-slide {
  flex: 0 0 clamp(286px, 20.5vw, 296px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feedback-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(138, 184, 226, 0.44);
  border-radius: 19px;
  background: #071a31;
  box-shadow:
    0 14px 34px rgba(2, 12, 24, 0.28),
    0 2px 7px rgba(2, 12, 24, 0.25);
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.feedback-card picture {
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background: #dce9f5;
}

.feedback-card .review-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feedback-card:hover {
    border-color: rgba(117, 185, 255, 0.92);
    transform: translateY(-4px);
    box-shadow:
      0 20px 44px rgba(2, 12, 24, 0.34),
      0 2px 7px rgba(2, 12, 24, 0.25);
  }

  .feedback-card:hover .review-image {
    filter: brightness(1.035) saturate(1.035);
  }
}

.feedback-carousel-progress {
  height: 3px;
  margin: 0.55rem 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(220, 238, 255, 0.22);
}

.feedback-carousel-progress span {
  display: block;
  width: calc(100% / 7);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-soft), var(--blue-3), var(--blue));
  box-shadow: 0 0 12px rgba(43, 127, 211, 0.34);
  transition: width 320ms ease;
}

.feedback-privacy {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.95rem 0 0;
  color: rgba(231, 241, 252, 0.74);
  font-size: 0.78rem;
  line-height: 1.45;
}

.feedback-privacy-icon {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(112, 176, 235, 0.31);
  border-radius: 50%;
  color: #a9d5ff;
}

.feedback-privacy-icon svg {
  width: 1rem;
  height: 1rem;
}

.feedback-section :is(a, button, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--blue-3);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .feedback-intro {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .feedback-heading h2 {
    max-width: none;
  }

  .feedback-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 2rem;
  }

  .feedback-support {
    max-width: 38rem;
  }

  .feedback-actions {
    display: grid;
    justify-items: end;
    margin: 0;
  }

  .feedback-carousel-track {
    gap: 1.125rem;
  }

  .feedback-slide {
    flex-basis: min(296px, calc((100vw - 116px) / 2));
  }
}

@media (max-width: 620px) {
  .feedback-section {
    padding: 3.5rem 0;
  }

  .feedback-intro {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .feedback-heading h2 {
    margin-top: 0.6rem;
    font-size: clamp(2.45rem, 10.8vw, 2.9rem);
  }

  .feedback-heading-rule {
    width: 5.5rem;
    margin-top: 0.75rem;
  }

  .feedback-copy {
    display: block;
  }

  .feedback-support {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .feedback-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.1rem;
  }

  .feedback-shelf {
    margin-inline: -2px;
    padding: 0.8rem 0.65rem 0.7rem;
    border-radius: 22px;
  }

  .feedback-carousel-track {
    gap: 0.875rem;
  }

  .feedback-slide {
    flex-basis: min(300px, calc(100vw - 80px));
  }

  .feedback-card {
    padding: 5px;
    border-radius: 17px;
  }

  .feedback-card picture {
    border-radius: 12px;
  }

  .feedback-privacy {
    align-items: flex-start;
    margin-top: 0.7rem;
    padding-inline: 0.15rem;
    font-size: 0.73rem;
  }
}

@media (max-width: 400px) {
  .feedback-slide {
    flex-basis: clamp(276px, calc(100vw - 104px), 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-carousel-viewport {
    scroll-behavior: auto;
  }

  .feedback-all svg,
  .feedback-control,
  .feedback-card,
  .feedback-card .review-image,
  .feedback-carousel-progress span {
    transition: none;
  }

  .feedback-card:hover,
  .feedback-control:hover:not(:disabled) {
    transform: none;
  }
}
