/* ===== Header, menus, search, modals, accordions, contact widget, footer - Smart Payroll Forms static site
   (hand-written; matches the DNN "minis" look) ===== */
:root{--accent:rgb(26,188,156);--ink:rgb(39,39,39);--dark:rgb(30,30,30)}

.wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 15px}
@media (max-width:1199.98px){.wrap{max-width:960px}}
@media (max-width:991.98px){.wrap{max-width:760px}}
@media (max-width:767.98px){.wrap{max-width:540px}}
@media (max-width:575.98px){.wrap{max-width:none}}

/* ---------- desktop header (992px and up): fixed, white, sits over the top of the hero ---------- */
.hs{height:0}
.dh{position:fixed;top:0;left:0;width:100%;z-index:1000;height:100px;background:#fff;transition:box-shadow .2s ease-in}
.dh.scrolled{box-shadow:0 0 10px rgba(0,0,0,.1)}
.dh-in{display:flex;height:100px}
.dh-logo{flex:0 0 251px;padding:0 8px 0 35px;display:flex;align-items:center}
.dh-logo a{display:block;line-height:0}
.dh-logo img{width:208px;height:80px;margin:0}
.dh-nav{flex:1 1 auto;padding:0 8px;min-width:0;display:flex;align-items:center;justify-content:center}
.dh-right{flex:0 0 155px;padding:0 35px 0 8px;display:flex;align-items:center;justify-content:flex-end}
.dm{list-style:none;margin:0;padding:0;display:flex}
.dm>li{position:relative}
.dm>li>a{position:relative;display:inline-block;padding:10px 22px;font-size:18px;font-weight:600;line-height:36px;color:#000;white-space:nowrap;transition:color .2s ease-in}
.dm>li>a::before{content:"";position:absolute;left:22px;bottom:12px;width:0;height:2px;border-bottom:2px solid var(--accent);transition:width .3s ease}
.dm>li>a:hover,.dm>li.current>a{color:var(--accent)}
.dm>li>a:hover::before,.dm>li.current>a::before{width:calc(100% - 44px)}
/* live site wraps the menu onto two lines at 992-1199px; tightened here so it stays on one line */
@media (max-width:1199.98px){.dm>li>a{padding:10px 8px}.dm>li>a::before{left:8px}.dm>li>a:hover::before,.dm>li.current>a::before{width:calc(100% - 16px)}}
.icon-btn{width:22px;height:22px;padding:0;border:0;background:none;color:rgb(30,30,30);cursor:pointer;display:block;transition:color .3s ease-in}
.icon-btn:hover{color:var(--accent)}
.icon-btn svg{display:block;width:22px;height:22px}

/* ---------- mobile header (991px and down) ---------- */
.mh{display:none}
@media (max-width:991.98px){
  .dh{display:none}
  .hs{height:64px}
  .mh{display:block;position:fixed;top:0;left:0;width:100%;height:64px;z-index:1000;background:#fff;box-shadow:0 0 10px rgba(0,0,0,.2)}
}
.mh-bar{position:relative;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 15px}
.mh .icon-btn{color:var(--ink)}
.mh-logo{position:absolute;left:50%;top:8px;transform:translateX(-50%);line-height:0}
.mh-logo img{height:48px;width:auto}

/* ---------- mobile slide-out menu ---------- */
.mm{position:fixed;top:0;left:0;width:100%;height:100%;background:#fff;padding:65px 0 0;z-index:1005;overflow:hidden;transform:translateX(100%);transition:.3s ease-in-out;visibility:hidden}
.mm.open{transform:none;visibility:visible}
.mm-close{position:absolute;top:20px;right:20px;width:24px;height:24px;z-index:1010;cursor:pointer;background:none;border:0;padding:0}
.mm-close::before,.mm-close::after{content:"";position:absolute;top:11px;left:-1px;width:25px;height:2px;background:var(--ink)}
.mm-close::before{transform:rotate(-45deg)}.mm-close::after{transform:rotate(45deg)}
.mm-panel{position:absolute;top:0;left:0;width:100%;height:100%;padding:65px 0 0;background:#fff;overflow:hidden}
.mm-title{position:absolute;top:0;left:0;width:100%;height:65px;padding:0 20px;font-size:22px;font-weight:600;line-height:65px;color:var(--accent);box-shadow:0 0 10px rgba(0,0,0,.3);background:#fff;z-index:2}
.mm ul{list-style:none;margin:0;padding:35px 0;height:100%;overflow-y:auto}
.mm li{position:relative;border-bottom:1px solid rgb(226,226,226)}
.mm li>a{display:block;padding:15px 20px}
.mm li>a span{font-size:20px;font-weight:600;line-height:36px;color:var(--ink);transition:color .3s ease-in-out}
.mm li.current>a span,.mm li>a:hover span{color:var(--accent)}

/* ---------- search popup ---------- */
.sp{position:fixed;inset:0;z-index:1100;background:var(--accent);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:scale(1.05);transition:.4s}
.sp.open{opacity:1;visibility:visible;transform:none}
.sp::before{content:"Search";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:200px;font-weight:300;line-height:1;color:#fff;opacity:.05;pointer-events:none}
@media (max-width:767.98px){.sp::before{font-size:100px}}
.sp-close{position:absolute;top:30px;right:40px;width:28px;height:28px;background:none;border:0;padding:0;cursor:pointer}
@media (max-width:767.98px){.sp-close{top:13px;right:15px}}
.sp-close::before,.sp-close::after{content:"";position:absolute;left:13px;top:-1px;width:1.5px;height:30px;background:#fff}
.sp-close::before{transform:rotate(-45deg)}.sp-close::after{transform:rotate(45deg)}
.sp form{position:relative;width:846px;max-width:calc(100% - 70px)}
.sp input{width:100%;height:70px;padding:10px 50px;border:0;border-bottom:1px solid #fff;background:transparent;color:#fff;font:600 24px/1.5 Nunito;text-align:center;outline:0;border-radius:0}
@media (max-width:767.98px){.sp input{height:58px;padding:10px 40px 10px 0;font-size:16px;font-weight:400;text-align:left}}
.sp input::placeholder{color:#fff;opacity:1}
.sp form button{position:absolute;right:4px;top:50%;margin-top:-12px;width:34px;height:24px;background:none;border:0;padding:0;cursor:pointer}
.sp form button::before{content:"";position:absolute;right:1px;top:7px;width:9px;height:9px;border-top:1px solid #fff;border-right:1px solid #fff;transform:rotate(45deg)}
.sp form button::after{content:"";position:absolute;right:1px;top:11px;width:30px;height:1px;background:#fff}

/* ---------- content accordions (How It Works: "Why Smart Payroll Forms Work Better") ---------- */
main .accordion-header a{cursor:pointer}
main .accordion-item.opened{background:var(--accent);color:#fff;border-bottom-color:transparent;box-shadow:0 0 35px rgba(0,0,0,.1)}
main .accordion-item.opened>.accordion-header a,main .accordion-item.opened>.accordion-content,main .accordion-item.opened>.accordion-content p{color:#fff}
main .accordion-item.opened .arrow::before,main .accordion-item.opened .arrow::after{background-color:#fff}
main .accordion-item.opened .arrow::after{transform:scaleY(0)}
main .accordion-item.opened>.accordion-content{display:block}
main .accordion-item:not(.opened)>.accordion-header a:hover{color:var(--accent)}

/* ---------- modal boxes (FAQ, overview video) ---------- */
.mb{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);overflow-y:auto;opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,visibility .2s}
.mb.open{opacity:1;visibility:visible}
.mb-dialog{width:100%;max-height:100%;padding:30px 0}
.mb-content{width:calc(100% - 30px);max-width:1140px;margin:0 auto;background:#fff;border-radius:4px;display:flex;flex-direction:column;transform:translateY(-20px);transition:transform .2s ease-in-out}
.mb.open .mb-content{transform:none}
.mb-header{position:relative}
.mb-title{display:flex;padding:16px 56px 16px 16px;font-size:16px;font-weight:600;line-height:22.4px;color:rgb(51,51,51);border-bottom:1px solid rgb(222,226,230)}
.mb-close{position:absolute;top:13px;right:13px;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:4px;background:none;cursor:pointer;opacity:.5}
.mb-close:hover,.mb-close:focus{opacity:1;border-color:rgb(120,120,120)}
.mb-close::before,.mb-close::after{content:"";position:absolute;left:3px;top:12.5px;width:20px;height:1.5px;background:#000}
.mb-close::before{transform:rotate(45deg)}.mb-close::after{transform:rotate(-45deg)}
.mb-body{padding:15px}
.mb-body iframe{display:block;width:100%;height:auto;aspect-ratio:16/9}
.mb-footer{display:flex;justify-content:flex-end;padding:12px 15px;border-top:1px solid rgb(222,226,230)}
.mb-cancel{padding:8px 27px;border:1px solid rgb(222,226,230);border-radius:3px;background:#fff;color:rgb(51,51,51);font-size:14px;line-height:24px;cursor:pointer;transition:.2s}
.mb-cancel:hover{background:rgb(248,249,250)}
html.mb-lock,html.mb-lock body{overflow:hidden}
.faq-c{padding:20px}
.faq-list{list-style:none;margin:0;padding:0}
.faq-item{padding:0 0 15px;margin:0 0 15px;border-bottom:1px solid rgb(233,236,239)}
.faq-item:last-child{margin:0;border-bottom:0}
.faq-q{display:flex;padding:12px 0;cursor:pointer;transition:.3s}
.faq-q h6{font-size:16px;font-weight:600;line-height:22.4px;color:rgb(51,51,51)}
.faq-q:hover h6{color:var(--accent)}
.faq-a{display:none;padding:15px 0 0 39px;color:rgb(102,102,102);line-height:25.6px}
.faq-item.active .faq-a{display:block}

/* ---------- fixed contact widget + back to top ---------- */
.fw{position:fixed;right:42px;bottom:30px;z-index:999;list-style:none;margin:0;padding:0;transition:transform .3s cubic-bezier(.65,.05,.36,1)}
.fw.at-top{transform:translateY(86px)}
.fw li{position:relative;width:56px;height:56px;margin:0 0 20px;border-radius:50%;transition:.3s cubic-bezier(.65,.05,.36,1)}
.fw li:last-child{margin-bottom:0}
.fw a,.fw button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:0;padding:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.fw svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fw .fw-c{opacity:0;visibility:hidden;transform:translateY(20px)}
.fw.open .fw-c{opacity:1;visibility:visible;transform:none}
.fw .lbl{position:absolute;top:50%;right:66px;margin-top:-21px;height:42px;padding:0 30px;border-radius:21px;color:#fff;font-size:16px;line-height:42px;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:.3s cubic-bezier(.65,.05,.36,1)}
.fw li:hover .lbl{opacity:1;visibility:visible;right:76px}
@media (hover:none){.fw li:hover .lbl{opacity:0;visibility:hidden}}
.fw .li-in,.fw .li-in .lbl{background:rgb(27,136,188)}
.fw .fb,.fw .fb .lbl{background:rgb(59,89,152)}
.fw .ph,.fw .ph .lbl{background:rgb(32,163,253)}
.fw .em,.fw .em .lbl{background:rgb(30,195,201)}
.fw .sh,.fw .sh .lbl{background:rgb(255,110,47)}
.fw .sh{box-shadow:0 0 10px rgba(0,0,0,.2)}
.fw .bt,.fw .bt .lbl{background:var(--accent)}
.fw .bt button::after{content:"";width:15px;height:15px;margin-top:9px;border-top:1px solid #fff;border-left:1px solid #fff;transform:rotate(45deg)}
@media (max-width:767.98px){
  .fw{right:15px;bottom:20px}
  .fw.at-top{transform:translateY(54px)}
  .fw li{width:40px;height:40px;margin-bottom:14px}
  .fw svg{width:18px;height:18px}
  .fw .bt button::after{width:11px;height:11px;margin-top:6px}
}

/* ---------- footer: dark content strip (content pages) + copyright bar (all pages) ---------- */
.sf-top{background:var(--dark)}
.sf-bot{background:rgb(18,18,18);padding:25px 0;color:rgb(170,170,170);font-size:16px;line-height:28.8px}
.sf-in{width:66.6667%;padding:0}
@media (max-width:767.98px){.sf-in{width:100%}}
.sf .sep{margin:0 5px}
.sf-bot a{color:rgb(170,170,170)}
.sf-bot a:hover{color:#fff}

/* ---------- content helpers ---------- */
main a:hover{color:var(--accent)}
[id]{scroll-margin-top:100px}
@media (max-width:991.98px){[id]{scroll-margin-top:64px}}

/* ---------- search results page ---------- */
.sr{max-width:1200px;margin:0 auto;padding:60px 15px 100px}
.sr form{display:flex;gap:10px;max-width:700px;margin:0 0 40px}
.sr input{flex:1;height:50px;padding:10px 15px;border:1px solid #ccc;font:16px Nunito;color:#333;border-radius:0}
.sr button{height:50px;padding:0 28px;border:0;background:var(--accent);color:#fff;font:600 16px Nunito;cursor:pointer}
.sr-count{color:rgb(51,51,51);font-weight:600;margin:0 0 20px}
.sr-item{padding:20px 0;border-bottom:1px solid rgb(226,226,226)}
.sr-item a{font-size:20px;font-weight:600;line-height:30px}
.sr-item p{margin:6px 0 0}
.sr-item mark{background:rgba(26,188,156,.15);color:inherit}

/* ---------- legal pages (live DNN Privacy/Terms: plain text, no title band) ---------- */
.legal{padding:131px 0 26px;color:rgb(120,120,120)}
@media (max-width:991.98px){.legal{padding:35px 0 22px}}
@media (max-width:767.98px){.legal{padding:12px 0 10px}}
.legal p{margin:0 0 15px}
.legal ul,.legal ol{margin:0 0 15px;padding-left:24px}

/* ---------- side-by-side DNN panes (dng-row / col-sm-6) ---------- */
.prow{display:flex;flex-wrap:wrap;margin:0 -15px}
.pcol{position:relative;width:100%;padding:0 15px}
@media (min-width:576px){.pcol-6{flex:0 0 50%;max-width:50%}.pcol-4{flex:0 0 33.3333%;max-width:33.3333%}.pcol-3{flex:0 0 25%;max-width:25%}.pcol-8{flex:0 0 66.6667%;max-width:66.6667%}}
