/* Inheritance checker: chat card, report wall and result styles (used by who-would-inherit.html and rules-of-intestacy.html). */
.iq-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.iq-top { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--border); background: var(--cream); }
.iq-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--slate); color: var(--cream); display: grid; place-items: center; font-family: var(--font-serif); font-size: .95rem; flex-shrink: 0; }
.iq-top b { display: block; font-weight: 600; color: var(--slate); font-size: .95rem; line-height: 1.2; }
.iq-top small { color: var(--text-muted); font-size: .8rem; }
.iq-bar { margin-left: auto; width: 110px; height: 6px; border-radius: 6px; background: var(--sage-wash); overflow: hidden; }
.iq-bar i { display: block; height: 100%; width: 0; background: var(--sage-deep); border-radius: 6px; transition: width .5s var(--ease); }
.iq-chat { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; }
.iq-msg { max-width: 88%; padding: 13px 18px; border-radius: 20px; line-height: 1.55; font-size: 1.02rem; animation: iqIn .4s var(--ease) both; }
.iq-msg.bot { background: var(--sage-wash); color: var(--text); border-bottom-left-radius: 6px; align-self: flex-start; }
.iq-msg.bot small { display: block; margin-top: 6px; color: var(--text-muted); font-size: .88rem; line-height: 1.5; }
.iq-msg.me { background: var(--slate); color: var(--cream); border-bottom-right-radius: 6px; align-self: flex-end; }
.iq-typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.iq-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); opacity: .4; animation: iqDot 1s infinite ease-in-out; }
.iq-typing span:nth-child(2) { animation-delay: .15s; } .iq-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes iqDot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes iqIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.iq-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; padding: 4px 22px 22px; animation: iqIn .4s var(--ease) both; }
.iq-opt { text-align: left; display: flex; align-items: center; min-height: 56px; padding: 14px 20px; border-radius: var(--r-md); border: 2px solid var(--sage-light); background: var(--white); color: var(--slate); font-weight: 500; font-size: 1rem; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.iq-opt:hover { border-color: var(--sage-deep); background: var(--sage-pale); transform: translateY(-2px); }
.iq-opt[aria-pressed="true"] { border-color: var(--slate); background: var(--slate); color: var(--cream); }
.iq-opt small { display: block; font-weight: 300; font-size: .84rem; opacity: .8; margin-top: 2px; }
.iq-go { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
.iq-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px 18px; font-size: .84rem; color: var(--text-muted); }
.iq-foot button { background: none; border: 0; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .84rem; }
.iq-foot button[disabled] { opacity: .35; cursor: default; text-decoration: none; }
/* result */
.iq-result { margin: 4px 22px 22px; border-radius: var(--r-lg); border: 1px solid var(--sage-light); background: var(--cream); padding: clamp(22px, 4vw, 34px); animation: iqIn .5s var(--ease) both; }
.iq-result h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; color: var(--slate); margin: 6px 0 12px; text-wrap: balance; }
.iq-result p { color: var(--text-body); line-height: 1.7; margin-bottom: 12px; }
.iq-split { display: flex; height: 46px; border-radius: var(--r-pill); overflow: hidden; margin: 18px 0 8px; box-shadow: inset 0 0 0 1px rgba(74,86,86,.1); }
.iq-split > div { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .86rem; padding: 0 8px; white-space: nowrap; }
.iq-split .c1 { background: var(--slate); } .iq-split .c2 { background: var(--sage-deep); } .iq-split .c3 { background: var(--sage); }
.iq-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--text-body); margin-bottom: 14px; }
.iq-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.iq-points { list-style: none; display: grid; gap: 10px; margin: 14px 0; }
.iq-points li { position: relative; padding-left: 28px; line-height: 1.6; color: var(--text-body); }
.iq-points li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--sage-deep); border-bottom: 2.5px solid var(--sage-deep); transform: rotate(-45deg); }
.iq-warn { background: var(--warning-wash); border: 1px solid #f0d3bd; border-radius: var(--r-md); padding: 16px 20px; margin: 16px 0; color: #7a4519; }
.iq-warn b { display: block; margin-bottom: 4px; }
.iq-warn ul { margin: 6px 0 0 18px; line-height: 1.6; }
.iq-cta { background: var(--slate); color: var(--cream); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 32px); margin-top: 22px; text-align: center; }
.iq-cta h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.iq-cta p { color: rgba(250,248,244,.82); margin-bottom: 18px; }
.iq-locked { position: relative; margin-top: 8px; }
.iq-blur { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; max-height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.iq-wall { position: relative; margin-top: -150px; background: var(--white); border: 1px solid var(--sage-light); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(20px, 4vw, 30px); display: grid; gap: 6px; }
.iq-wall h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; color: var(--slate); margin: 0; }
.iq-wall p { margin: 0 0 8px; }
.iq-wall label { font-weight: 600; color: var(--slate); font-size: .9rem; margin-top: 6px; }
.iq-wall label span { font-weight: 300; color: var(--text-muted); }
.iq-wall input[type=text], .iq-wall input[type=email], .iq-wall input[type=tel] { width: 100%; padding: 14px 18px; border-radius: var(--r-md); border: 2px solid var(--sage-light); background: var(--white); color: var(--text); font-size: 1rem; }
.iq-wall input:focus { outline: none; border-color: var(--sage-deep); }
.iq-wall .iq-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .92rem; line-height: 1.5; color: var(--text-body); margin: 10px 0 6px; cursor: pointer; }
.iq-wall .iq-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--slate); }
.iq-wall button[type=submit] { width: 100%; margin-top: 6px; }
.iq-wall small { display: block; margin-top: 4px; color: var(--text-muted); font-size: .8rem; line-height: 1.5; }
.iq-wall small a { color: var(--slate); }
.iq-wall .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.iq-ok { color: var(--sage-deep); font-weight: 600; }
.iq-disc { margin-top: 18px; font-size: .8rem; line-height: 1.6; color: var(--text-muted); text-align: center; }
.iq-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font-size: .9rem; color: var(--text-muted); }
.iq-trust span::before { content: '\2713\00a0'; color: var(--sage-deep); font-weight: 700; }
@media (max-width: 560px) { .iq-bar { width: 70px; } .iq-msg { max-width: 94%; }  .iq-split > div { font-size: .76rem; padding: 0 4px; } }
@media (prefers-reduced-motion: reduce) { .iq-msg, .iq-opts, .iq-result { animation: none; } .iq-typing span { animation: none; } }
