#why-rh-testimonials.rh-reviews{
  --bg:#0b1220;
  --bg-2:#0f172a;
  --card:#111c31;
  --card-2:rgba(255,255,255,.04);
  --fg:#ffffff;
  --muted:#b9c5d6;
  --soft:#8fa3bf;
  --accent:#29c582;
  --accent-2:#68e0ad;
  --border:rgba(255,255,255,.10);
  --shadow:0 18px 50px rgba(0,0,0,.34);
  --radius:20px;
  --max:1280px;
  position:relative;
  overflow:hidden;
  color:var(--fg);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(41,197,130,.12), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(63,107,255,.10), transparent 60%),
    linear-gradient(180deg, #0c1424 0%, #0b1220 100%);
  padding:clamp(56px,6vw,92px) 18px;
}

#why-rh-testimonials.rh-reviews *{ box-sizing:border-box; }

.rh-reviews__inner{
  max-width:var(--max);
  margin:0 auto;
  position:relative;
  z-index:2;
}

.rh-reviews__head{
  text-align:center;
  max-width:860px;
  margin:0 auto 28px;
}

.rh-reviews__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  color:var(--accent-2);
  background:rgba(41,197,130,.10);
  border:1px solid rgba(41,197,130,.28);
  font:700 12px/1 Inter,system-ui,Segoe UI,Arial,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.rh-reviews__eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 6px rgba(41,197,130,.12);
}

.rh-reviews__title{
  margin:14px 0 10px;
  font:800 clamp(28px,4vw,46px)/1.05 Inter,system-ui,Segoe UI,Arial,sans-serif;
  letter-spacing:-.03em;
}

.rh-reviews__sub{
  margin:0 auto;
  max-width:68ch;
  color:var(--muted);
  font:400 clamp(15px,1.8vw,18px)/1.75 Inter,system-ui,Segoe UI,Arial,sans-serif;
}

.rh-reviews__stats{
  margin:18px auto 0;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

.rh-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#e7edf7;
  font:600 13px/1 Inter,system-ui,Segoe UI,Arial,sans-serif;
  backdrop-filter:blur(8px);
}

.rh-chip strong{
  color:#fff;
  font-weight:800;
}

.rh-chip svg{
  width:15px;
  height:15px;
  fill:var(--accent);
  flex:0 0 auto;
}

.rh-reviews__cta{
  margin-top:18px;
  display:flex;
  justify-content:center;
}

.rh-reviews__cta--bottom{
  margin-top:22px;
}

.rh-add-review-btn,
.rhpr-submit-btn{
  appearance:none;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:14px 22px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color:#062014;
  font:800 14px/1 Inter,system-ui,Segoe UI,Arial,sans-serif;
  letter-spacing:.02em;
  box-shadow:0 14px 30px rgba(41,197,130,.24);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.rh-add-review-btn:hover,
.rhpr-submit-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(41,197,130,.28);
  filter:saturate(1.05);
}

.rh-marquee-shell{
  position:relative;
  margin-top:30px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  box-shadow:var(--shadow);
  padding:16px;
  overflow:hidden;
}

.rh-marquee-shell::before,
.rh-marquee-shell::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:88px;
  z-index:3;
  pointer-events:none;
}

.rh-marquee-shell::before{
  left:0;
  background:linear-gradient(90deg, rgba(11,18,32,1) 0%, rgba(11,18,32,0) 100%);
}

.rh-marquee-shell::after{
  right:0;
  background:linear-gradient(270deg, rgba(11,18,32,1) 0%, rgba(11,18,32,0) 100%);
}

.rh-marquee{ display:none; }

.rh-marquee__row{
  overflow:hidden;
  position:relative;
}

.rh-marquee__row + .rh-marquee__row{ margin-top:14px; }

.rh-marquee__track{
  display:flex;
  gap:14px;
  width:max-content;
  will-change:transform;
}

.rh-marquee__row--left .rh-marquee__track{
  animation:rhScrollLeft 58s linear infinite;
}

