/* Trinity quiz (trinity.lovelikeaking.com). Light clinical theme for the questions, dark for the results.
   Own file on purpose: the shared theme is not touched. */
:root {
  --bg: #f6f7f5; --card: #fff; --card-border: #e3e6e1; --ink: #14171c; --muted: #6a7078;
  --gold: #c9a227; --gold-ink: #14171c; --top: #111318; --footer: #8a8f98;
  --consent-bg: #111318; --consent-accept-bg: #c9a227; --consent-accept-fg: #14171c;
  --head: 'Playfair Display', Georgia, serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html.dark, html.dark body { --bg: #0d0d0d; --card: #1a1a1a; --card-border: #2a2a2a; --ink: #fff; --muted: #b8b8b8; --gold: #c9a84c; --footer: #8a8a8a; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font-family: inherit; }
html.resuming #app { visibility: hidden; }

.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; }
.bar { background: var(--top); height: 56px; display: flex; align-items: center; justify-content: center; position: relative; }
.logo { color: #fff; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .02em; display: flex; align-items: center; }
.logo img { display: block; height: 28px; width: auto; }
.ph { display: inline-flex; align-items: center; justify-content: center; border: 1px dashed currentColor; border-radius: 6px; padding: 4px 12px; opacity: .85; font-family: var(--head); }
.back { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; }
.back svg { width: 24px; height: 24px; }
.shell.has-back .back { display: flex; }
.progress { height: 4px; background: #dfe2dd; }
html.dark .progress { background: #2a2a2a; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }
.shell:not(.has-progress) .progress { visibility: hidden; }

#app { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 28px 20px 24px; }
.screen { animation: in .22s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

h1 { font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1.2; margin: 8px 0 12px; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.small { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.opt { width: 100%; min-height: 58px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-align: left; font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--card-border); border-radius: 16px; cursor: pointer; transition: border-color .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.opt .emo { font-size: 24px; line-height: 1; flex: none; width: 30px; text-align: center; }
.opt.plain { justify-content: center; text-align: center; }
.opt.selected { border-color: var(--gold); background: #fbf6e2; }
.opt .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--card-border); flex: none; display: none; align-items: center; justify-content: center; font-size: 14px; background: #fff; }
.multi .opt .tick { display: flex; }
.opt.selected .tick { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

.cta { display: block; width: 100%; height: 56px; margin-top: 24px; border: 0; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 17px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; line-height: 56px; }
.cta:disabled { opacity: .4; cursor: default; }
.cta.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--gold); }

.scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 28px; }
.scale button { flex: 1; aspect-ratio: 1; max-width: 72px; border-radius: 50%; border: 1.5px solid var(--card-border); background: var(--card); font-size: 20px; font-weight: 600; color: var(--ink); cursor: pointer; }
.scale button.selected { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.scale-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }

.break .img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; margin: 0 0 20px; background: #e9ece6; }
.break .img.ph { border: 1px dashed #b9beb6; color: var(--muted); font-size: 18px; opacity: 1; }
.break p.text { text-align: center; font-size: 17px; margin: 0; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel] { width: 100%; height: 54px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--card-border); border-radius: 14px; }
.field input.bad { border-color: #c0392b; }
.field .iti { display: block; width: 100%; }
.err { color: #c0392b; font-size: 13px; min-height: 0; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }
.check a { color: inherit; }

/* Loader: same as the EAM quiz (ring, three lines, testimonial cards), in the trinity colors. */
.loader-title { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 30px; margin: 8px 0 0; text-align: center; }
.loader-sub { margin: 8px 0 16px; font-weight: 500; }
.ring { position: relative; width: 128px; height: 128px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: #dfe2dd; }
.ring .fill { stroke: var(--gold); stroke-linecap: round; }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.steps { list-style: none; margin: 16px auto 0; padding: 0; max-width: 320px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #9aa0a8; font-weight: 600; transition: color .3s; }
.steps li.active, .steps li.done { color: var(--ink); }
.steps .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #dfe2dd; display: grid; place-items: center; }
.steps li.active .dot { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .dot { border-color: var(--gold); background: var(--gold); }
.steps li.done .dot::after { content: ""; width: 9px; height: 5px; border: solid #000; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.quotes { display: flex; margin: 16px 0 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--card-border); box-shadow: 0 4px 16px rgba(16, 0, 24, .06); }
.tm-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 800; color: var(--ink); }
.tm-text { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.tm-byline { margin-top: 8px; font-size: 13px; line-height: 18px; }
.tm-name { font-weight: 700; color: var(--ink); }
.tm-role { font-weight: 500; color: var(--muted); }

/* results: dark, like the landing page */
.res-top { text-align: center; color: var(--muted); margin: 6px 0 0; }
.res-name { font-family: var(--head); font-weight: 700; font-size: 38px; line-height: 1.1; text-align: center; color: var(--gold); margin: 6px 0 22px; }
.echoes { list-style: none; margin: 0 0 22px; padding: 0; }
.echoes li { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; font-size: 15px; }
.res-text { font-size: 17px; margin: 0 0 16px; }
.res-note { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.qual { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--card-border); }
.qual h2 { font-family: var(--head); font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.qual p { margin: 0 0 16px; }
#cal { width: 100%; min-height: 560px; overflow: auto; border-radius: 16px; }
.booked { margin-top: 18px; text-align: center; }

.site-footer { margin-top: auto; }
.consent { font-family: var(--body); }
@media (max-width: 380px) { h1 { font-size: 24px; } .res-name { font-size: 32px; } }
body.has-consent #app { padding-bottom: calc(var(--consent-h, 130px) + 24px); }
.break .img[src*="ole"] { object-position: 50% 22%; }
.logo img { height: 34px; width: auto; }
/* Multi choice boxes start empty. The check mark only shows once the card is selected. */
.opt .tick { color: transparent; }
.opt.selected .tick { color: var(--gold-ink); }
.legal-block { margin-top: 28px; }
.legal-line { margin: 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 18px; }
.legal-line a { color: inherit; text-decoration: underline; }
.legal-line + .legal-line { margin-top: 2px; }
