/* ===== IPS hero: the form fills row by row with sample answers (desktop + phone) ===== */
.rb-ipsform { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: flex-end; padding-inline-end: 8px; }
.rb-ipsform::before { content: ''; position: absolute; left: 50%; top: 50%; width: 480px; height: 480px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 28% 22%, rgba(201, 162, 74, .26), transparent 55%), radial-gradient(circle at 76% 80%, rgba(47, 111, 179, .16), transparent 55%); filter: blur(12px); pointer-events: none; }
.rb-ipsform::after { content: ''; position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; border-radius: 50%; border: 1px solid var(--line-2); transform: translate(-50%, -50%); pointer-events: none; }
.rb-ipsform-card { position: relative; z-index: 1; width: 380px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 20px 22px 20px; overflow: hidden; }
.rb-ipsform-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(270deg, var(--navy), var(--wine) 55%, var(--gold)); }
.rb-ipsform-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rb-ipsform-title { display: inline-flex; align-items: center; gap: 10px; }
.rb-ipsform-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rb-ipsform-logo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rb-ipsform-title b { font-size: 18px; font-weight: 500; color: var(--navy); }
.rb-ipsform-count { font-size: 12.5px; color: var(--wine); background: var(--wine-tint); border-radius: 999px; padding: 4px 12px; min-width: 60px; text-align: center; transition: background .35s, color .35s; }
.rb-ipsform.is-done .rb-ipsform-count { color: var(--green); background: var(--green-tint); }
.rb-ipsform-progress { height: 4px; border-radius: 2px; background: var(--bg); margin: 14px 0 6px; overflow: hidden; }
.rb-ipsform-progress i { display: block; height: 100%; width: 0; background: linear-gradient(270deg, var(--navy), var(--wine)); border-radius: 2px; transition: width .5s ease; }
.rb-ipsform-row { --c: var(--navy); --ct: var(--navy-tint); display: grid; grid-template-columns: 28px 84px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 5px 0; }
.rb-ipsform-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--ct); color: var(--c); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s, box-shadow .3s; }
.rb-ipsform-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rb-ipsform-row.is-active .rb-ipsform-ico { transform: scale(1.1); box-shadow: 0 0 0 3px var(--ct); }
.rb-ipsform-label { font-size: 12.5px; color: var(--muted); transition: color .3s; }
.rb-ipsform-row.is-active .rb-ipsform-label { color: var(--c); }
.rb-ipsform-row.is-done .rb-ipsform-label { color: var(--ink); }
.rb-ipsform-field { height: 30px; border-radius: 8px; background: var(--bg); border: 1px solid transparent; padding: 0 10px; display: flex; align-items: center; font-size: 12.5px; color: var(--navy); min-width: 0; transition: background .3s, border-color .3s, box-shadow .3s; }
.rb-ipsform-field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-ipsform-row.is-active .rb-ipsform-field { background: #fff; border-color: var(--c); box-shadow: 0 0 0 3px var(--ct); }
.rb-ipsform-row.is-done .rb-ipsform-field { background: #fff; border-color: var(--line-2); }
.rb-ipsform-row.is-active .rb-ipsform-field span::after { content: ''; display: inline-block; width: 2px; height: 14px; background: var(--c); vertical-align: -2px; margin-inline-start: 2px; animation: rb-blink .7s steps(1) infinite; }
.rb-ipsform-check { width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.rb-ipsform-check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rb-ipsform-row.is-done .rb-ipsform-check { opacity: 1; transform: none; }
/* the result slot: an empty dashed box while the form fills, the first-assessment line once it is complete */
.rb-ipsform-result { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 58px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; transition: background .45s, border-color .45s; }
.rb-ipsform-result-ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1.25); }
.rb-ipsform-result-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rb-ipsform-result-text { font-size: 12.5px; line-height: 1.7; color: var(--navy); opacity: 0; transform: translateY(5px); transition: opacity .45s .15s, transform .45s .15s; }
.rb-ipsform.is-done .rb-ipsform-result { background: var(--green-tint); border-color: transparent; }
.rb-ipsform.is-done .rb-ipsform-result-ico { opacity: 1; transform: none; }
.rb-ipsform.is-done .rb-ipsform-result-text { opacity: 1; transform: none; }
.rb-ipsform.is-reset .rb-ipsform-field span, .rb-ipsform.is-reset .rb-ipsform-check, .rb-ipsform.is-reset .rb-ipsform-result, .rb-ipsform.is-reset .rb-ipsform-result-ico, .rb-ipsform.is-reset .rb-ipsform-result-text { transition: none; }
@keyframes rb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (max-width: 1180px) { .rb-ipsform { justify-content: center; padding-inline-end: 0; } }
@media (prefers-reduced-motion: reduce) { .rb-ipsform * { transition: none !important; animation: none !important; } }
/* phone (ips.css page): the figure keeps its caption, the illustration is this card */
.ips-visual .rb-ipsform { min-height: 0; justify-content: center; padding: 10px 0 6px; }
.ips-visual .rb-ipsform::before, .ips-visual .rb-ipsform::after { display: none; }
.ips-visual .rb-ipsform-card { width: 100%; max-width: 380px; border-radius: 18px; padding: 16px 14px 14px; }
.ips-visual .rb-ipsform-row { grid-template-columns: 26px 74px minmax(0, 1fr) 18px; gap: 7px; }
.ips-visual .rb-ipsform-ico { width: 26px; height: 26px; }
.ips-visual .rb-ipsform-field { font-size: 12px; padding: 0 8px; }
.ips-visual .rb-ipsform-result-text { font-size: 12px; }
/* the phone IPS page has its own CSS without the site tokens; the card needs these */
#itahlil-ips-page { --navy: #13254b; --navy-tint: #eef2f8; --ink: #1f2a44; --muted: #6b7686; --faint: #98a2b3; --line: #e6eaf0; --line-2: #d6dce6; --bg: #f4f6fa; --wine: #790137; --wine-tint: #fbf0f4; --gold: #c9a24a; --green: #2f7a5b; --green-tint: #e9f4ee; --shadow: 0 12px 32px rgba(19, 37, 75, .07); --shadow-sm: 0 6px 16px rgba(19, 37, 75, .08); }
#itahlil-ips-page .rb-ipsform-card { font-family: inherit; }
/* phone caption above the card: smaller, a white quote chip with a wine accent instead of the big headline */
#itahlil-ips-page .ips-visual .ips-statement { position: relative; margin: 14px 14px 0; padding: 11px 16px 9px; font-size: 14.5px; line-height: 1.8; text-align: center; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
#itahlil-ips-page .ips-visual .ips-statement::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 44px; height: 3px; background: var(--wine); border-radius: 0 0 3px 3px; }
.ips-visual .rb-ipsform { padding: 12px 12px 14px; }
.ips-visual .rb-ipsform-card { max-width: 100%; box-shadow: 0 10px 26px rgba(19, 37, 75, .08); }
