/* Blog lead form sidebar (inc/post-lead.php). Class names avoid the -card/-item/-box/-list/-grid
   suffixes that theme.css repaints generically. */
/* Legacy CSS sets html,body{overflow-x:hidden}, which turns body into a scroll container and stops
   position:sticky. clip trims the same overflow without that (browsers without clip keep hidden). */
html,body.single-post{overflow-x:clip!important}
main .tp-post-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:56px;align-items:start;max-width:1100px!important;width:100%;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
.tp-post-main{min-width:0}
.tp-post-main>.wp-block-post-content{padding-left:0!important;padding-right:0!important}
.tp-post-main>.wp-block-post-content>*{max-width:100%!important}
.tp-post-aside{position:sticky;top:104px;align-self:start;margin:0!important}
.tp-leadform{background:#fff;border:1px solid #dfe5ee;border-top:4px solid #12a36d;border-radius:10px;box-shadow:0 10px 30px rgba(8,26,45,.08);padding:22px 18px 8px;box-sizing:border-box}
.tp-leadform-eyebrow{margin:0 0 6px!important;font-size:.78rem!important;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#0b7a52!important;padding:0 6px}
.tp-leadform-sub{margin:0!important;font-size:.95rem!important;line-height:1.5!important;color:#334155!important;padding:0 6px}
.tp-leadform-frame{display:block;width:100%;max-width:none!important;height:470px;border:0;margin:0;overflow:hidden;background:transparent}
.tp-leadform-thanks{text-align:center;padding:28px 8px 22px}
.tp-leadform-thanks h3{margin:0 0 8px!important;font-size:1.35rem!important;color:#0f172a!important}
.tp-leadform-thanks p{margin:0!important;color:#334155!important;font-size:.95rem!important}
.tp-leadform-tick{display:inline-block;width:44px;height:44px;border-radius:50%;background:#12a36d;margin-bottom:12px;position:relative}
.tp-leadform-tick:after{content:"";position:absolute;left:16px;top:10px;width:10px;height:19px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}
@media (max-width:1023px){
	main .tp-post-layout{grid-template-columns:minmax(0,1fr);gap:40px}
	.tp-post-aside{position:static;width:100%;max-width:560px!important;margin:0 auto!important}
}
@media (max-width:767px){
	.tp-post-main>.wp-block-post-content{padding-left:var(--wp--style--root--padding-left,16px)!important;padding-right:var(--wp--style--root--padding-right,16px)!important}
	.tp-post-aside{padding:0 16px;box-sizing:border-box}
}

/* Native CRM form inside the card (2026-12-01) */
.tp-leadform .tp-crm{padding:16px 6px 14px}
.tp-leadform .tp-crm .tp-crm-row{grid-template-columns:1fr}
.tp-leadform .tp-crm-thanks{padding:28px 8px 22px}
