/* Review form and the homepage testimonials. */
/* Narrow column that still starts on the same left edge as the header and footer. */
.review-page > * { max-width: 700px; }

.review-form { display: grid; gap: 8px; }
.review-form[hidden],
.review-thanks[hidden] { display: none; }

.review-form > label,
.review-form legend { margin-top: 14px; padding: 0; font-weight: 700; font-size: 16px; line-height: 1.4; }
.review-form .req,
.review-form .hint { font-weight: 400; color: #475569; }
.review-form .hint { display: block; font-size: 14px; }

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
  color: var(--color-dark);
  border: 1px solid rgba(15, 23, 42, 0.35);
  font: inherit;
  font-size: 16px;
}
.review-form textarea { resize: vertical; }

.review-form :focus-visible,
.stars input:focus-visible + span { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.stars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.stars legend { margin-bottom: 8px; }
.stars label { position: relative; }
.stars input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.stars label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.35);
  font-weight: 700;
  pointer-events: none;
}
.stars input:checked + span { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.stars b { color: #b45309; }
.stars input:checked + span b { color: #fbbf24; }

.review-form > label.tick { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-weight: 400; cursor: pointer; }
.tick input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; }

.review-form .trap { position: absolute; left: -9999px; opacity: 0; }
.review-form .btn { justify-self: start; margin-top: 18px; border: 0; cursor: pointer; }
.review-form .btn:disabled { opacity: 0.6; cursor: wait; }
.review-status { padding: 12px 14px; border: 1px solid #b91c1c; color: #b91c1c; }
.review-status[hidden] { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 28px; background: #fff; border: 1px solid rgba(15, 23, 42, 0.12); }
.quote-stars { color: #b45309; font-size: 20px; letter-spacing: 2px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; white-space: pre-line; }
.quote figcaption { margin-top: auto; color: #475569; }
