
/* NMI V5.3.2 · Contrast, dark surfaces and contact/forms hotfix */

/* Dark CTA families */
.cta,.v27-cta,.nmi-partner-cta{
 background:#102F46!important;
 color:#fff!important;
 border-color:#1C526F!important;
}
.cta h1,.cta h2,.cta h3,.cta h4,
.v27-cta h1,.v27-cta h2,.v27-cta h3,.v27-cta h4,
.nmi-partner-cta h1,.nmi-partner-cta h2,.nmi-partner-cta h3,.nmi-partner-cta h4{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
.cta p,.cta span:not(.pill),
.v27-cta p,.v27-cta span:not(.pill),
.nmi-partner-cta p,.nmi-partner-cta span:not(.pill){
 color:#C5D5E3!important;
 -webkit-text-fill-color:#C5D5E3!important;
}
.cta .pill,.v27-cta .pill,.nmi-partner-cta .pill{
 color:#66E3FF!important;border-color:#3D7E9C!important;background:#123B54!important;
}
.cta .btn:not(.primary),.v27-cta .btn:not(.primary),.nmi-partner-cta .btn:not(.primary){
 background:#fff!important;color:#0B192C!important;border-color:#fff!important;
}

/* Demo console: prevent light-theme !important rules leaking into the dark application mockup */
.v27-console,.v27-console *{box-sizing:border-box}
.v27-console{background:#061B2B!important;color:#EAF4FB!important;border-color:#163E57!important}
.v27-console h1,.v27-console h2,.v27-console h3,.v27-console h4,
.v27-console b,.v27-console strong{color:#F7FBFF!important;-webkit-text-fill-color:#F7FBFF!important}
.v27-console p,.v27-console span,.v27-console label,.v27-console small{color:#B7CBDA!important;-webkit-text-fill-color:#B7CBDA!important}
.v27-console .v27-live,.v27-console .v27-live *{color:#35F2A1!important;-webkit-text-fill-color:#35F2A1!important}
.v27-console button{color:#BFD4E2!important}
.v27-console button.active{color:#fff!important}
.v27-sidebar{background:#061522!important;border-color:#17374D!important}
.v27-sidebar>b{color:#DCEBF5!important}
.v27-kpi,.v27-panel,.v27-card,.v27-timeline p{
 background:#09253A!important;border-color:#17445F!important;color:#DDEBF4!important;
}
.v27-kpi span,.v27-kpi small{color:#91B0C5!important}
.v27-kpi b,.v27-kpi strong{color:#F7FBFF!important}
.v27-panel h3,.v27-panel h4,.v27-card h3,.v27-card h4{color:#F7FBFF!important}
.v27-timeline time{color:#70CFFF!important}
.v27-timeline p.ok,.v27-timeline p.ok b{color:#56F2A7!important}
.v27-console .critical,.v27-console [class*="critical"]{color:#FF8D96!important}
.v27-console .warning,.v27-console [class*="warning"]{color:#FFD27A!important}
.v27-console .ok,.v27-console [class*="ok"]{color:#56F2A7!important}

/* Generic dark product/dashboard previews */
.portal-preview,.console,.dashboard-preview,.terminal{
 background:#0A263A!important;color:#EAF4FB!important;border-color:#1A4B67!important;
}
.portal-preview h1,.portal-preview h2,.portal-preview h3,.portal-preview h4,
.console h1,.console h2,.console h3,.console h4,
.dashboard-preview h1,.dashboard-preview h2,.dashboard-preview h3,.dashboard-preview h4,
.terminal h1,.terminal h2,.terminal h3,.terminal h4{
 color:#fff!important;-webkit-text-fill-color:#fff!important
}
.portal-preview p,.portal-preview span,.portal-preview small,.portal-preview label,
.console p,.console span,.console small,.console label,
.dashboard-preview p,.dashboard-preview span,.dashboard-preview small,.dashboard-preview label,
.terminal p,.terminal span,.terminal small,.terminal label{
 color:#B8CCDA!important;-webkit-text-fill-color:#B8CCDA!important
}

/* Contact page: explicit light form surface and readable hierarchy */
body:has(#lead-form) .section.alt{background:#F6F9FC!important}
#lead-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important}
#lead-form .full{grid-column:1/-1!important}
#lead-form label{display:block!important;margin-bottom:7px!important;color:#344054!important;font-size:12px!important;font-weight:800!important}
#lead-form input,#lead-form select,#lead-form textarea{
 width:100%!important;min-height:46px!important;padding:11px 13px!important;
 background:#fff!important;color:#172033!important;border:1px solid #C7D3DF!important;
 border-radius:10px!important;box-shadow:none!important
}
#lead-form textarea{min-height:130px!important;resize:vertical!important}
#lead-form input:focus,#lead-form select:focus,#lead-form textarea:focus{
 outline:3px solid rgba(20,120,212,.13)!important;border-color:#1478D4!important
}
#lead-form .btn.primary{min-height:46px!important;padding-inline:22px!important}
#form-notice{color:#526273!important;margin-top:10px!important;font-size:12px!important}
body:has(#lead-form) .card{padding:28px!important}
body:has(#lead-form) .card h2{margin-top:0!important;color:#0B192C!important}
body:has(#lead-form) .card p{color:#667085!important}

/* Contrast floor for common light content */
.hero .eyebrow,.p-hero .eyebrow{color:#0D6FBF!important}
.hero .lead,.p-hero .lead{color:#536579!important}
.section p,.p-section p,.card p{color:#5D6C7D!important}

/* Mobile */
@media(max-width:720px){
 #lead-form{grid-template-columns:1fr!important}
 #lead-form .full{grid-column:auto!important}
 .cta,.v27-cta,.nmi-partner-cta{padding:26px!important}
}
