/* =========================================================
   Patient reviews page
   Builds on the tokens already in css/style.css:
   --primary-red (#009679), --dark-red, --light-red,
   --dark-text, --light-text, --mid-gray, --light-gray, --white
   ========================================================= */

.rv-page {
  padding-top: 120px;
}

/* Amber for stars — a teal star reads as a brand mark, not a rating */
.rv-page {
  --rv-star: #f0a92b;
  --rv-tint: #f4fbf9;
}

/* ---------- Heading ---------- */
.rv-head {
  text-align: center;
  max-width: 54ch;
  margin: 0 auto 2rem;
}

.rv-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.15;
}

.rv-h1 em {
  font-style: normal;
  color: var(--primary-red);
}

.rv-lead {
  color: var(--light-text);
  margin-top: 0.75rem;
  font-size: 1.03rem;
}

/* ---------- Stat strip ---------- */
.rv-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--rv-tint);
  border: 1px solid var(--light-red);
  border-radius: 16px;
  padding: 1.3rem 1rem;
  margin-bottom: 1.6rem;
}

.rv-stat {
  flex: 1;
  min-width: 128px;
  text-align: center;
  padding: 0 1.2rem;
  border-right: 1px solid var(--light-red);
}

.rv-stat:last-child { border-right: 0; }

.rv-stat .n {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--dark-red);
  font-variant-numeric: tabular-nums;
}

.rv-stat .n .of {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-text);
}

.rv-stat .l {
  font-size: 0.75rem;
  color: var(--light-text);
  margin-top: 0.35rem;
}

.rv-stat .rv-stars { margin-top: 0.3rem; display: block; }

.rv-stars {
  color: var(--rv-star);
  letter-spacing: 1.5px;
  font-size: 0.84rem;
  display: inline-block;
}

/* ---------- Rating distribution (appears past the threshold) ---------- */
.rv-dist {
  max-width: 420px;
  margin: 0 auto 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rv-dist .row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  color: var(--light-text);
}

.rv-dist .lbl { width: 30px; flex: none; font-variant-numeric: tabular-nums; }

.rv-dist .bar {
  flex: 1;
  height: 7px;
  background: var(--mid-gray);
  border-radius: 999px;
  overflow: hidden;
}

.rv-dist .bar span {
  display: block;
  height: 100%;
  background: var(--rv-star);
  border-radius: 999px;
}

.rv-dist .n { width: 24px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }

/* ---------- Filter chips ---------- */
.rv-chips {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--mid-gray);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--light-text);
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
}

.rv-chip span { font-size: 0.74rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.rv-chip:hover { border-color: var(--primary-red); color: var(--primary-red); }

.rv-chip.on {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
  font-weight: 600;
}

.rv-chip.on span { opacity: 0.75; }

/* ---------- Masonry wall ---------- */
.rv-wall {
  column-count: 3;
  column-gap: 1.4rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) { .rv-wall { column-count: 2; } }
@media (max-width: 600px) { .rv-wall { column-count: 1; } }

.rv-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rv-card:hover {
  box-shadow: 0 14px 34px rgba(16, 40, 35, 0.09);
  transform: translateY(-2px);
}

/* The one review she pins — gives the eye a place to land */
.rv-card.is-feat {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--light-red);
}

.rv-card.is-hidden { display: none; }

.rv-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.rv-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--light-red);
  color: var(--dark-red);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex: none;
}

/* Anonymous: a soft circle, not a dash that reads as a bug */
.rv-av.anon {
  background: var(--light-gray);
  color: #b4c1be;
  font-size: 1rem;
}

.rv-who { display: flex; flex-direction: column; min-width: 0; }
.rv-who strong { font-size: 0.9rem; font-weight: 600; color: var(--dark-text); }
.rv-who small { font-size: 0.74rem; color: var(--light-text); }

