/* Public testimonials page. Page styles are loaded globally, so every rule is scoped. */

body.Testimonials,
body.Testimonials button,
body.Testimonials input,
body.Testimonials select,
body.Testimonials textarea {
  font-family: "Montserrat", sans-serif;
}

body.Testimonials .app-page-content {
  padding: 0 !important;
}

body.Testimonials .testimonials-page {
  color: #25153c;
  background: #ffffff;
}

body.Testimonials .testimonials-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

body.Testimonials .testimonials-hero {
  padding: 112px 0 72px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 10%, rgba(216, 180, 254, .42), transparent 29%),
    radial-gradient(circle at 85% 24%, rgba(254, 215, 170, .52), transparent 30%),
    linear-gradient(135deg, #fff 0%, #faf5ff 54%, #fff7ed 100%);
}

body.Testimonials .testimonials-hero__inner {
  max-width: 800px;
}

body.Testimonials .testimonials-kicker {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: #7e22ce;
  background: #f3e8ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

body.Testimonials .testimonials-kicker--orange {
  color: #c2410c;
  background: #ffedd5;
}

body.Testimonials .testimonials-hero h1,
body.Testimonials .testimonials-section-heading h2,
body.Testimonials .testimonials-cta h2 {
  margin: 24px 0 18px;
  font-weight: 800;
  letter-spacing: -.045em;
}

body.Testimonials .testimonials-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
}

body.Testimonials .testimonials-hero h1 span {
  background: linear-gradient(90deg, #9333ea, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.Testimonials .testimonials-hero p {
  max-width: 660px;
  margin: 0 auto !important;
  color: #6c5393;
  font-size: 19px;
  line-height: 1.65;
}

body.Testimonials .testimonials-stories {
  padding: 88px 0;
}

body.Testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.Testimonials .testimonial-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #eee7f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(65, 29, 105, .08);
  transition: box-shadow .2s ease, transform .2s ease;
}

body.Testimonials .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(65, 29, 105, .15);
}

body.Testimonials .testimonial-card__quote {
  position: absolute;
  top: 10px;
  right: 22px;
  color: #f3e8ff;
  font-size: 84px;
  font-family: Georgia, serif;
  line-height: 1;
}

body.Testimonials .testimonial-card__stars {
  position: relative;
  z-index: 1;
  color: #fbbf24;
  font-size: 19px;
  letter-spacing: 2px;
}

body.Testimonials .testimonial-card__stars span {
  color: #e5e7eb;
}

body.Testimonials .testimonial-card blockquote {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 20px 0 26px;
  color: #4c365e;
  font-size: 15px;
  font-style: normal;
  line-height: 1.68;
}

body.Testimonials .testimonial-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #eee7f4;
}

body.Testimonials .testimonial-card__person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

body.Testimonials .testimonial-card__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #9333ea, #f97316);
  font-weight: 700;
}

body.Testimonials .testimonial-card__person strong,
body.Testimonials .testimonial-card__person span,
body.Testimonials .testimonial-card__person small {
  display: block;
}

body.Testimonials .testimonial-card__person strong {
  overflow: hidden;
  color: #25153c;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.Testimonials .testimonial-card__person span,
body.Testimonials .testimonial-card__person small {
  color: #806a91;
  font-size: 12px;
  line-height: 1.35;
}

body.Testimonials .testimonial-card__revenue {
  flex: 0 0 auto;
  background: linear-gradient(90deg, #9333ea, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
}

body.Testimonials .testimonials-empty {
  padding: 92px 0;
  text-align: center;
}

body.Testimonials .testimonials-empty h2 {
  margin: 0 0 10px;
}

body.Testimonials .testimonials-empty p {
  margin: 0 !important;
  color: #6c5393;
}

body.Testimonials .testimonials-videos {
  padding: 84px 0;
  background: #fafafa;
}

body.Testimonials .testimonials-section-heading {
  margin-bottom: 42px;
  text-align: center;
}

body.Testimonials .testimonials-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.13;
}

body.Testimonials .testimonials-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.Testimonials .testimonial-video {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #552083, #ef6d22);
  box-shadow: 0 10px 24px rgba(65, 29, 105, .16);
  text-align: center;
  text-decoration: none;
}

body.Testimonials .testimonial-video::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,.27), transparent 35%);
  content: "";
}

