/* HRThink Feedback. Uses the theme's colour variables when present, with its own fallbacks. */
.hrtf-card, .hrtf-prompt, .hrtf-toast { --hf-p: var(--primary, #2f5bea); --hf-pd: var(--primary-d, #2447c9); --hf-ink: var(--ink, #1b2a41); --hf-mut: var(--muted, #4a5a78); --hf-line: var(--line, #c9d6f4); --hf-gold: #f2b134; font-family: inherit; }
.hrtf-card { background: #fff; border: 1px solid var(--hf-line); border-radius: 16px; padding: 26px; box-shadow: 0 1px 2px rgba(15,28,46,.06), 0 14px 34px rgba(15,28,46,.08); color: var(--hf-ink); }
.hrtf-empty { text-align: center; color: var(--hf-mut); }
.hrtf-empty p { margin: 0; }

/* Summary */
.hrtf-headline { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hrtf-score { font: 700 3.4rem/1 Georgia, serif; color: #0f1c2e; }
.hrtf-score small { font: 600 1rem system-ui, sans-serif; color: var(--hf-mut); margin-left: 6px; }
.hrtf-stars { position: relative; display: inline-block; font-size: 1.7rem; line-height: 1; letter-spacing: 2px; }
.hrtf-stars-bg { color: #d4dcf0; }
.hrtf-stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--hf-gold); }
.hrtf-meta { margin: 6px 0 0; color: var(--hf-mut); }
.hrtf-cats { display: grid; gap: 10px; margin-top: 22px; }
.hrtf-cat { display: grid; grid-template-columns: 110px 1fr 40px; gap: 12px; align-items: center; font-size: .95rem; }
.hrtf-cat-val { text-align: right; font-weight: 700; }
.hrtf-bar { display: block; height: 10px; border-radius: 999px; background: #e6edfd; overflow: hidden; }
.hrtf-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hf-p), #7c5cf0); }
.hrtf-dist { margin-top: 18px; }
.hrtf-dist summary { cursor: pointer; font-weight: 650; color: var(--hf-pd); margin-bottom: 10px; }
.hrtf-table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: .94rem; }
.hrtf-table caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.hrtf-table th, .hrtf-table td { padding: 8px 6px; border-top: 1px solid var(--hf-line); text-align: left; }
.hrtf-note { margin: 18px 0 0; font-size: .85rem; color: var(--hf-mut); }

/* Testimonials and changes */
.hrtf-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.hrtf-quote { margin: 0; }
.hrtf-quote blockquote { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.55; }
.hrtf-quote blockquote::before { content: "\201C"; }
.hrtf-quote blockquote::after { content: "\201D"; }
.hrtf-quote figcaption { font-weight: 700; color: var(--hf-pd); font-size: .92rem; }
.hrtf-quote figcaption span { display: block; font-weight: 500; color: var(--hf-mut); }
.hrtf-changes { margin-top: 22px; }
.hrtf-changes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hrtf-changes li { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #eef3ff; }

/* Prompt and form */
.hrtf-prompt { position: fixed; right: 18px; bottom: 18px; z-index: 9999; width: min(400px, calc(100vw - 24px)); }
.hrtf-form-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.hrtf-sub { margin: 0 0 14px; color: var(--hf-mut); font-size: .92rem; }
.hrtf-form { display: grid; gap: 14px; }
.hrtf-scale-legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--hf-mut); }
.hrtf-q { border: 0; padding: 0; margin: 0; }
.hrtf-q legend { font-weight: 650; font-size: .93rem; padding: 0; margin-bottom: 6px; }
.hrtf-scale, .hrtf-yn { display: flex; gap: 8px; }
.hrtf-scale label, .hrtf-yn label { flex: 1; position: relative; cursor: pointer; }
.hrtf-scale input, .hrtf-yn input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hrtf-scale span, .hrtf-yn span { display: block; text-align: center; padding: 9px 0; border: 1px solid #b9c8ec; border-radius: 10px; background: #fff; font-weight: 650; transition: background .12s, color .12s, border-color .12s; }
.hrtf-scale input:checked + span, .hrtf-yn input:checked + span { background: var(--hf-p); border-color: var(--hf-p); color: #fff; }
.hrtf-scale input:focus-visible + span, .hrtf-yn input:focus-visible + span { outline: 3px solid rgba(47,91,234,.5); outline-offset: 2px; }
.hrtf-field { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.hrtf-field em { font-weight: 400; color: var(--hf-mut); }
.hrtf-field textarea, .hrtf-field select { width: 100%; font: inherit; font-weight: 500; padding: 10px 12px; border: 1px solid #b9c8ec; border-radius: 10px; background: #fff; }
.hrtf-btn { display: inline-flex; justify-content: center; padding: 12px 20px; border-radius: 12px; border: 0; font: 650 1rem inherit; cursor: pointer; }
.hrtf-btn-primary { background: var(--hf-p); color: #fff; }
.hrtf-btn-primary:hover { background: var(--hf-pd); }
.hrtf-skip { margin-top: 8px; text-align: center; }
.hrtf-linkbtn { background: none; border: 0; color: var(--hf-mut); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.hrtf-toast { position: fixed; right: 20px; bottom: 20px; z-index: 9999; background: #0f1c2e; color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: 0 12px 40px rgba(15,28,46,.35); animation: hrtf-fade 6s forwards; }
@keyframes hrtf-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 560px) { .hrtf-cat { grid-template-columns: 90px 1fr 36px; } .hrtf-prompt { right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .hrtf-toast { animation: none; } }

/* Collapsed rating bar: small until the learner chooses to rate */
.hrtf-collapse { background: #fff; border: 1px solid var(--hf-line); border-radius: 16px; box-shadow: 0 18px 50px rgba(15,28,46,.25); color: var(--hf-ink); overflow: hidden; }
.hrtf-collapse > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 14px 44px 14px 18px; position: relative; }
.hrtf-collapse > summary::-webkit-details-marker { display: none; }
.hrtf-collapse > summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--hf-p); border-bottom: 2px solid var(--hf-p); transform: rotate(-135deg); transition: transform .15s; }
.hrtf-collapse[open] > summary::after { transform: rotate(45deg); margin-top: -9px; }
.hrtf-collapse > summary:hover { background: #f3f7ff; }
.hrtf-sum-main { font-weight: 700; font-size: 1rem; }
.hrtf-sum-sub { font-size: .82rem; color: var(--hf-mut); }
.hrtf-collapse[open] { max-height: calc(100vh - 110px); overflow: auto; }
.hrtf-collapse .hrtf-form-card { border: 0; border-top: 1px solid var(--hf-line); border-radius: 0; box-shadow: none; padding: 16px 18px 18px; }
@media (max-width: 560px) { .hrtf-prompt { right: 12px; bottom: 12px; } }

/* Pages opened from the reminder email */
.hrtf-landing { padding: 40px 16px 64px; }
.hrtf-landing-in { max-width: 640px; margin: 0 auto; }
.hrtf-landing-card h1 { font: 700 1.6rem/1.2 Georgia, serif; margin: 0 0 8px; color: #0f1c2e; }
.hrtf-landing-card p { color: var(--hf-mut); }
.hrtf-landing-card .hrtf-sub strong { color: #0f1c2e; }
.hrtf-chosen { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fff8ea; border: 1px solid #f0d9a8; color: #6b4a00 !important; font-size: .92rem; }
.hrtf-preview { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: #eef3ff; color: #2447c9 !important; font-weight: 700; font-size: .85rem; }
.hrtf-landing-card .hrtf-btn[disabled] { opacity: .5; cursor: not-allowed; }
