/* ==========================================================================
   Mentee review form and approved reviews (2026-10-16).
   Loaded after styles-20260907b.css, uses its variables and card look.
   ========================================================================== */

/* ---------- Form block ---------- */

.review-form-wrap {
  margin-top: 56px;
  max-width: 880px;
  padding: 34px;
  background: var(--gray);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}
.review-form-wrap [hidden] { display: none !important; }

.review-form-title {
  position: relative;
  font-size: clamp(1.25rem, 3.6vw, 1.7rem);
  margin: 0 0 12px;
  padding-top: 18px;
}
.review-form-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
}
.review-form-sub {
  max-width: 64ch;
  color: var(--muted);
  margin: 0;
}

.rf-part {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #d6d6da;
}
.rf-part-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rf-part-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.rf-field { margin-top: 20px; }
.rf-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .rf-grid { grid-template-columns: 1fr 1fr; }
}

.rf-label {
  display: block;
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.rf-req { color: var(--red); margin-left: 2px; }
.rf-help {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.rf-field > .rf-label + .rf-input,
.rf-field > .rf-label + .rf-textarea { margin-top: 6px; }

/* Chips */
.rf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rf-chip {
  min-height: 42px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rf-chip:hover { border-color: var(--red); color: var(--red); }
.rf-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.rf-chip[aria-pressed="true"]:hover { background: var(--red); border-color: var(--red); color: #fff; }
.rf-chip:focus-visible,
.rf-check input:focus-visible,
.rf-submit:focus-visible {
  outline: 3px solid rgba(228, 0, 43, 0.5);
  outline-offset: 2px;
}
.rf-chips[aria-invalid="true"] {
  padding: 8px;
  margin: -8px;
  border-radius: 12px;
  outline: 2px solid var(--red);
}

/* Inputs */
.rf-input,
.rf-textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b4b4bb;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
}
.rf-input::placeholder,
.rf-textarea::placeholder { color: #85858d; }
.rf-textarea { min-height: 132px; resize: vertical; }
.rf-input:focus,
.rf-textarea:focus {
  outline: 3px solid rgba(228, 0, 43, 0.28);
  border-color: var(--ink);
}
.rf-input[aria-invalid="true"],
.rf-textarea[aria-invalid="true"] { border-color: var(--red); }

.rf-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.rf-counter {
  margin: 6px 0 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.rf-error {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--red-dark);
}

/* Checkboxes */
.rf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}
.rf-check input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.rf-check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.rf-consent { margin-top: 24px; font-size: 0.96rem; }

/* Honeypot: off-screen, not display:none */
.rf-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit */
.rf-actions { margin-top: 20px; }
.rf-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px 26px;
}
.rf-submit-error {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--red-dark);
}

.rf-success { outline: none; padding: 4px 0; }
.rf-success .review-form-title { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }

@media (max-width: 899px) {
  .review-form-wrap { padding: 24px 18px; margin-top: 44px; }
  .rf-chip { min-height: 44px; }
}

/* ---------- Approved reviews inside the grid ---------- */

.review-card .testimonial-quote-fb { white-space: pre-line; overflow-wrap: anywhere; }
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.review-tag {
  padding: 2px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  background: transparent;
  border: 1px solid #b4b4bb;
  border-radius: 999px;
}
.review-strengths {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.review-strengths strong { color: var(--ink); font-weight: 700; }

/* ---------- Summary bars ---------- */

.review-summary {
  margin: 0 0 28px;
  padding: 24px 28px;
  background: var(--gray);
  border-radius: var(--radius);
}
.review-summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .review-summary-list { grid-template-columns: 1fr 1fr; }
}
.rs-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}
.rs-pct { font-variant-numeric: tabular-nums; }
.rs-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  background: #d8d8dd;
  border-radius: 999px;
}
.rs-fill {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 999px;
}
.review-summary-caption {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 899px) {
  .review-summary { padding: 20px 18px; }
}

/* ---------- Pager for the Testimonials grid (2026-10-16) ---------- */

/* The grid sets display on its cards, which beats the UA rule for [hidden]; this puts it back. */
#testimonials .testimonial-grid > .testimonial-card[hidden] { display: none !important; }

/* Paging scrolls the section heading into view below the sticky header (68px). */
#testimonials .section-head { scroll-margin-top: 76px; }

/* Card that receives focus after a page change. */
.testimonial-grid > .testimonial-card:focus { outline: none; }
.testimonial-grid > .testimonial-card:focus-visible {
  outline: 3px solid rgba(228, 0, 43, 0.5);
  outline-offset: 3px;
}

.review-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
}
.rp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rp-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-btn,
.rp-page {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rp-btn { padding: 8px 20px; }
.rp-btn:hover:not(:disabled),
.rp-page:hover:not(.is-current) {
  border-color: var(--red);
  color: var(--red);
}
.rp-page.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  cursor: default;
}
.rp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rp-btn:focus-visible,
.rp-page:focus-visible {
  outline: 3px solid rgba(228, 0, 43, 0.5);
  outline-offset: 2px;
  border-color: var(--red);
}
.rp-gap {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}
.rp-range {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.rp-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 599px) {
  .review-pager { align-items: stretch; }
  .rp-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    width: 100%;
  }
  .rp-pages {
    grid-column: 1 / -1;
    order: -1;
    gap: 6px;
  }
  .rp-btn { width: 100%; padding: 8px 12px; }
  .rp-range { text-align: center; }
}