body.Testimonials .testimonial-video__play,
body.Testimonials .testimonial-video strong,
body.Testimonials .testimonial-video small {
  position: relative;
  z-index: 1;
}

body.Testimonials .testimonial-video__play {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.19);
  font-size: 21px;
  padding-left: 3px;
}

body.Testimonials .testimonial-video strong {
  padding: 0 18px;
  font-size: 15px;
}

body.Testimonials .testimonial-video small {
  margin-top: 5px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
}

body.Testimonials .testimonials-cta {
  padding: 94px 0;
  color: #fff;
  background: linear-gradient(135deg, #7e22ce, #f97316);
  text-align: center;
}

body.Testimonials .testimonials-cta h2 {
  margin-top: 0;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.1;
}

body.Testimonials .testimonials-cta p {
  margin: 0 0 30px !important;
  color: rgba(255,255,255,.9);
  font-size: 18px;
}

body.Testimonials .testimonials-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border-radius: 12px;
  color: #7e22ce;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 21, 60, .18);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

body.Testimonials .testimonials-cta__button:hover {
  color: #6b21a8;
  background: #faf5ff;
}

@media (max-width: 900px) {
  body.Testimonials .testimonials-grid,
  body.Testimonials .testimonials-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.Testimonials .testimonials-hero {
    padding: 78px 0 56px;
  }

  body.Testimonials .testimonials-hero p {
    font-size: 16px;
  }

  body.Testimonials .testimonials-stories,
  body.Testimonials .testimonials-videos,
  body.Testimonials .testimonials-cta {
    padding: 60px 0;
  }

  body.Testimonials .testimonials-grid,
  body.Testimonials .testimonials-video-grid {
    grid-template-columns: 1fr;
  }

  body.Testimonials .testimonial-card {
    min-height: 0;
  }
}


/* Testimonial video playback ------------------------------------------------ */
body.Testimonials .testimonial-video {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

body.Testimonials .testimonial-video:focus-visible {
  outline: 3px solid #9333ea;
  outline-offset: 4px;
}

.testimonial-video-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 10, 31, .72);
  opacity: 0;
  transition: opacity .18s ease;
}

.testimonial-video-overlay.is-visible {
  opacity: 1;
}

.testimonial-video-overlay__dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: #17101f;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
  transform: translateY(12px) scale(.98);
  transition: transform .18s ease;
}

.testimonial-video-overlay.is-visible .testimonial-video-overlay__dialog {
  transform: translateY(0) scale(1);
}

.testimonial-video-overlay__dialog h2 {
  margin: 0 42px 14px 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.testimonial-video-overlay__dialog video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 135px);
  border-radius: 10px;
  background: #000;
}

.testimonial-video-overlay__close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.testimonial-video-overlay__close:hover {
  background: rgba(255, 255, 255, .28);
}

/* Admin upload control ------------------------------------------------------ */
.testimonials-video-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.testimonials-video-upload__picker {
  position: relative;
  display: block;
  width: min(320px, 100%);
  min-height: 128px;
  overflow: hidden;
  border: 1px dashed #c4b5d4;
  border-radius: 10px;
  background: #faf8fc;
  cursor: pointer;
}

.testimonials-video-upload__picker:hover {
  border-color: #9333ea;
  background: #f7f0ff;
}

.testimonials-video-upload__picker.is-uploading {
  pointer-events: none;
  opacity: .62;
}

.testimonials-video-upload__picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.testimonials-video-upload__preview {
  display: grid;
  min-height: 128px;
  place-items: center;
}

.testimonials-video-upload__preview video,
.testimonials-video-upload__listing-preview {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 180px;
  border-radius: 8px;
  background: #000;
}

.testimonials-video-upload__listing-preview {
  min-width: 120px;
  max-width: 180px;
  max-height: 86px;
}

.testimonials-video-upload__empty {
  padding: 18px;
  color: #6c5393;
  font-size: 13px;
  text-align: center;
}

.testimonials-video-upload__status {
  color: #6c5393;
  font-size: 13px;
}

