/* Home: "Write a review on Google" under "Where is Dr. Gaurav today?",
   and the thank-you pop-up when a parent comes back from Google (review.js) */

/* ---------- The ask ---------- */
.review-ask { display: grid; justify-items: start; gap: 18px; max-width: 44ch; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.review-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.review-stars { width: 78px; height: 14px; flex: none; fill: var(--gold); }
.review-btn:hover .arrow, .rv-actions .btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Thank-you pop-up ---------- */
.rv-pop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.rv-pop[hidden] { display: none; }
.rv-back { position: fixed; inset: 0; background: rgba(7, 38, 36, .82); animation: rv-fade .35s both; }
.rv-box {
  position: relative; width: min(100%, 420px); padding: 44px clamp(22px, 5vw, 36px) clamp(22px, 5vw, 32px);
  border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lg);
  text-align: center; outline: none; animation: rv-in .5s var(--ease) both;
}
.rv-pop.is-closing .rv-back { animation: rv-fade .25s reverse both; }
.rv-pop.is-closing .rv-box { animation: rv-in .25s reverse both; }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-in { from { opacity: 0; transform: translateY(28px) scale(.96); } }

.rv-x {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .3s, color .3s;
}
.rv-x:hover { background: var(--sand); color: var(--ink); }
.rv-x .i { width: 18px; height: 18px; stroke-width: 2; }

/* The five stars settle in one after another */
.rv-pop-stars { display: flex; justify-content: center; gap: 6px; }
.rv-pop-stars svg { width: 28px; height: 28px; fill: var(--gold); animation: rv-star .55s var(--ease) both; }
.rv-pop-stars svg:nth-child(1) { animation-delay: .25s; }
.rv-pop-stars svg:nth-child(2) { animation-delay: .33s; }
.rv-pop-stars svg:nth-child(3) { animation-delay: .41s; }
.rv-pop-stars svg:nth-child(4) { animation-delay: .49s; }
.rv-pop-stars svg:nth-child(5) { animation-delay: .57s; }
@keyframes rv-star { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }

.rv-title { margin-top: 20px; font-size: clamp(2.1rem, 7vw, 2.6rem); }
.rv-text { max-width: 30ch; margin: 14px auto 0; color: var(--ink-2); line-height: 1.6; }
.rv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.rv-actions .btn { padding: 0 16px; white-space: nowrap; }
@media (max-width: 420px) { .rv-actions { grid-template-columns: 1fr; } } /* side by side, "Add feedback" would wrap */

@media (prefers-reduced-motion: reduce) {
  .rv-back, .rv-box, .rv-pop-stars svg, .rv-pop.is-closing .rv-back, .rv-pop.is-closing .rv-box { animation: none; }
}
