#aci-search-choice{margin:12px auto 20px;width:min(1180px,calc(100% - 40px));text-align:center}
#aci-search-choice .choice-prompt{margin:0 0 12px;text-align:center}
#aci-search-choice .choice-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center}
#aci-search-choice button{width:100%;height:100%;min-height:56px;margin:0;white-space:normal;font:inherit;font-weight:700}
#aci-search-choice button[aria-pressed=true]{outline:3px solid var(--orange,#f6a43b);outline-offset:2px}
#aci-search-choice .choice-or{font-weight:700}
.aci-search-locked{position:relative!important;overflow:hidden!important;pointer-events:none!important;user-select:none!important}
.aci-search-locked>*{visibility:hidden!important}
.aci-search-locked::after{content:'';position:absolute;inset:0;background:rgba(235,242,247,.9);backdrop-filter:blur(12px);border-radius:inherit;pointer-events:none}
@media(max-width:600px){#aci-search-choice{width:calc(100% - 24px)}#aci-search-choice .choice-row{gap:10px}#aci-search-choice button{font-size:12px;padding:12px 8px}}

#aci-search-choice{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;padding:12px 0 28px;margin-top:0;margin-bottom:0;color:inherit}
#aci-home-fixed-header{border-bottom:0!important;box-shadow:none!important;background:#16293f}
#aci-home-fixed-header .hero-search-heading{border:0!important;box-shadow:none!important}
body:has(#aci-home-fixed-header) #top.search-hero{padding-top:28px!important;border-top:0!important;box-shadow:none!important}
#main{border-top:0!important}

.aci-search-locked{filter:blur(5px);opacity:.65;background:rgba(255,255,255,.12)!important;box-shadow:none!important;border-color:rgba(255,255,255,.12)!important}
.aci-search-locked::after{display:none!important}
.aci-search-locked::before{content:'';display:block;position:absolute;left:3%;right:3%;top:35%;height:40px;background:linear-gradient(90deg,rgba(135,163,183,.22) 0 17%,transparent 17% 20%,rgba(135,163,183,.22) 20% 72%,transparent 72% 76%,rgba(135,163,183,.3) 76%);border-radius:8px;filter:blur(3px)}

/* Keep the initial preview soft; show only the chosen search after selection. */
.aci-search-locked{filter:blur(2px)!important}
.aci-search-locked::before{filter:blur(1px)!important}
.aci-search-unselected{display:none!important}

#finder button[type=submit],#finder .btn{background:#2f7d4a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:8px!important;font-weight:800!important}#finder button[type=submit]:hover,#finder .btn:hover{background:#25663c!important}

#aci-search-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}#aci-search-panels>#finder{grid-column:1;margin:0!important;width:100%!important;min-width:0}#aci-search-panels>#aci-best-contractor{grid-column:2;grid-row:1;margin:0!important;width:100%!important;min-width:0}#aci-search-panels .finder-grid{grid-template-columns:1fr!important}@media(max-width:760px){#aci-search-panels{grid-template-columns:1fr}#aci-search-panels>#aci-best-contractor{grid-column:1;grid-row:auto}}

/* Compact, aligned search panels without clipping field guidance. */
#aci-search-panels>#finder,#aci-search-panels>#aci-best-contractor{box-sizing:border-box!important;padding:24px!important;min-height:340px!important;height:auto!important;align-self:start!important}
#aci-search-panels .finder-heading,#aci-search-panels .finder-heading>div{margin:0!important;min-height:0!important}
#aci-search-panels .eyebrow{margin:0 0 16px!important;transform:none!important;line-height:1.4!important}
#finder .search-input-wrap{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;gap:8px!important;background:transparent!important;border:0!important;padding:0!important}
#finder .search-input-wrap input{width:100%!important;min-width:0!important;font-size:13px!important;padding:12px 8px!important;height:44px!important;box-sizing:border-box!important}
#finder .search-input-wrap>span{align-self:center}
#finder .search-input-wrap>button{grid-column:1/-1;justify-self:start;position:static!important;margin:4px 0 0!important;min-height:44px!important}
#finder .aci-search-guide p,#finder .finder-note{margin:12px 0!important;line-height:1.5!important}
#aci-best-contractor .aci-basic-criteria{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px!important;margin:0!important}
#aci-best-contractor .aci-basic-criteria>div{margin:0!important;padding:0!important;min-width:0!important}
#aci-best-contractor .aci-basic-criteria label{display:block!important;margin:0 0 12px!important;font-size:14px!important;line-height:20px!important}
#aci-best-contractor .aci-basic-criteria select,#aci-best-contractor .aci-basic-criteria input{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;font-size:13px!important;padding:8px!important;margin:0!important}
#aci-best-contractor .best-action-row{margin:16px 0 0!important;padding:0!important}
#aci-best-contractor #aci-best-contractor-start{position:static!important;margin:0!important;min-height:44px!important;font-size:16px!important}
@media(max-width:420px){#aci-best-contractor .aci-basic-criteria{grid-template-columns:1fr!important}#finder .search-input-wrap input{font-size:12px!important}}

#aci-search-panels>#finder,#aci-search-panels>#aci-best-contractor{display:block!important;min-height:340px!important;max-height:none!important}
#finder .search-input-wrap{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;position:relative!important;margin:12px 0!important}
#finder .search-input-wrap input{border:1px solid #aebdc8!important;border-radius:8px!important;background:#fff!important;color:#172c40!important;line-height:20px!important}
#finder .search-input-wrap>button{display:block!important;transform:none!important;inset:auto!important;height:44px!important}
#finder .search-tip:empty,#finder>label:empty{display:none!important}
#aci-best-contractor .aci-basic-criteria>div{align-self:start!important}
#aci-best-contractor .aci-basic-criteria [class*=zip]{width:100%!important;max-width:none!important}

/* Readable soft previews; clicking a preview selects its search mode. */
#aci-search-panels .aci-search-locked{filter:blur(1px)!important;opacity:.8!important;pointer-events:auto!important;cursor:pointer!important;background:#fff!important;border-color:#d8d8d2!important}
#aci-search-panels .aci-search-locked>*{visibility:visible!important;pointer-events:none!important}
#aci-search-panels .aci-search-locked::before,#aci-search-panels .aci-search-locked::after{display:none!important}
#aci-search-panels>#finder,#aci-search-panels>#aci-best-contractor{display:flex!important;flex-direction:column!important}
#aci-search-panels>.aci-search-unselected{display:none!important}
#finder>button[type=submit],#aci-best-contractor .best-action-row{margin-top:auto!important;align-self:flex-start!important}
#finder>button[type=submit]{position:static!important;background:#2f7d4a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:8px!important;min-height:44px!important;padding:12px 18px!important;font-weight:800!important}
#finder .finder-note{margin-bottom:16px!important}

/* Equal compact cards; inactive choice stays as an empty selectable outline. */
#aci-search-panels{align-items:stretch!important}
#aci-search-panels>#finder,#aci-search-panels>#aci-best-contractor{height:auto!important;min-height:350px!important;max-height:none!important;padding:20px!important;align-self:stretch!important;gap:0!important;overflow:visible!important;border-radius:14px!important}
#aci-search-panels .finder-heading{display:block!important;min-height:0!important;margin:0 0 12px!important;padding:0!important}
#aci-search-panels .eyebrow,#aci-search-panels #finder-title{font-size:16px!important;line-height:1.35!important;margin:0 0 12px!important;letter-spacing:.12em!important}
#finder .aci-search-guide p,#finder .finder-note{font-size:12px!important;line-height:1.4!important;margin:8px 0!important}
#finder .search-input-wrap{margin:10px 0!important}
#aci-search-panels>.aci-search-unselected{display:flex!important;visibility:visible!important;background:transparent!important;opacity:1!important;filter:none!important;box-shadow:none!important;border:2px solid #326c87!important;cursor:pointer!important}
#aci-search-panels>.aci-search-unselected>*{visibility:hidden!important;pointer-events:none!important}
#aci-search-panels>.aci-search-unselected::before,#aci-search-panels>.aci-search-unselected::after{display:none!important}
@media(max-width:760px){#aci-search-panels>#finder,#aci-search-panels>#aci-best-contractor{height:auto!important;min-height:350px!important}}

#aci-search-panels .aci-search-state-heading{color:#f6b34f!important;-webkit-text-fill-color:#f6b34f!important;white-space:nowrap}

#aci-search-panels>#finder,#aci-search-panels>#aci-best-contractor{position:relative!important}#aci-search-panels .aci-state-outline{position:absolute!important;right:14px;top:14px;width:40px!important;height:40px!important;min-width:0!important;min-height:0!important;margin:0!important;pointer-events:none!important;overflow:visible;fill:none;stroke:#f6b34f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#aci-search-panels .finder-heading,#aci-search-panels>#aci-best-contractor>.eyebrow{padding-right:48px!important}#aci-search-panels>.aci-search-unselected>.aci-state-outline{visibility:visible!important}

#aci-search-panels .aci-searching-state-line{display:block;margin:6px 0 0 12px;font-size:12px;line-height:1.35;letter-spacing:.12em;color:#326c87;-webkit-text-fill-color:#326c87}#aci-search-panels .aci-searching-state-line .aci-search-state-heading{color:#f6b34f!important;-webkit-text-fill-color:#f6b34f!important}

#aci-search-panels .aci-search-action-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important;flex-wrap:wrap!important;width:100%!important;margin: auto 0 0!important;padding:12px 0 0!important}
#aci-search-panels .aci-search-action-row>.aci-searching-state-line{display:inline-block!important;flex:0 0 auto;margin:0!important;font-size:12px!important;line-height:1.35!important;letter-spacing:.12em!important;color:#326c87!important;-webkit-text-fill-color:#326c87!important}
#aci-search-panels .aci-search-action-row>button{margin:0!important;position:static!important;flex:0 0 auto!important;min-height:44px!important}

#aci-search-choice .choice-prompt{font-size:1.125rem!important;line-height:1.4!important;margin-bottom:20px!important}

.aci-required-search-state{margin:0 auto 24px;max-width:340px}.aci-required-search-state[hidden]{display:none!important}.aci-required-search-state label{display:block;color:#f6b34f;font-weight:800;letter-spacing:.12em;margin-bottom:12px}.aci-required-search-state select{width:100%;min-height:46px;padding:10px 12px;border-radius:8px;background:white;color:#16293f;font:inherit}.aci-awaiting-state [data-search-choice]{opacity:.45;cursor:not-allowed}#aci-search-panels.aci-awaiting-state{opacity:.55}

.aci-required-search-state select{background:#16293f!important;color:#f7b24d!important;-webkit-text-fill-color:#f7b24d!important;border:1px solid #f7b24d!important;border-radius:10px!important;color-scheme:dark;font-family:Arial,Helvetica,sans-serif!important}.aci-required-search-state select option{background:#16293f;color:#f7b24d}.aci-required-search-state select:focus-visible{outline:2px solid #f7b24d;outline-offset:2px}

/* Coverage notices participate in normal flow, without compressing the form. */
#aci-search-panels > #finder > :not(.aci-state-outline),
#aci-search-panels > #aci-best-contractor > :not(.aci-state-outline){flex-shrink:0!important}
#aci-search-panels .aci-state-coverage{
 box-sizing:border-box!important;width:100%!important;max-width:none!important;
 height:auto!important;min-height:0!important;flex:none!important;
 margin:0 0 16px!important;padding:12px 48px 12px 12px!important;
 color:#18232d!important;-webkit-text-fill-color:#18232d!important;
 font-size:14px!important;line-height:1.5!important;letter-spacing:normal!important;
 overflow-wrap:anywhere;
}
#aci-search-panels .aci-state-coverage[hidden]{display:none!important}
#aci-search-panels .finder-heading{height:auto!important;flex:none!important}
#aci-search-panels .aci-search-action-row{margin-top:16px!important}
#aci-search-panels .aci-basic-criteria{flex:none!important}

/* Match search panels to the reordered choice buttons. */
#aci-search-panels>#aci-best-contractor{grid-column:1;grid-row:1}
#aci-search-panels>#finder{grid-column:2;grid-row:1}
@media(max-width:760px){#aci-search-panels>#aci-best-contractor,#aci-search-panels>#finder{grid-column:1;grid-row:auto}}

/* Keep the inactive search visible as a heavily blurred, selectable preview. */
#aci-search-panels>.aci-search-unselected{background:#fff!important;overflow:hidden!important;filter:none!important}
#aci-search-panels>.aci-search-unselected>*{visibility:visible!important;filter:blur(7px)!important;pointer-events:none!important;user-select:none!important}

/* Initial previews match the heavy inactive-panel blur. */
#aci-search-panels>.aci-search-locked{filter:none!important;opacity:1!important;overflow:hidden!important}
#aci-search-panels>.aci-search-locked>*{visibility:visible!important;filter:blur(7px)!important;pointer-events:none!important;user-select:none!important}
#aci-search-panels>.aci-search-locked::before,#aci-search-panels>.aci-search-locked::after{display:none!important}

/* Alternate the invitation to choose; selection immediately stops the cue. */
@keyframes aci-choice-border-pulse{0%,100%{outline-color:rgba(246,179,79,.35);box-shadow:0 0 3px #f6b34f18}50%{outline-color:#f6b34f;box-shadow:0 0 12px #f6b34f66}}
#aci-search-choice.aci-choice-idle [data-search-choice]{outline:3px solid transparent;outline-offset:3px;animation:aci-choice-border-pulse 3.6s ease-in-out infinite}
#aci-search-choice.aci-choice-idle [data-search-choice="specific"]{animation-delay:-1.8s}
@media(prefers-reduced-motion:reduce){#aci-search-choice.aci-choice-idle [data-search-choice]{animation:none;outline-color:#f6b34f}}

/* Orange search-choice prompt. */
#aci-search-choice .choice-prompt{color:#f7b24d!important;-webkit-text-fill-color:#f7b24d!important}

/* On phones, keep both previews stacked and bring the active search first. */
@media(max-width:760px){
 #aci-search-panels{display:flex!important;flex-direction:column!important;gap:24px!important}
 #aci-search-panels>#finder,#aci-search-panels>#aci-best-contractor{width:100%!important;order:0}
 #aci-search-panels[data-active-search="specific"]>#finder,
 #aci-search-panels[data-active-search="best"]>#aci-best-contractor{order:-1}
}
