/* Avaliações & depoimentos — Escolinha de Jesus */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.edj-stars {
  display: inline-flex;
  gap: 2px;
  color: #cbd5e1;
  letter-spacing: 0;
  line-height: 1;
}
.edj-star {
  font-size: 1.05rem;
}
.edj-star.is-on {
  color: #f59e0b;
}
.edj-stars--sm .edj-star {
  font-size: 0.95rem;
}

.review-badge-verified {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.reviews-section {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.reviews-heading {
  align-items: flex-end;
  gap: 16px;
}
.reviews-aggregate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 0;
  font-weight: 800;
  color: #082651;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.review-card {
  background: #fff;
  border: 2px solid #e0f2fe;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 28px #08265110;
  display: grid;
  gap: 12px;
}
.review-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.review-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #e0f2fe;
  flex-shrink: 0;
}
.review-card-avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0369a1;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.25rem;
}
.review-card-name {
  display: block;
  color: #082651;
  font-size: 1.05rem;
}
.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.review-card-date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.review-card-body {
  margin: 0;
  color: #294e77;
  font-weight: 700;
  line-height: 1.55;
  font-size: 0.95rem;
}
.reviews-empty {
  max-width: 560px;
  margin: 24px auto;
  text-align: center;
  padding: 28px;
  border-radius: 22px;
  background: #fffef8;
  border: 2px solid #e0f2fe;
}
.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-weight: 800;
}

/* —— Página Minha avaliação (área do membro) —— */
.review-page {
  width: 100%;
  max-width: none;
}

.review-page-hero {
  margin-bottom: 1.25rem;
}

.review-page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  color: #082651;
  max-width: 40rem;
}

.review-page-lead {
  margin: 0;
  max-width: 42rem;
  color: #294e77;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.55;
}

.review-verified-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 1.25rem;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.review-verified-bar p {
  margin: 0;
  color: #065f46;
  font-weight: 700;
  font-size: 0.95rem;
}

.review-status-line {
  margin: 0 0 1rem;
  color: #294e77;
  font-weight: 700;
}

/* Corrige max-width:420px herdado de .conta-form */
.plataforma .review-form,
.review-form {
  display: grid;
  gap: 1.25rem;
  max-width: none !important;
  width: 100%;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.review-col {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.review-card {
  background: #fff;
  border: 2px solid #e0f2fe;
  border-radius: 22px;
  padding: clamp(18px, 2.2vw, 24px);
  box-shadow: 0 10px 28px #0826510c;
}

.review-card-title {
  margin: 0 0 1rem;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #082651;
  line-height: 1.2;
}

.review-card-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #082651;
}

.review-field-label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 800;
  color: #082651;
  font-size: 1rem;
}

.review-stars-field,
.review-name-field {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}

.review-stars-field legend,
.review-name-field legend {
  padding: 0;
}

/* Estrelas: uma linha, preenchimento progressivo */
.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
}

.review-rating-star {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.review-rating-star:hover,
.review-rating-star:focus-within {
  background: #fffbeb;
  transform: translateY(-1px);
}

.review-rating-star input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.review-rating-glyph {
  font-size: 2rem;
  line-height: 1;
  color: #cbd5e1;
  transition: color 0.12s ease, transform 0.12s ease;
  user-select: none;
}

.review-rating:has(.review-rating-star:nth-child(1) input:checked) .review-rating-star:nth-child(-n+1) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(2) input:checked) .review-rating-star:nth-child(-n+2) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(3) input:checked) .review-rating-star:nth-child(-n+3) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(4) input:checked) .review-rating-star:nth-child(-n+4) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(5) input:checked) .review-rating-star:nth-child(-n+5) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(1):hover) .review-rating-star:nth-child(-n+1) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(2):hover) .review-rating-star:nth-child(-n+2) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(3):hover) .review-rating-star:nth-child(-n+3) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(4):hover) .review-rating-star:nth-child(-n+4) .review-rating-glyph,
.review-rating:has(.review-rating-star:nth-child(5):hover) .review-rating-star:nth-child(-n+5) .review-rating-glyph {
  color: #f59e0b;
}

.review-rating-star:focus-visible,
.review-rating-star:has(input:focus-visible) {
  outline: 3px solid #005aab;
  outline-offset: 2px;
}

.review-rating-hint {
  margin: 0.35rem 0 0;
  min-height: 1.4em;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.98rem;
}

.review-comment-label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
  color: #082651;
}

.review-form textarea,
.review-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #bae6fd;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  color: #082651;
  background: #fff;
  resize: vertical;
  min-height: 160px;
}

.review-form input[type="text"] {
  min-height: 48px;
  resize: none;
}

.review-form textarea:focus,
.review-form input[type="text"]:focus {
  outline: 3px solid #005aab;
  outline-offset: 2px;
  border-color: #7dd3fc;
}

.review-char-count {
  justify-self: end;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.review-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #f8fbff;
  font-weight: 700 !important;
  color: #082651;
  cursor: pointer;
}

.review-choice:has(input:checked) {
  border-color: #7dd3fc;
  background: #eff6ff;
}

.review-choice input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #0369a1;
}

.review-choice--compact {
  margin-top: 10px;
  background: #fff;
}

.review-custom-wrap {
  margin-top: 4px;
  padding-left: 2px;
}

.review-custom-label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: #082651;
}

.review-photo-block {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0f2fe;
}

.review-avatar-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.review-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0f2fe;
  flex-shrink: 0;
}

.review-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.review-photo-copy {
  min-width: 0;
  flex: 1;
}

.review-photo-copy p {
  margin: 0 0 6px;
  color: #294e77;
  font-weight: 700;
  line-height: 1.45;
}

.review-photo-link {
  display: inline-block;
  font-weight: 800;
  color: #0369a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-hint {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.review-preview-card {
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
}

.review-preview-note {
  margin: -0.5rem 0 1rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
}

.review-preview {
  display: grid;
  gap: 12px;
}

.review-preview-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.review-preview-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #e0f2fe;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.review-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-preview-initial {
  font-weight: 800;
  color: #0369a1;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.15rem;
}

.review-preview-name {
  display: block;
  color: #082651;
  font-size: 1.05rem;
}

.review-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.review-preview-body {
  margin: 0;
  color: #294e77;
  font-weight: 700;
  line-height: 1.55;
  font-size: 0.95rem;
}

.review-preview-body.is-placeholder {
  color: #94a3b8;
  font-style: italic;
  font-weight: 600;
}

.review-consent-panel {
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  border-radius: 22px;
  padding: clamp(18px, 2.2vw, 24px);
}

.review-consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-weight: 700 !important;
  color: #082651;
  line-height: 1.45;
  cursor: pointer;
}

.review-consent-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0369a1;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.review-actions .button {
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 800;
}

.review-withdraw {
  margin-top: 0.5rem;
}

.review-dash-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #082651;
}

@media (prefers-reduced-motion: reduce) {
  .review-rating-star,
  .review-rating-glyph {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .review-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-preview-card {
    order: 3;
  }
}

@media (max-width: 980px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .reviews-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-rating-star {
    width: 44px;
    height: 44px;
  }

  .review-rating-glyph {
    font-size: 1.75rem;
  }

  .review-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .review-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .review-avatar-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