.rh-marquee__row--right .rh-marquee__track{
  animation:rhScrollRight 62s linear infinite;
  transform:translateX(-50%);
}

.rh-marquee-shell:hover .rh-marquee__track{
  animation-play-state:paused;
}

@keyframes rhScrollLeft{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@keyframes rhScrollRight{
  from{ transform:translateX(-50%); }
  to{ transform:translateX(0); }
}

.rh-card{
  width:350px;
  min-height:220px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(10px);
  transition:transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.rh-card:hover{
  transform:translateY(-5px);
  border-color:rgba(41,197,130,.38);
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
  box-shadow:0 18px 40px rgba(0,0,0,.22);
}

.rh-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.rh-stars{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}

.rh-stars svg{
  width:17px;
  height:17px;
  fill:var(--accent);
  filter:drop-shadow(0 2px 8px rgba(41,197,130,.20));
}

.rh-quote-icon{
  width:34px;
  height:34px;
  flex:0 0 auto;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(41,197,130,.10);
  border:1px solid rgba(41,197,130,.20);
}

.rh-quote-icon svg{
  width:16px;
  height:16px;
  fill:var(--accent);
}

.rh-card__quote{
  margin:0;
  color:#eef4fb;
  font:500 15px/1.78 Inter,system-ui,Segoe UI,Arial,sans-serif;
  letter-spacing:-.01em;
}

.rh-card__footer{
  display:flex;
  align-items:center;
  gap:12px;
  padding-top:4px;
  border-top:1px solid rgba(255,255,255,.08);
}

.rh-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  flex:0 0 auto;
}

.rh-person{ min-width:0; }

.rh-name{
  color:#fff;
  font:800 14px/1.2 Inter,system-ui,Segoe UI,Arial,sans-serif;
  margin:0 0 4px;
}

.rh-loc{
  color:var(--soft);
  font:600 12px/1.2 Inter,system-ui,Segoe UI,Arial,sans-serif;
  margin:0;
}

.rh-slider{
  display:block;
  margin-top:26px;
}

.rh-slider__track{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding:2px 2px 6px;
}

.rh-slider__track::-webkit-scrollbar{ display:none; }

.rh-slider .rh-card{
  width:min(86vw, 380px);
  min-width:min(86vw, 380px);
  scroll-snap-align:start;
  min-height:230px;
}

.rh-slider__hint{
  margin-top:10px;
  text-align:center;
  color:var(--soft);
  font:600 12px/1.4 Inter,system-ui,Segoe UI,Arial,sans-serif;
}

.rhpr-empty-state{
  padding:40px 20px;
  text-align:center;
  color:var(--muted);
  font:600 16px/1.6 Inter,system-ui,Segoe UI,Arial,sans-serif;
}

.rhpr-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  opacity:0;
  visibility:hidden;
  transition:opacity .24s ease, visibility .24s ease;
}

.rhpr-modal.is-open{
  opacity:1;
  visibility:visible;
}

.rhpr-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(5,10,20,.72);
  backdrop-filter:blur(8px);
}

.rhpr-modal__dialog{
  position:relative;
  z-index:2;
  width:min(92vw, 680px);
  max-height:min(88vh, 860px);
  overflow:auto;
  margin:5vh auto;
  padding:28px;
  border-radius:24px;
  background:linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 28px 60px rgba(0,0,0,.35);
  color:#fff;
}

.rhpr-modal__close{
  appearance:none;
  border:0;
  background:rgba(255,255,255,.06);
  color:#fff;
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  position:absolute;
  top:16px;
  right:16px;
}

.rhpr-modal__head{
  margin-bottom:20px;
}

.rhpr-modal__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  color:var(--accent-2);
  background:rgba(41,197,130,.10);
  border:1px solid rgba(41,197,130,.28);
  font:700 12px/1 Inter,system-ui,Segoe UI,Arial,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.rhpr-modal__title{
  margin:14px 0 10px;
  font:800 clamp(24px,3vw,34px)/1.08 Inter,system-ui,Segoe UI,Arial,sans-serif;
  letter-spacing:-.03em;
}

