/* Rating window: a small card in the middle of the page, in the site's colours. */
.rp-overlay { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; background: rgba(4, 35, 27, .45); opacity: 0; transition: opacity .2s ease; }
.rp-overlay.is-in { opacity: 1; }
.rp-dialog { width: min(420px, 100%); display: grid; gap: 12px; justify-items: center; text-align: center; padding: 26px 22px 20px; border-radius: 18px; background: #fff; box-shadow: 0 30px 70px -30px rgba(4, 35, 27, .6); transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.2, .75, .2, 1); }
.rp-overlay.is-in .rp-dialog { transform: none; }
.rp-dialog h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.rp-sub { margin: -4px 0 4px; color: var(--muted); font-size: 14px; }
.rp-stars { display: flex; gap: 6px; direction: ltr; }
.rp-star { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; font-size: 34px; color: #d9e2dc; transition: transform .15s ease, color .15s ease; padding: 0; }
.rp-star.is-on { color: var(--gold-soft, #d6b25e); }
.rp-star:hover { transform: scale(1.1); }
.rp-star:focus-visible { outline: 3px solid var(--gold-soft, #d6b25e); outline-offset: 2px; border-radius: 8px; }
.rp-label { justify-self: stretch; text-align: start; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rp-text { width: 100%; resize: vertical; min-height: 74px; line-height: 1.7; }
.rp-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }
.rp-actions { display: flex; gap: 10px; width: 100%; }
.rp-actions .btn { flex: 1; justify-content: center; }
.rp-thanks { display: grid; justify-items: center; gap: 6px; padding: 10px 0; }
.rp-thanks i { font-size: 46px; color: var(--g-700, #047857); }
.rp-thanks p { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rp-overlay, .rp-dialog, .rp-star { transition: none; } }
/* While the rating window is up, the PDF window waits fully hidden underneath. */
.cv-pdf-overlay[hidden] { display: none !important; }
.rp-overlay { z-index: 2147483000; }
