/* ROI calculators: the full report is unlocked with a short form (roi-gate.js) */
.rg-lock { position: relative; margin-top: 18px; }
html:not(.rg-open) .rg-in { filter: blur(7px); opacity: .45; pointer-events: none; user-select: none; max-height: 220px; overflow: hidden; }
.rg-form { position: relative; z-index: 2; margin-top: -150px; padding: 22px 20px 18px; border-radius: 20px; background: #fff; border: 1.5px solid rgba(247,134,30,.45); box-shadow: 0 24px 50px -24px rgba(18,33,47,.45); color: #12212f; }
html.rg-open .rg-form { display: none; }
.rg-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 800 11.5px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #c25e00; }
.rg-k i { width: 14px; height: 14px; border-radius: 3px; background: #f7861e; -webkit-mask: radial-gradient(circle at 50% 38%, transparent 3px, #000 3.5px); mask: radial-gradient(circle at 50% 38%, transparent 3px, #000 3.5px); }
.rg-h { margin: 8px 0 6px; font-size: 20px; line-height: 1.25; }
.rg-p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #5d6b7a; }
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rg-grid label { display: grid; gap: 4px; }
.rg-grid .rg-wide { grid-column: 1 / -1; }
.rg-grid span { font-size: 12.5px; font-weight: 700; color: #3a4a5a; }
.rg-grid input, .rg-grid select { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #e6eaef; background: #fff; font: 500 15px Inter, sans-serif; color: #12212f; }
.rg-grid input:focus, .rg-grid select:focus { outline: none; border-color: #f7861e; box-shadow: 0 0 0 3px rgba(247,134,30,.15); }
.rg-btn { width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 12px; background: #f7861e; color: #fff; font: 700 15.5px Inter, sans-serif; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(247,134,30,.8); }
.rg-btn:disabled { opacity: .6; cursor: wait; }
.rg-msg { min-height: 18px; margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.rg-msg.err { color: #c0262c; }
.rg-fine { margin: 4px 0 0; font-size: 12px; color: #7a8794; }
.rg-done { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #e9f8f0; color: #138a50; font-size: 14px; font-weight: 600; line-height: 1.5; }
html:not(.rg-open) .rg-blur-t { filter: blur(6px); opacity: .5; pointer-events: none; user-select: none; }
html.rg-open .rg-how-note { display: none; }
.rg-how-note { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #fff4e8; font-size: 15px; font-weight: 600; color: #8a4108; }
.rg-how-note a { color: #c25e00; text-decoration: underline; }
@media (max-width: 560px) { .rg-grid { grid-template-columns: 1fr; } .rg-form { margin-top: -120px; padding: 18px 14px; } }

/* ===== value-first: report always open; offer card under it + slide-in nudge ===== */
.rg-lock, html .rg-in, html .rg-blur-t { filter: none !important; opacity: 1 !important; pointer-events: auto !important; user-select: auto !important; }
.rg-how-note { display: none !important; }
.rg-form.rg-main { display: block !important; margin-top: 18px; padding: 24px 22px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #f3dcc0, 0 30px 60px -36px rgba(120, 60, 0, .55); color: #12212f; }
.rg-k em, .rg-grid em { font-style: normal; font-weight: 600; color: #8a96a3; }
.rg-perks { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.rg-perks li { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; color: #3a4a5a; }
.rg-perks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 11px; font-weight: 800; }
.rg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.rg-ok { padding: 6px 2px; }
.rg-ok b { display: block; font-size: 20px; color: #15803d; }
.rg-ok p { margin: 6px 0 14px; font-size: 14.5px; line-height: 1.55; color: #3a4a5a; }
.rg-ok .rg-btn { width: 100%; color: #fff; }
.rg-nudge { position: fixed; z-index: 80; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 36px)); padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #f3dcc0, 0 30px 70px -20px rgba(40, 25, 10, .45); transform: translateY(30px); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.rg-nudge.in { transform: none; opacity: 1; pointer-events: auto; }
.rg-x { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f5efe7; font-size: 18px; line-height: 1; cursor: pointer; color: #5a6878; }
.rg-big { margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #ffa24a, #f7861e); color: #fff; }
.rg-big small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.rg-big b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.rg-mini { margin: 0; padding: 0; background: none; box-shadow: none; }
.rg-mini .rg-h { font-size: 17px; margin-top: 4px; } .rg-mini .rg-p { font-size: 13px; margin-bottom: 10px; }
.rg-mini .rg-grid { grid-template-columns: 1fr; gap: 8px; }
@media (max-width: 560px) { .rg-form.rg-main { margin-top: 16px; } .rg-nudge { left: 10px; right: 10px; width: auto; bottom: 86px; } }
@media (prefers-reduced-motion: reduce) { .rg-nudge { transition: none; } }
.rg-form.rg-mini { display: block !important; }
.rg-mini .rg-perks { display: none !important; }
.rg-form.rg-mini { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; }
/* form appears only after every number is filled */
.rg-form.rg-main { display: none !important; }
.rg-form.rg-main.show { display: block !important; animation: rgIn .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes rgIn { from { opacity: 0; transform: translateY(14px); } }
.rg-prog { margin-top: 18px; padding: 22px 20px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #f3dcc0, 0 30px 60px -36px rgba(120, 60, 0, .55); color: #12212f; }
.rg-bar { height: 10px; margin-top: 6px; border-radius: 99px; background: #f3ece3; overflow: hidden; }
.rg-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffa24a, #f7861e); transition: width .4s; }
.rg-count { margin: 10px 0 0; font-size: 14px; color: #5a6878; } .rg-count b { color: #e56f06; font-size: 16px; }
.rg-next { width: 100%; height: 46px; margin-top: 14px; border: 0; border-radius: 12px; background: #12212f; color: #fff; font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; }
.rg-next:hover { background: #f7861e; }
/* form + progress inside the left calculator card */
#roiForm .rg-prog, #roiForm .rg-form.rg-main { margin-top: 28px; padding: 26px 26px 22px; border-radius: 20px; background: linear-gradient(135deg, #fff8f0, #ffefdd); box-shadow: 0 0 0 1px #f3dcc0; }
#roiForm .rg-form.rg-main .rg-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
#roiForm .rg-btn { max-width: 420px; }
#roiForm .rg-next { max-width: 420px; }
.roi-grid { align-items: start; }
@media (max-width: 640px) { #roiForm .rg-form.rg-main .rg-grid { grid-template-columns: 1fr; } }
