/* Train365 v1.4.1: curated menus and responsive first-party demo conversion. */
body.train365 .t365-mega-curated .t365-mega-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:clamp(18px,3vw,38px)}
body.train365 .t365-mega-curated:has(.t365-mega-column:nth-child(3)) .t365-mega-columns{grid-template-columns:repeat(3,minmax(0,1fr))}
body.train365 .t365-mega-curated .t365-mega-column{min-width:0}
body.train365 .t365-mega-curated .t365-mega-column .t365-nav-link{min-height:40px;padding-block:10px;font-weight:650;line-height:1.35}
body.train365 .t365-mobile-strategic{padding-block:14px 25px}
body.train365 .t365-mobile-strategic .t365-mobile-nav-group>div{display:grid;grid-template-columns:1fr;gap:9px;padding:12px 0 20px}
body.train365 .t365-mobile-strategic .t365-nav-link{display:flex;align-items:center;min-height:48px;padding:13px 16px;line-height:1.4;border-radius:13px;font-size:15px;font-weight:650;overflow-wrap:anywhere}
body.train365 .t365-mobile-strategic .t365-mobile-nav-group>summary{min-height:58px;display:flex;justify-content:space-between;align-items:center;cursor:pointer}
body.train365 .t365-mobile-nav-group>summary:focus-visible{outline:3px solid #a3ff38;outline-offset:3px}
body.train365 .t365-mobile-strategic .mobile-language{margin-block:16px}
/* Dialog is a visually consistent overlay with native focus-trap and escape handling. */
.t365-quick-demo{position:fixed;inset:auto;max-width:min(810px,calc(100vw - 40px));width:100%;max-height:min(92dvh,920px);padding:0;border:1px solid #c9d7e7;border-radius:26px;background:#fff;color:#15263f;box-shadow:0 36px 110px rgba(2,12,28,.4);overflow-y:auto;overscroll-behavior:contain;z-index:999999}
.t365-quick-demo::backdrop{background:rgba(4,15,33,.78);backdrop-filter:blur(5px)}
.t365-quick-demo-inner{padding:clamp(22px,4vw,38px)}
.t365-quick-demo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #dfebf4}
.t365-quick-demo-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#2d6718}
body.train365 .t365-quick-demo h2{margin:8px 0;font-family:var(--ds-font-display,'Space Grotesk',sans-serif);font-size:clamp(26px,3.5vw,37px);line-height:1.13;color:#102542!important}
.t365-quick-demo-head p{margin:0;color:#475f79!important;font-size:15px;line-height:1.55}
.t365-quick-demo-close{flex-shrink:0;display:grid;place-items:center;width:44px;height:44px;min-height:44px;background:#edf4fb;color:#163454;border:1px solid #d6e3f0;border-radius:12px;cursor:pointer}
.t365-quick-demo-close:hover{background:#dfeefa}
.t365-quick-demo-body{padding-top:18px}
.t365-quick-demo-steps{margin:0 0 19px;font-weight:750;color:#2e5e36;font-size:13px}
.t365-quick-demo .t365-lead-form label{color:#1b3552!important}
.t365-quick-demo .t365-lead-form :is(input:not([type=checkbox]),select,textarea){color:#102640!important;background:#f8fbff!important;border-color:#b5c9dd!important}
.t365-quick-demo .t365-lead-form-grid{gap:12px}
.t365-quick-demo .t365-lead-form{gap:14px}
.t365-quick-demo .t365-lead-note{color:#556a83!important}
.t365-quick-demo .t365-lead-consent span{color:#304b68!important}
.t365-quick-demo .t365-lead-consent a,.t365-quick-demo-full a{color:#1359b1!important;text-decoration:underline}
.t365-quick-demo-full{margin:14px 0 0;text-align:center;font-size:14px}
.t365-quick-mobile-cta{display:none}
body.t365-quick-dialog-open{overflow:hidden}
@media(max-width:760px){
 body.train365 .t365-mobile-strategic .t365-mobile-nav-group>div{grid-template-columns:1fr}
 .t365-quick-demo{width:100%;max-width:none;margin:0;max-height:94dvh;max-height:calc(100dvh - 18px);height:calc(100dvh - 18px);inset:auto 0 0 0;border-radius:25px 25px 0 0;overflow:auto}
 .t365-quick-demo-inner{padding:22px 20px max(26px,env(safe-area-inset-bottom))}
 .t365-quick-demo .t365-lead-form-grid{grid-template-columns:1fr}
 .t365-quick-mobile-cta{display:flex;align-items:center;justify-content:center;gap:10px;position:fixed;left:18px;right:18px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:80;min-height:50px;border-radius:13px;background:#a3ff38;color:#091a2d!important;box-shadow:0 9px 30px rgba(2,11,25,.21);font-weight:800;text-decoration:none}
 body:has(#t365-quick-demo[open]) .t365-quick-mobile-cta,body:has(#mobile-menu:not([hidden])) .t365-quick-mobile-cta{display:none}
 body:has(.t365-demo-page) .t365-quick-mobile-cta,body:has(.t365-lead-form[data-t365-lead-form="roi"]:focus-within) .t365-quick-mobile-cta{display:none}
 body:has(.t365-quick-mobile-cta) .site-footer{padding-bottom:60px}
}
@media(prefers-reduced-motion:reduce){.t365-quick-demo::backdrop{backdrop-filter:none}}


/* v1.4.2 — compact, genuinely centred modal with independent scrolling. */
.t365-quick-demo{inset:0!important;margin:auto!important;width:min(870px,calc(100vw - 48px));max-width:870px;max-height:calc(100dvh - 48px);height:auto;overflow:hidden!important;overscroll-behavior:contain;border-radius:24px}
.t365-quick-demo[open]{display:flex;flex-direction:column}
.t365-quick-demo-inner{display:flex;flex-direction:column;min-height:0;width:100%;max-height:calc(100dvh - 48px);padding:24px 30px 20px}
.t365-quick-demo-head{flex:0 0 auto;padding-bottom:12px;gap:20px}
body.train365 .t365-quick-demo h2{font-size:clamp(25px,3vw,33px);line-height:1.16;margin:3px 0 6px}
.t365-quick-demo-head p{font-size:14px!important;line-height:1.46!important;max-width:640px}
.t365-quick-demo-body{padding-top:10px;overflow-y:auto;scrollbar-gutter:stable;min-height:0}
.t365-quick-progress{display:flex;align-items:center;justify-content:center;gap:12px;flex:0 0 auto;padding-top:12px}
.t365-quick-progress span:not(.t365-quick-progress-line){width:27px;height:27px;display:grid;place-items:center;background:#e5ecf5;border:1px solid #b9cadc;border-radius:50%;color:#49607a;font-size:13px;font-weight:800}
.t365-quick-progress span.is-active:not(.t365-quick-progress-line){background:#69D410;border-color:#69D410;color:#0B1B22}
.t365-quick-progress-line{height:2px;width:74px;background:#d6e3ef}
.t365-quick-stage[hidden]{display:none!important}
.t365-quick-stage{min-width:0;border:0;padding:0;margin:0;animation:t365Fade142 .18s ease-out}
@keyframes t365Fade142{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.t365-quick-stage-title{font-size:14px!important;color:#31536a!important;font-weight:800;letter-spacing:0;margin:4px 0 14px!important}
.t365-quick-demo .t365-lead-form{gap:0}
.t365-quick-demo .t365-lead-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 18px}
.t365-quick-demo .t365-lead-form-grid label{margin:0!important;min-width:0;font-size:13px!important;font-weight:750!important}
.t365-quick-demo .t365-lead-form-grid label small{color:#65798e;font-size:11px}
.t365-quick-demo .t365-lead-form :is(input:not([type=checkbox]),select){height:44px!important;min-height:44px!important;margin-top:6px!important;padding:9px 11px!important;font-size:14px!important;border-radius:11px!important}
.t365-quick-demo .t365-lead-consent{margin:12px 0!important;line-height:1.4;font-size:12px!important}
.t365-quick-demo .t365-lead-consent input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:#478D10}
.t365-quick-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.t365-quick-actions .btn{min-width:0;white-space:normal;text-align:center}
.t365-quick-next{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:18px;border:0;border-radius:12px;background:#69D410!important;color:#0B182C!important;font-size:15px;font-weight:850;cursor:pointer}
.t365-quick-next:hover,.t365-quick-next:focus-visible{background:#5BB70C!important}
.t365-quick-back{background:transparent;border:1px solid #bfcede;color:#183a5c;border-radius:10px;min-height:44px;padding:10px 18px;font-weight:750}
.t365-quick-demo .btn-primary{background:#69D410!important;color:#0B182C!important;min-height:46px}
.t365-quick-demo .t365-lead-note{font-size:11px!important;margin:7px 0 0!important;line-height:1.4!important}
.t365-quick-demo-full{margin:9px 0 0!important;font-size:12px!important}
.t365-quick-demo :focus-visible{outline:3px solid #69D410;outline-offset:2px}
@media(max-width:720px){
 .t365-quick-demo{inset:auto 0 0 0!important;margin:0!important;width:100%!important;max-width:none!important;max-height:100dvh!important;height:100dvh!important;border:0;border-radius:18px 18px 0 0}
 .t365-quick-demo-inner{height:100dvh;max-height:100dvh;padding:16px 18px max(14px,env(safe-area-inset-bottom));}
 .t365-quick-demo-head{padding-bottom:9px;gap:10px}
 .t365-quick-demo-head p{font-size:13px!important;line-height:1.35!important}
 body.train365 .t365-quick-demo h2{font-size:clamp(23px,6.5vw,28px)}
 .t365-quick-demo .t365-lead-form-grid{grid-template-columns:1fr;gap:8px}
 .t365-quick-demo .t365-lead-form :is(input:not([type=checkbox]),select){min-height:42px!important;height:42px!important;margin-top:4px!important}
 .t365-quick-progress{padding-top:9px}
 .t365-quick-demo-body{padding-top:8px}
 .t365-quick-actions{position:sticky;bottom:0;background:#fff;padding:9px 0 max(5px,env(safe-area-inset-bottom));box-shadow:0 -10px 14px #fff}
 .t365-quick-next{position:sticky;bottom:0;margin-top:13px}
 .t365-quick-demo .t365-lead-consent{margin:9px 0!important}
}
@media(max-height:650px) and (min-width:721px){.t365-quick-demo-inner{padding:14px 22px}.t365-quick-demo-head p{display:none}}
@media(prefers-reduced-motion:reduce){.t365-quick-stage{animation:none}}

/* v1.4.2 — consistent footer semantics and visual rhythm in both appearances. */
body.train365 .site-footer{background:#0B1830!important;color:#E8F0FB!important;border-top:1px solid #31425D;padding:clamp(42px,5vw,68px) 0 22px}
body.train365 .site-footer .footer-top{grid-template-columns:minmax(220px,1fr) minmax(0,1.7fr);gap:clamp(34px,5vw,74px);padding-bottom:clamp(32px,4vw,54px)}
body.train365 .site-footer .footer-identity>p{color:#D1DFF0!important;font-size:14px;line-height:1.65;max-width:345px}
body.train365 .site-footer .footer-nav{gap:clamp(16px,2vw,30px)}
body.train365 .site-footer .footer-nav>div{gap:12px}
body.train365 .site-footer .footer-nav strong{color:#F6FAFF!important;font-size:14px;margin-bottom:5px;font-weight:800}
body.train365 .site-footer .footer-nav a{color:#C6D8EC!important;font-size:13px;line-height:1.5}
body.train365 .site-footer .footer-nav a:hover,body.train365 .site-footer .footer-nav a:focus-visible{color:#A3FF38!important;text-decoration:underline}
body.train365 .site-footer .footer-bottom{color:#C0D2E5!important;border-top:1px solid #40516B;font-size:12px;line-height:1.7}
body.train365 .site-footer .footer-bottom a{color:#D6E6F6!important}
html[data-t365-appearance="light"] body.train365 .site-footer{background:#E8F0FA!important;color:#10233F!important;border-top:1px solid #C4D4E5}
html[data-t365-appearance="light"] body.train365 .site-footer .footer-nav strong{color:#132946!important}
html[data-t365-appearance="light"] body.train365 .site-footer .footer-nav a{color:#2B4869!important}
html[data-t365-appearance="light"] body.train365 .site-footer .footer-nav a:hover{color:#315D0A!important}
html[data-t365-appearance="light"] body.train365 .site-footer .footer-identity>p{color:#3B5470!important}
html[data-t365-appearance="light"] body.train365 .site-footer .footer-bottom{color:#445C78!important;border-top-color:#C7D7E8}
html[data-t365-appearance="light"] body.train365 .site-footer .footer-bottom a{color:#29476A!important}
@media(max-width:900px){body.train365 .site-footer .footer-top{grid-template-columns:1fr;gap:25px}}
@media(max-width:650px){body.train365 .site-footer .footer-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 16px}body.train365 .site-footer .footer-bottom{flex-direction:column;gap:10px}body.train365 .site-footer .footer-bottom a{margin:0}}
/* Post-QA corrections: don't stretch desktop dialog; keep required markers beside labels. */
@media(min-width:721px){.t365-quick-demo{height:fit-content!important;max-height:calc(100dvh - 48px)!important}}
.t365-quick-stage{animation:none}
.t365-quick-demo .t365-lead-form-grid label{display:block!important;line-height:1.4!important;color:#1B3552!important}
.t365-quick-demo .t365-lead-form-grid label :is(input:not([type=checkbox]),select,textarea){display:block!important;width:100%!important}
.t365-quick-demo .t365-lead-consent{color:#264662!important}
