/* End-of-test feedback card (inline, last thing in the result step) — see inc/feedback.php. */
.maghzeto-fb { margin-top: var(--space-xl, 40px); padding: 24px 20px 20px; background: var(--card, var(--bg)); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-md); text-align: center; }
.fb-title { font-size: 19px; margin: 0 0 8px; }
.fb-sub { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 14px; }
.fb-stars { display: flex; justify-content: center; gap: 4px; direction: ltr; margin-bottom: 6px; }
.fb-star { background: none; border: 0; line-height: 0; cursor: pointer; padding: 3px; transition: transform .14s; }
.fb-star svg { width: 40px; height: 40px; fill: transparent; stroke: var(--border); stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.fb-star:hover { transform: scale(1.12); }
.fb-star.is-on svg { fill: var(--lc-f2b01e, #F2B01E); stroke: var(--lc-e09a00, #E09A00); }
.fb-star.is-preview svg { fill: var(--lc-f7ce6b, #F7CE6B); stroke: var(--lc-e09a00, #E09A00); }
.fb-star:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.fb-detail { text-align: start; margin-top: 10px; animation: fb-rise .28s ease both; }
.fb-detail[hidden] { display: none; }
.fb-head { font-weight: 700; font-size: 15px; margin: 0 0 2px; text-align: center; }
.fb-ask { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; text-align: center; line-height: 1.8; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 4px; }
.fb-chip { border: 1px solid var(--border); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.fb-chip:hover { border-color: var(--ink); }
.fb-chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); }
.fb-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fb-text { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; font: inherit; resize: vertical; margin-top: 8px; background: var(--bg); color: var(--ink); }
.fb-text:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.fb-msg { min-height: 1.6em; font-size: 13px; color: var(--muted); margin: 6px 0; }
.fb-actions { display: flex; gap: 10px; justify-content: center; }
.fb-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.fb-thanks { padding: 6px 0 2px; }
.fb-thanks__badge { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: fb-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.fb-thanks__badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fb-proof { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.fb-proof strong { color: var(--ink); }
.fb-proof__stars { color: var(--lt-f2b01e, #F2B01E); letter-spacing: 2px; margin-inline-end: 4px; }
.fb-fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.7; }

/* popup */
.fb-lock { overflow: hidden; }
.fb-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.fb-modal.is-open { visibility: visible; }
.fb-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 16, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.fb-modal.is-open .fb-backdrop { opacity: 1; }
.fb-dialog { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card, var(--bg)); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); text-align: center; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1.1), opacity .25s; }
.fb-modal.is-open .fb-dialog { transform: none; opacity: 1; }
.fb-dialog__art { background: linear-gradient(160deg, var(--accent), transparent 85%); padding: 22px 0 6px; border-radius: var(--r-md) var(--r-md) 0 0; }
.fb-dialog__art svg { width: 96px; height: 96px; }
.fb-dialog__art .a { fill: var(--card, var(--bg)); stroke: var(--accent-ink); stroke-width: 1.4; stroke-dasharray: 3 5; }
.fb-dialog__art .b { fill: var(--lc-f2b01e, #F2B01E); stroke: var(--lc-e09a00, #E09A00); stroke-width: 1.5; stroke-linejoin: round; transform-origin: 60px 58px; animation: fb-twinkle 2.6s ease-in-out infinite; }
.fb-dialog__art .c { fill: var(--accent-ink); opacity: .55; animation: fb-twinkle 3s ease-in-out infinite .6s; transform-box: fill-box; transform-origin: center; }
.fb-dialog__body { padding: 8px 24px 22px; }
.fb-dialog .fb-title { font-size: 21px; }
.fb-x { position: absolute; top: 10px; inset-inline-start: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .06); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.fb-x:hover { background: rgba(0, 0, 0, .12); }
.fb-x:focus-visible, .fb-later:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fb-dialog .fb-star svg { width: 44px; height: 44px; }

@keyframes fb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fb-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fb-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .85; } }
@media (prefers-reduced-motion: reduce) {
  .fb-dialog, .fb-backdrop, .fb-detail, .fb-thanks__badge, .fb-dialog__art .b, .fb-dialog__art .c { animation: none !important; transition: none !important; }
}
@media (max-width: 520px) {
  .fb-modal { align-items: end; padding: 0; }
  .fb-dialog { width: 100%; border-radius: var(--r-md) var(--r-md) 0 0; transform: translateY(40px); }
  .fb-dialog__body { padding: 6px 18px 20px; }
  .fb-dialog .fb-star svg { width: 40px; height: 40px; }
}

/* public rating line above the footer (inc/feedback.php) — the visible twin of the aggregateRating schema */
.mz-pr { text-align: center; padding: 18px 16px; margin: 0 auto; max-width: 720px; }
.mz-pr__stars { font-size: 22px; letter-spacing: 3px; direction: ltr; }
.mz-pr__star { color: var(--border); }
.mz-pr__star.is-on { color: var(--lt-f2b01e, #F2B01E); }
.mz-pr__text { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.mz-pr__text strong { color: var(--ink); }
.mz-pr__text span { display: inline-block; font-size: 12.5px; }

/* MMPI: reminder of the time-limited smart-version code, shown above the offer (not part of the feedback card) */
.mp-promo { margin-top: var(--space-lg, 24px); padding: 14px 16px; border: 1px dashed var(--border); border-radius: var(--r-md); background: var(--card, var(--bg)); text-align: center; line-height: 1.9; }
.mp-promo code { direction: ltr; unicode-bidi: isolate; display: inline-block; padding: 1px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); font-weight: 700; letter-spacing: .04em; }