/* ---------- Video: poster first, player only on click ---------- */
.rv-vt {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: linear-gradient(145deg, #d2e0dd 0%, #a3b8b4 58%, #8ca49f 100%);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rv-vt:focus-visible { outline: 3px solid var(--primary-red); outline-offset: 2px; }

.rv-vt-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.rv-vt:hover .rv-vt-play { transform: scale(1.08); }

.rv-vt-play::after {
  content: '';
  border-left: 13px solid var(--primary-red);
  border-top: 8.5px solid transparent;
  border-bottom: 8.5px solid transparent;
  margin-left: 4px;
}

.rv-vt.is-playing { cursor: default; background: #000; }
.rv-vt-player { width: 100%; height: 100%; object-fit: contain; display: block; }

.rv-img {
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.rv-img img { width: 100%; display: block; }

/* ---------- Card content ---------- */
.rv-card .rv-stars { margin-bottom: 0.55rem; }

.rv-q {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-text);
  margin: 0;
}

.rv-q::before { content: '\201C'; }
.rv-q::after  { content: '\201D'; }

.rv-more { font-size: 0.84rem; margin-top: 0.55rem; }

.rv-more summary {
  cursor: pointer;
  color: var(--primary-red);
  font-weight: 600;
  list-style: none;
}

.rv-more summary::-webkit-details-marker { display: none; }
.rv-more summary::after { content: ' \2192'; }
.rv-more[open] summary::after { content: ' \2191'; }
.rv-more p { margin-top: 0.55rem; color: var(--light-text); line-height: 1.65; }

.rv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--light-gray);
}

.rv-tag {
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dark-red);
  background: var(--light-red);
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
}

.rv-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--dark-red);
}

.rv-verified::before {
  content: '\2713';
  background: var(--primary-red);
  color: #fff;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
}

.rv-src { font-size: 0.7rem; color: var(--light-text); }
.rv-src a { color: var(--primary-red); text-decoration: underline; }

.rv-showmore { text-align: center; margin-bottom: 1rem; }

/* ---------- Empty ---------- */
.rv-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--light-text);
  border: 1px dashed var(--mid-gray);
  border-radius: 16px;
}

.rv-empty i { font-size: 2.5rem; opacity: 0.4; display: block; margin-bottom: 1rem; }
.rv-empty p { margin-bottom: 1.25rem; }

/* ---------- Call to action, with the form inside it ---------- */
.rv-cta {
  text-align: center;
  margin-top: 2.6rem;
  padding: 2.8rem 1.5rem;
  background: var(--rv-tint);
  border: 1px solid var(--light-red);
  border-radius: 20px;
  scroll-margin-top: 110px;
}

.rv-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.rv-cta-lead {
  color: var(--light-text);
  max-width: 46ch;
  margin: 0 auto 1.6rem;
}

.rv-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .rv-row { grid-template-columns: 1fr; } }

.rv-req { color: var(--primary-red); }

.rv-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--light-text);
}

/* Honeypot */
.rv-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Star input — reversed so hover fills leftwards */
.rv-rate {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
  padding-top: 0.35rem;
}

.rv-rate input { position: absolute; opacity: 0; width: 0; height: 0; }

.rv-rate label {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--mid-gray);
  transition: color 0.15s ease;
  margin: 0;
}

.rv-rate input:checked ~ label,
.rv-rate label:hover,
.rv-rate label:hover ~ label { color: var(--rv-star); }

.rv-rate input:focus-visible + label {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
  border-radius: 4px;
}

.rv-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.2rem 0;
  font-size: 0.89rem;
  color: var(--dark-text);
  line-height: 1.55;
  cursor: pointer;
}

.rv-consent input {
  margin-top: 0.25rem;
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-red);
}

.rv-submit { min-width: 200px; }

.rv-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--light-text);
}

/* ---------- Alerts ---------- */
.rv-alert {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  text-align: left;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  margin: 0 auto 1.75rem;
  max-width: 720px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.rv-alert i { font-size: 1.15rem; flex: none; margin-top: 0.15rem; }
.rv-alert strong { display: block; margin-bottom: 0.2rem; }
.rv-alert ul { margin: 0.35rem 0 0 1.1rem; list-style: disc; }

.rv-alert.ok {
  background: var(--white);
  color: var(--dark-red);
  border-left: 4px solid var(--primary-red);
}

.rv-alert.err {
  background: #fdecea;
  color: #b3261e;
  border-left: 4px solid #b3261e;
}

@media (prefers-reduced-motion: reduce) {
  .rv-card, .rv-chip, .rv-vt-play { transition: none; }
  .rv-card:hover { transform: none; }
  .rv-vt:hover .rv-vt-play { transform: none; }
}
