/* ---------- Avaliar page ---------- */
.section__inner--narrow {
  max-width: 640px;
}

.form-field__hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}

/* ---------- Review form ---------- */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.review-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Star rating ---------- */
.star-rating-field {
  border: none;
  padding: 0;
  margin: 0;
}

.star-rating-field legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* Reverse-order star trick: inputs are 5→1 in DOM, display RTL so ★5 is left */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-rating label {
  font-size: 2rem;
  color: var(--line-strong);
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
  line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: var(--copper);
}

.star-rating label:hover {
  transform: scale(1.15);
}

/* ---------- Consent checkbox ---------- */
.form-field--consent {
  margin-top: 4px;
}

.checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  transition: border-color 160ms ease, background 160ms ease;
  margin-top: 2px;
}

.checkbox-custom::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 120ms ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--copper);
  border-color: var(--copper);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  opacity: 1;
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* ---------- Review cards (homepage) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--copper);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.review-card__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
  line-height: 1;
}

.star--filled {
  color: var(--copper);
}

.star--empty {
  color: var(--line-strong);
}

.review-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
