/* Scoped so the same dialog also works on campaign pages without Bootstrap CSS. */
#testimonialModal { display: none; position: fixed; inset: 0; z-index: 1055; width: 100%; height: 100%; overflow: hidden auto; outline: 0; color: #17284e; }
#testimonialModal.fade { opacity: 0; transition: opacity .15s linear; }
#testimonialModal.show { opacity: 1; }
#testimonialModal .modal-dialog { position: relative; display: flex; align-items: center; width: auto; min-height: calc(100% - 2rem); max-width: 520px; margin: 1rem auto; padding: 0 12px; pointer-events: none; transition: transform .2s ease-out; }
#testimonialModal.fade .modal-dialog { transform: translateY(-12px); }
#testimonialModal.show .modal-dialog { transform: none; }
#testimonialModal .modal-content { display: flex; flex-direction: column; width: 100%; pointer-events: auto; background: #fff; border: 1px solid #dce1ef; border-radius: 16px; box-shadow: 0 18px 60px #10203f26; }
#testimonialModal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e6e9f2; }
#testimonialModal .modal-title { font-size: 19px; line-height: 1.4; font-weight: 700; margin: 0; color: inherit; }
#testimonialModal .btn-close { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; margin: 0; border: 0; background: none; color: inherit; font-size: 25px; line-height: 1; opacity: .7; cursor: pointer; }
#testimonialModal .modal-body { padding: 20px; }
#testimonialModal p { font-size: 14px; line-height: 1.65; margin: 0 0 16px; }
#testimonialModal .mb-3 { margin-bottom: 16px; }
#testimonialModal .form-control { box-sizing: border-box; width: 100%; min-height: 120px; resize: vertical; padding: 12px; font: inherit; font-size: 16px; color: inherit; background: transparent; border: 1px solid #b9c3da; border-radius: 10px; }
#testimonialModal .ppl-reviewConsent { min-width: 0; border: 0; padding: 0; }
#testimonialModal .ppl-reviewConsent legend { float: none; width: auto; font-size: 14px; line-height: 1.5; font-weight: 650; margin: 0 0 6px; }
#testimonialModal .ppl-reviewConsent p { font-size: 13px; margin-bottom: 12px; }
#testimonialModal .ppl-reviewConsent__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#testimonialModal .ppl-reviewConsent__choices button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 8px; background: transparent; color: inherit; border: 1px solid #aebbd4; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 650; text-align: center; line-height: 1.4; cursor: pointer; }
#testimonialModal .ppl-reviewConsent__choices button[value="yes"] { background: #3454d1; border-color: #3454d1; color: #fff; }
#testimonialModal .ppl-reviewConsent__choices button:focus-visible { outline: 2px solid #3454d1; outline-offset: 3px; }
#testimonialModal .ppl-reviewConsent__choices button:disabled { opacity: .6; cursor: wait; }
#testimonialModal .ppl-reviewConsent small { display: block; font-size: 11px; line-height: 1.5; color: #59657c; margin-top: 9px; }
#testimonialModal .ppl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; background: #3454d1; border: 1px solid #3454d1; border-radius: 9px; color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
#testimonialModal [data-review-error] { color: #b72541; }
#testimonialModal [hidden] { display: none !important; }
#testimonialModal .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body[data-review-shell] .modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: #000; }
body[data-review-shell] .modal-backdrop.fade { opacity: 0; transition: opacity .15s linear; }
body[data-review-shell] .modal-backdrop.show { opacity: .5; }
html[data-theme="dark"] #testimonialModal { color: #f3f5ff; }
html[data-theme="dark"] #testimonialModal .modal-content { background: #172b56; border-color: #334466; }
html[data-theme="dark"] #testimonialModal .modal-header { border-color: #334466; }
html[data-theme="dark"] #testimonialModal [data-review-error] { color: #ffb3c0; }
html[data-theme="dark"] #testimonialModal .ppl-reviewConsent small { color: #c2cce3; }
@media (prefers-reduced-motion: reduce) { #testimonialModal.fade, #testimonialModal .modal-dialog { transition: none; } }

#testimonialModal .ppl-reviewPreview { padding: 14px; margin: 0 0 18px; border: 1px solid #e5cede; border-radius: 12px; background: #fff8fb; color: inherit; }
#testimonialModal .ppl-reviewPreview__label { margin: 0 0 10px; color: #ab3568; font-size: 11px; font-weight: 650; }
#testimonialModal .ppl-reviewPreview__person { display: flex; align-items: center; gap: 9px; }
#testimonialModal .ppl-reviewPreview__avatar { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #f6dbe7; color: #a23362; }
#testimonialModal .ppl-reviewPreview__avatar span { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; }
#testimonialModal .ppl-reviewPreview__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#testimonialModal .ppl-reviewPreview__person strong { font-size: 13px; }
#testimonialModal .ppl-reviewPreview__person small { display: block; font-size: 11px; opacity: .7; }
#testimonialModal .ppl-reviewPreview__quote { margin-left: auto; color: #d83c79; font-size: 30px; line-height: 1; }
#testimonialModal [data-review-preview-text] { white-space: pre-line; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; margin: 12px 0 0; max-height: 170px; overflow-y: auto; }
#testimonialModal .ppl-reviewSuccess { text-align: center; }
#testimonialModal .ppl-reviewSuccess h2 { font-size: 24px; line-height: 1.25; margin: 10px 0; color: inherit; }
#testimonialModal .ppl-reviewSuccess h2:focus { outline: none; }
#testimonialModal .ppl-reviewSuccess > p { font-size: 14px; line-height: 1.6; }
#testimonialModal .ppl-reviewSuccess .ppl-reviewPreview { text-align: left; }
#testimonialModal .ppl-reviewSuccess__link { display: block; margin: 0 0 18px; color: #ab3568; font-weight: 650; }
#testimonialModal .ppl-reviewSuccess__hearts { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 64px; color: #d83c79; font-size: 28px; }
#testimonialModal .ppl-reviewSuccess__hearts span { animation: ppl-review-heart .65s ease-out both; }
#testimonialModal .ppl-reviewSuccess__hearts span:nth-child(2) { font-size: 49px; animation-delay: .08s; }
#testimonialModal .ppl-reviewSuccess__hearts span:nth-child(3) { animation-delay: .16s; }
@keyframes ppl-review-heart { from { opacity: 0; transform: translateY(15px) scale(.5) rotate(-12deg); } 65% { opacity: 1; transform: translateY(-5px) scale(1.12) rotate(5deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
html[data-theme="dark"] #testimonialModal .ppl-reviewPreview { background: #30253e; border-color: #64425a; }
html[data-theme="dark"] #testimonialModal .ppl-reviewPreview__label, html[data-theme="dark"] #testimonialModal .ppl-reviewSuccess__link { color: #ffacd1; }
@media (prefers-reduced-motion: reduce) { #testimonialModal .ppl-reviewSuccess__hearts span { animation: none; } }