.rhpr-modal__sub{
  margin:0;
  color:var(--muted);
  font:400 15px/1.75 Inter,system-ui,Segoe UI,Arial,sans-serif;
}

.rhpr-notice{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:14px;
  font:700 14px/1.5 Inter,system-ui,Segoe UI,Arial,sans-serif;
}

.rhpr-notice--success{
  background:rgba(41,197,130,.12);
  border:1px solid rgba(41,197,130,.3);
  color:#a5f1ca;
}

.rhpr-notice--error{
  background:rgba(255,99,99,.12);
  border:1px solid rgba(255,99,99,.24);
  color:#ffd2d2;
}

.rhpr-form__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.rhpr-field{ margin-bottom:16px; }

.rhpr-field label{
  display:block;
  margin-bottom:8px;
  color:#eef4fb;
  font:700 13px/1.3 Inter,system-ui,Segoe UI,Arial,sans-serif;
}

.rhpr-field label span{ color:var(--accent-2); }

.rhpr-field input[type="text"],
.rhpr-field textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#fff;
  padding:14px 16px;
  outline:none;
  font:500 14px/1.5 Inter,system-ui,Segoe UI,Arial,sans-serif;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.rhpr-field input[type="text"]:focus,
.rhpr-field textarea:focus{
  border-color:rgba(41,197,130,.48);
  box-shadow:0 0 0 4px rgba(41,197,130,.12);
  background:rgba(255,255,255,.06);
}

.rhpr-stars{
  display:inline-flex;
  flex-direction:row-reverse;
  gap:8px;
}

.rhpr-stars input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.rhpr-stars label{
  width:28px;
  height:28px;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
}

.rhpr-stars label svg{
  width:28px;
  height:28px;
  fill:rgba(255,255,255,.18);
  transition:transform .18s ease, fill .18s ease, filter .18s ease;
}

.rhpr-stars label:hover svg,
.rhpr-stars label:hover ~ label svg,
.rhpr-stars input:checked + label svg,
.rhpr-stars input:checked + label ~ label svg{
  fill:var(--accent);
  filter:drop-shadow(0 4px 10px rgba(41,197,130,.25));
}

.rhpr-stars label:hover svg{ transform:scale(1.06); }

.rhpr-form__actions{
  margin-top:8px;
}

.rhpr-honeypot{
  position:absolute !important;
  left:-9999px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

html.rhpr-modal-open,
html.rhpr-modal-open body{
  overflow:hidden;
}

@media (min-width: 992px){
  .rh-marquee{ display:block; }
  .rh-slider{ display:none; }
}

@media (max-width: 991.98px){
  .rh-marquee-shell{
    padding:14px;
    border-radius:22px;
  }
  .rh-marquee-shell::before,
  .rh-marquee-shell::after{
    display:none;
  }
}

@media (max-width: 767.98px){
  .rhpr-form__grid{ grid-template-columns:1fr; }
  .rhpr-modal__dialog{
    width:min(94vw, 680px);
    margin:3vh auto;
    padding:22px 18px;
  }
}

@media (max-width: 640px){
  #why-rh-testimonials.rh-reviews{
    padding:48px 14px;
  }
  .rh-reviews__title{ font-size:30px; }
  .rh-card{
    padding:16px;
    border-radius:16px;
  }
  .rh-card__quote{ font-size:14.5px; }
  .rh-add-review-btn,
  .rhpr-submit-btn{ width:100%; }
}

@media (prefers-reduced-motion: reduce){
  .rh-marquee__track{ animation:none !important; }
  .rh-slider__track{ scroll-behavior:auto; }
  .rhpr-modal,
  .rh-add-review-btn,
  .rhpr-submit-btn,
  .rhpr-stars label svg{ transition:none !important; }
}
