/* reviews.css — customers' reviews of fisfasti (8.11): the home strip (index.html #homeReviews) and the form behind
   the personal link (review.html). Ink on white, the site's own type and spacing; the only colour is meaning, and
   stars carry none: ink when on, grey when off (the apple-design skill, §19 "black, white, glass"). */

/* ---------------------------------------------------------------------------------------- the home strip -- */
/* Hidden while the strip has no card: fewer than three reviews draws nothing (reviews-html.js MIN). */
.home-reviews{ padding-block: var(--space-7, 48px); background: var(--color-surface, #fff); border-top: 1px solid var(--color-border); }
.home-reviews:not(:has(.rv-card)){ display: none; }
.rv-head{ text-align: center; font-size: var(--fs-h2); font-weight: 800; color: var(--color-ink); margin: 0 0 8px; }
.rv-lead{ text-align: center; color: var(--color-text-muted); margin: 0 0 var(--space-5, 24px); font-size: 15px; }

/* A row that scrolls sideways and snaps per card. The first card lines up with the page's text column; the row
   itself runs to the screen's edges, so a card is cut at the edge of the screen, never in the page margin. */
.rv-track{
  --rv-gutter: max(22px, calc((100vw - 1160px) / 2 + 22px));
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--rv-gutter);
  padding: 4px var(--rv-gutter) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rv-track::-webkit-scrollbar{ display: none; }
@media (max-width: 620px){ .rv-track{ --rv-gutter: 16px; gap: 12px; } }

.rv-card{
  flex: 0 0 min(320px, 82vw); scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; gap: 12px; box-sizing: border-box;
  padding: 20px 20px 18px; border-radius: 20px;
  background: var(--color-paper, #F4F4F6); border: 1px solid var(--color-border);
}
.rv-stars{ display: inline-flex; gap: 2px; direction: ltr; align-self: flex-start; }
[dir="rtl"] .rv-stars{ align-self: flex-start; }
.rv-star{ display: inline-flex; width: 16px; height: 16px; }
.rv-star svg{ fill: #D4D4DA; }
.rv-star.on svg{ fill: var(--color-ink); }
.rv-quote{
  margin: 0; font-size: 17px; line-height: 1.55; color: var(--color-ink); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.rv-by{ margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.rv-name{ font-weight: 700; color: var(--color-ink); font-size: 15px; }
.rv-meta{ color: var(--color-text-muted); font-size: 13px; }

/* ------------------------------------------------------------------------------------------- the form -- */
.rvf-card{
  max-width: 460px; margin: 24px auto; box-sizing: border-box; display: flow-root;
  background: var(--color-surface, #fff); border-radius: 24px; padding: 28px 22px 22px;
  box-shadow: 0 1px 2px rgba(20,20,26,.04), 0 8px 30px rgba(20,20,26,.07); text-align: center;
}
.rvf-pane{ display: flex; flex-direction: column; align-items: stretch; }
.rvf-pane[hidden]{ display: none; }
.rvf-wait{ align-items: center; gap: 12px; color: var(--color-text-muted); padding: 30px 0; }
.rvf-spinner{ width: 28px; height: 28px; border-radius: 30%; background: var(--color-ink); opacity: .85; animation: rvf-breathe 2s ease-in-out infinite; }
@keyframes rvf-breathe{ 0%,100%{ border-radius: 30%; transform: rotate(0); } 50%{ border-radius: 50%; transform: rotate(180deg); } }
.rvf-title{ font-size: 26px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 6px; color: var(--color-ink); font-weight: 800; }
.rvf-sub{ margin: 0 0 18px; color: var(--color-text-muted); line-height: 1.55; font-size: 15px; }
.rvf-sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* five stars: each a 48px press target; a press answers on the frame it happens (§1) */
.rvf-stars{ border: 0; margin: 4px auto 2px; padding: 0; display: flex; gap: 4px; justify-content: center; direction: ltr; }
.rvf-star{
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; padding: 0; cursor: pointer; border-radius: 14px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rvf-star svg{ fill: #DADAE0; transition: fill 160ms ease, transform 160ms ease; }
.rvf-star.on svg{ fill: var(--color-ink); }
.rvf-star:active svg{ transform: scale(.88); }
.rvf-star.on svg{ animation: rvf-pop 420ms cubic-bezier(.34, 1.4, .5, 1); }
@keyframes rvf-pop{ 0%{ transform: scale(.82); } 100%{ transform: scale(1); } }
.rvf-star:focus-visible{ outline: 2px solid var(--color-ink); outline-offset: 2px; }
.rvf-starword{ min-height: 22px; margin: 0 0 14px; font-weight: 700; color: var(--color-ink); font-size: 15px; }

.rvf-label{ text-align: start; font-weight: 700; font-size: 15px; margin: 6px 0 6px; color: var(--color-ink); }
/* 16px at least: iOS zooms the page into a smaller field and keeps the zoom (§19, 23.10) */
.rvf-body, .rvf-name{
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--color-ink);
  border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-paper, #F4F4F6);
  padding: 12px 14px; outline: none; -webkit-appearance: none; appearance: none;
}
.rvf-body{ min-height: 108px; resize: vertical; line-height: 1.5; }
.rvf-name{ min-height: 48px; }
.rvf-body:focus, .rvf-name:focus{ border-color: var(--color-ink); background: #fff; }
.rvf-count{ align-self: flex-end; font-size: 12.5px; color: var(--color-text-muted); margin: 4px 2px 6px; direction: ltr; }
.rvf-consent{
  display: flex; gap: 10px; align-items: flex-start; text-align: start; margin: 16px 0 4px; cursor: pointer;
  font-size: 14.5px; line-height: 1.5; color: var(--color-ink);
}
.rvf-consent input{ width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--color-ink); }
.rvf-privacy{ margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-text-muted); text-align: start; }
.rvf-privacy a{ color: var(--color-ink); }
.rvf-send{
  margin-top: 18px; min-height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--color-ink); color: #fff; font: inherit; font-weight: 700; font-size: 17px;
  -webkit-tap-highlight-color: transparent; transition: transform 120ms ease, opacity 160ms ease;
}
.rvf-send:active{ transform: scale(.97); }
.rvf-send[disabled]{ opacity: .35; cursor: default; transform: none; }
.rvf-hint{ margin: 10px 0 0; font-size: 13px; color: var(--color-text-muted); }
.rvf-hint[hidden]{ display: none; }
.rvf-end{ align-items: center; padding: 6px 0 4px; }
.rvf-check{ display: inline-flex; margin-bottom: 14px; }
.rvf-check svg{ fill: none; stroke: var(--color-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rvf-check circle{ stroke-dasharray: 151; stroke-dashoffset: 151; }
.rvf-check path{ stroke-dasharray: 36; stroke-dashoffset: 36; }
.rvf-is-done .rvf-check circle{ animation: rvf-draw 600ms cubic-bezier(.2,.7,.3,1) forwards; }
.rvf-is-done .rvf-check path{ animation: rvf-draw 380ms cubic-bezier(.2,.7,.3,1) 420ms forwards; }
@keyframes rvf-draw{ to{ stroke-dashoffset: 0; } }
.rvf-home{ margin: 18px 0 0; }
.rvf-home a{ color: var(--color-ink); font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }

@media (prefers-reduced-motion: reduce){
  .rvf-spinner{ animation: none; }
  .rvf-star.on svg{ animation: none; }
  .rvf-is-done .rvf-check circle, .rvf-is-done .rvf-check path{ animation: none; stroke-dashoffset: 0; }
}
