/* holiday-lighting-quote.html page styles: the designer (it began as /holiday-lighting-visualizer)
   and the request form's frame. Moved out of an inline <style> block so the
   Content-Security-Policy can refuse inline <style> elements (style-src-elem). */
/* Theme colours. assets/js/site-theme.js may override any of these with the theme
   published in admin; until then they are the year-round palette. A --c-<hex> or
   --rgb-<hex> token's default is the colour in its name. */
:root{
  --c-56627a:#56627a;--c-edf0f3:#edf0f3;--c-f2f5f8:#f2f5f8;--c-f2f8fd:#f2f8fd;
  --c-f3f5f7:#f3f5f7;--rgb-081228:8,18,40;
}
/* The visualizer (assets/js/holiday-visualizer.js). Page-scoped, on the site
   tokens. The preview column is sticky on wide screens; on narrow ones the
   picture alone sticks under the header while the choices scroll past. */
.hv-hero{padding:34px 0 30px}
.hv-hero h1{font-size:clamp(1.8rem,3.6vw,2.6rem)}
.hv-hero .lead{max-width:640px}
.hv-sec{padding:28px 0 56px;background:var(--band)}
.hv{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:28px;align-items:start}
.hv-view{position:sticky;top:calc(var(--hv-top,72px) + 14px);z-index:4}
.hv-stage{position:relative;width:100%;aspect-ratio:1000/620;border-radius:var(--radius);overflow:hidden;background:#0b1733;box-shadow:0 14px 36px rgba(var(--navy-deep-rgb),.28)}
.hv-pic{position:absolute;inset:0}
.hv-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.hv-power{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:99px;border:1.5px solid rgba(255,255,255,.55);background:rgba(var(--rgb-081228),.62);color:#fff;font:700 .8rem var(--font-ui);cursor:pointer}
.hv-power:hover{background:rgba(var(--rgb-081228),.85)}
.hv-power .dot{width:10px;height:10px;border-radius:50%;background:#ffc760;box-shadow:0 0 8px #ffb347}
.hv-power[aria-pressed="false"] .dot{background:var(--c-56627a);box-shadow:none}
.hv-power:focus-visible{outline:3px solid var(--sky);outline-offset:2px}
.hv-cap{font-family:var(--font-ui);font-size:.8rem;color:var(--muted);margin:8px 2px 0}
.hv-quick{display:none}
.hv-est{margin-top:16px}
.hv-est-bottom{display:none}
.hv-range{font-family:var(--font-head);color:var(--navy);font-size:clamp(1.7rem,3vw,2.2rem);line-height:1.1;margin:2px 0 6px}
.hv-range.is-empty{font-size:1.05rem;font-family:var(--font-ui);color:var(--muted)}
.hv-eyebrow{font-family:var(--font-ui);font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-dark);margin:0}
.hv-sum{font-family:var(--font-ui);font-size:.88rem;color:var(--ink);margin:0 0 8px}
.hv-notes{margin:6px 0 12px;padding-left:18px;font-family:var(--font-ui);font-size:.84rem;color:var(--muted)}
.hv-notes li+li{margin-top:3px}
.hv-cta{display:flex;gap:10px;flex-wrap:wrap}
.hv-cta .btn{padding:.75em 1.2em;font-size:.95rem}
.hv-fine{font-family:var(--font-ui);font-size:.78rem;color:var(--muted);margin:10px 0 0}

/* Choices */
.hv-controls{display:grid;gap:16px}
.hv-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 18px 20px;box-shadow:0 3px 14px rgba(var(--navy-rgb),.05);min-width:0}
.hv-card>h2{font-size:1.2rem;margin:0 0 2px}
.hv-card>h2:focus{outline:none}
/* Each group's heading folds it; folded, it shows what is chosen. */
.hv-fold{display:flex;align-items:center;gap:10px;width:100%;padding:2px 0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.hv-fold:focus-visible{outline:3px solid var(--blue-dark);outline-offset:3px;border-radius:6px}
.hv-fold-t{flex:1;min-width:0}
.hv-fold-sum{display:block;font:400 .78rem var(--font-ui);color:var(--muted);margin-top:2px}
.hv-fold[aria-expanded="true"] .hv-fold-sum{display:none}
.hv-fold-i{width:10px;height:10px;border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);transform:rotate(45deg);margin:0 4px 4px 0;transition:transform .2s;flex:none}
.hv-fold[aria-expanded="false"] .hv-fold-i{transform:rotate(-45deg)}
.hv-card-b{padding-top:4px}
.hv-card-b[hidden]{display:none}
.hv-card .n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;font:700 .8rem var(--font-ui);flex:none}
.hv-card>p.hv-sub{font-family:var(--font-ui);font-size:.84rem;color:var(--muted);margin:0 0 12px}
.hv-card fieldset{border:0;padding:0;margin:0 0 14px;min-width:0}
.hv-card fieldset:last-child{margin-bottom:0}
.hv-card legend{font-family:var(--font-ui);font-weight:700;font-size:.86rem;color:var(--navy);margin-bottom:8px;padding:0}
.hv-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hv-opts{display:grid;gap:8px}
.hv-opts.c2{grid-template-columns:1fr 1fr}
.hv-opts.c3{grid-template-columns:1fr 1fr 1fr}
.hv-opt{position:relative;display:flex;align-items:center;gap:10px;padding:9px 11px;border:1.5px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-family:var(--font-ui);font-size:.88rem;color:var(--navy);line-height:1.25;min-width:0}
.hv-opt:hover{border-color:var(--blue)}
.hv-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.hv-opt.is-on{border-color:var(--blue-dark);background:var(--c-f2f8fd);box-shadow:inset 0 0 0 1px var(--blue-dark)}
.hv-opt:focus-within{outline:3px solid var(--blue-dark);outline-offset:2px}
.hv-opt small{display:block;font-size:.75rem;color:var(--muted);font-weight:400;margin-top:1px}
.hv-opt strong{font-weight:700}
.hv-opt img{width:38px;height:38px;border-radius:8px;object-fit:cover;flex:none;background:var(--c-f3f5f7)}
.hv-opt svg{flex:none}
.hv-seg{display:flex;gap:6px;flex-wrap:wrap}
.hv-seg .hv-opt{flex:1 1 0;justify-content:center;text-align:center;padding:8px 8px}
.hv-sw{width:18px;height:18px;border-radius:50%;flex:none;border:1px solid rgba(0,0,0,.18)}
.hv-colors{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
.hv-colors .hv-opt{padding:7px 9px;font-size:.8rem}
/* Areas: a tick plus a length that appears once it is ticked. */
.hv-area{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 0;border-top:1px solid var(--c-edf0f3)}
.hv-area:first-of-type{border-top:0}
.hv-check{display:flex;align-items:center;gap:10px;font-family:var(--font-ui);font-size:.9rem;color:var(--navy);cursor:pointer;min-width:0}
.hv-check input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--blue-dark)}
.hv-check small{display:block;font-size:.74rem;color:var(--muted)}
.hv-len{display:flex;align-items:center;gap:6px;font-family:var(--font-ui);font-size:.82rem;color:var(--muted)}
.hv-len[hidden]{display:none}
.hv-num{display:inline-flex;align-items:stretch;border:1.5px solid #7A8591;border-radius:9px;overflow:hidden;background:#fff}
.hv-num button{width:32px;border:0;background:var(--c-f2f5f8);color:var(--navy);font:700 1rem var(--font-ui);cursor:pointer}
.hv-num button:hover{background:var(--band)}
.hv-num button:focus-visible{outline:3px solid var(--blue-dark);outline-offset:-3px}
.hv-num input{width:58px;border:0;text-align:center;font:600 .92rem var(--font-ui);color:var(--navy);padding:6px 2px;-moz-appearance:textfield;appearance:textfield}
.hv-num input::-webkit-outer-spin-button,.hv-num input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hv-num input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--blue-dark)}
.hv-row{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;font-family:var(--font-ui);font-size:.88rem;color:var(--navy)}
.hv-row label{display:flex;align-items:center;gap:8px}
.hv-row select{padding:7px 8px;border:1.5px solid #7A8591;border-radius:9px;font:600 .88rem var(--font-ui);color:var(--navy);background:#fff}
.hv-hint{font-family:var(--font-ui);font-size:.78rem;color:var(--muted);margin:8px 0 0}
.hv-shrubs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hv-shrubs label{display:grid;gap:4px;font-family:var(--font-ui);font-size:.8rem;color:var(--navy)}
.hv-live{position:absolute;left:-9999px}
.hv-optional{font-weight:400;color:var(--muted)}
.hv-mix{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:7px 0;border-top:1px solid var(--c-edf0f3);font-family:var(--font-ui);font-size:.86rem;color:var(--navy)}
.hv-mix[hidden],.hv-mix [hidden]{display:none}
.hv-mix select{padding:6px 8px;border:1.5px solid #7A8591;border-radius:9px;font:600 .84rem var(--font-ui);color:var(--navy);background:#fff;max-width:170px}
.hv-mix-l{flex:1 1 140px}
.hv-measure{margin-top:12px;padding-top:10px;border-top:1px solid var(--c-edf0f3);font-family:var(--font-ui);color:var(--navy)}
/* Measure from above: a window of its own (a modal dialog), the whole screen on a phone */
html.hv-modal{overflow:hidden}
.hv-m-dlg{margin:auto;width:min(760px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:0;border-radius:16px;background:#fff;color:var(--navy);box-shadow:0 24px 60px rgba(var(--navy-deep-rgb),.45);font-family:var(--font-ui)}
.hv-m-dlg::backdrop{background:rgba(var(--rgb-081228),.6)}
.hv-m-in{display:flex;flex-direction:column;gap:6px;height:100%;padding:12px 16px calc(12px + env(safe-area-inset-bottom));box-sizing:border-box;overflow:hidden}
.hv-m-in>*{flex:none}
.hv-m-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hv-m-t{margin:0;font:700 1.05rem var(--font-ui);color:var(--navy)}
.hv-m-x{width:44px;height:44px;border:0;border-radius:50%;background:var(--band);color:var(--navy);font:400 1.7rem/1 var(--font-ui);cursor:pointer}
.hv-m-x:focus-visible,.hv-m-zoom button:focus-visible{outline:3px solid var(--blue-dark);outline-offset:2px}
.hv-m-find{display:flex;align-items:flex-end;gap:8px}
.hv-m-addr{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;font-size:.8rem;font-weight:600}
.hv-m-addr input{width:100%;box-sizing:border-box;padding:9px 10px;border:1.5px solid #7A8591;border-radius:9px;font:500 1rem var(--font-ui);color:var(--navy)}
.hv-m-find .btn{min-height:42px}
.hv-m-in .hv-hint{margin:0}
.hv-m-msg:empty{display:none}
.hv-m-msg{margin:0;font-size:.88rem;font-weight:600}
.hv-m-choices{display:flex;flex-direction:column;gap:6px}
.hv-m-choices .hv-tool{text-align:left;min-height:44px}
.hv-m-bar select{margin-left:6px;padding:6px 8px;border:1.5px solid #7A8591;border-radius:9px;font:600 .88rem var(--font-ui);color:var(--navy);background:#fff}
.hv-m-bar{font-size:.86rem;font-weight:600}
.hv-m-hint{margin:0;font-size:.8rem;color:var(--muted)}
/* The stage takes only the room left over (basis 0): the photo never pushes the text away or under it. */
.hv-m-in>.hv-m-stage{flex:1 1 0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.hv-m-pic{position:relative;flex:none;width:60px;height:60px}
.hv-m-canvas{display:block;width:100%;height:100%;border-radius:10px;touch-action:none;cursor:crosshair;background:var(--band)}
.hv-m-zoom{position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:6px}
.hv-m-zoom button{width:40px;height:40px;border-radius:10px;border:1.5px solid rgba(255,255,255,.6);background:rgba(var(--rgb-081228),.7);color:#fff;font:700 1.3rem/1 var(--font-ui);cursor:pointer}
.hv-m-where{display:flex;align-items:center;gap:10px;margin:0;font-size:.84rem;font-weight:600;min-width:0}
.hv-m-where span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hv-m-change{min-height:32px;padding:4px 0;flex:none}
.hv-m-use{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hv-m-use .btn{flex:none;min-height:42px}
.hv-m-len{margin:0;font-size:.95rem;min-width:0}
.hv-m-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hv-m-acts .hv-tool{min-height:34px}
.hv-m-credit{margin:0;font-size:.68rem;line-height:1.3}
@media (max-width:640px){
  .hv-m-dlg{width:100vw;height:100dvh;border-radius:0}
  .hv-m-in{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
}
.hv-mix .hv-check{font-size:.84rem}
.hv-mix [hidden]{display:none}
/* One-tap looks */
.hv-looks{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
button.hv-opt{font:inherit;font-family:var(--font-ui);font-size:.88rem;text-align:left;width:100%}
.hv-look .hv-sw{width:26px;height:26px}
.hv-opt:has(input:focus-visible),button.hv-opt:focus-visible{outline:3px solid var(--blue-dark);outline-offset:2px}
/* Wreath and garland rows */
.hv-item{padding:6px 0;border-top:1px solid var(--c-edf0f3)}
.hv-item:first-of-type{border-top:0}
.hv-card fieldset>.hv-link{display:inline-block;margin-top:4px}
/* Undo, start over, share, and the phone's bigger-picture switch */
.hv-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.hv-tool{padding:6px 12px;min-height:36px;border:1.5px solid var(--line);border-radius:99px;background:#fff;color:var(--navy);font:600 .8rem var(--font-ui);cursor:pointer}
.hv-tool:hover:not(:disabled){border-color:var(--blue)}
.hv-tool:disabled{opacity:.5;cursor:default}
.hv-tool:focus-visible{outline:3px solid var(--blue-dark);outline-offset:2px}
.hv-zoom{display:none}
.hv-sw-self{background:#fff;border:1.5px dashed var(--muted)}
/* "More" holds Start over, Share and My house photo on a phone; inline elsewhere */
.hv-more-b{display:none}
.hv-more-m{display:contents}
.hv-tool-st{font-family:var(--font-ui);font-size:.8rem;color:var(--navy);margin:6px 2px 0;min-height:1em}
.hv-tool-st label{display:grid;gap:4px}
.hv-share-url{width:100%;padding:6px 8px;border:1.5px solid #7A8591;border-radius:8px;font:.8rem var(--font-ui);color:var(--navy)}
.hv-shared{font-family:var(--font-ui);font-size:.85rem;font-weight:600;color:var(--navy);background:var(--c-f2f8fd);border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:0 0 10px}
/* The estimate: what changed, and what the price includes */
.hv-delta{font-family:var(--font-ui);font-size:.82rem;font-weight:700;color:var(--blue-dark);margin:-2px 0 6px}
.hv-inc{font-family:var(--font-ui);font-size:.82rem;color:var(--ink);margin:0 0 4px}
.hv-inc strong{color:var(--navy)}
.hv-range.is-flash,#hv-quick-r.is-flash{animation:hv-flash 1.2s ease-out}
@keyframes hv-flash{0%{background:rgba(var(--blue-rgb),.28)}100%{background:rgba(var(--blue-rgb),0)}}
@media (prefers-reduced-motion:reduce){.hv-range.is-flash,#hv-quick-r.is-flash{animation:none}.hv-fold-i{transition:none}}
.hv select:focus-visible,.hv .btn:focus-visible,.hv input[type="checkbox"]:focus-visible{outline:3px solid var(--blue-dark);outline-offset:2px}
/* The picture's own controls: time of evening, before & after, and the tip
   that names the edge under the pointer. The canvas takes taps and sideways
   drags; a vertical swipe still scrolls the page. */
.hv-stage canvas{touch-action:pan-y}
.hv-tip{position:absolute;margin:0;padding:5px 9px;border-radius:8px;background:rgba(var(--rgb-081228),.86);color:#fff;font:600 .76rem var(--font-ui);pointer-events:none;white-space:nowrap;z-index:2}
.hv-tip[hidden]{display:none}
.hv-scene{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin-top:8px}
.hv-time,.hv-split{display:flex;align-items:center;gap:8px;flex:1 1 220px;font:600 .78rem var(--font-ui);color:var(--muted)}
.hv-time input,.hv-split input{flex:1;min-width:0;accent-color:var(--blue-dark)}
.hv-split{margin-top:6px}
.hv-split[hidden]{display:none}
.hv-tool[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
/* Your house photo: the tracing panel under the picture */
.hv-trace{margin-top:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.hv-trace[hidden]{display:none}
.hv-trace-h{margin:0 0 6px;font:700 .86rem var(--font-ui);color:var(--navy)}
.hv-trace-areas{display:flex;flex-wrap:wrap;gap:5px}
.hv-trace .hv-hint{margin:6px 0}
.hv-trace-btns{justify-content:flex-start;margin-top:4px}
.hv-noscript{padding:18px;background:#fff;border-radius:var(--radius);border:1px solid var(--line)}
/* The page shows the designer, then the request form (holiday-quote.js sets data-phase). */
.hq-flow[data-phase="request"] #hv-app,.hq-flow[data-phase="design"] #tsobx-holiday-quote{display:none}
#hv-app{scroll-margin-top:calc(var(--hv-top,72px) + 14px)}
#tsobx-holiday-quote{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px;scroll-margin-top:90px}
.hv-go:disabled{opacity:.55;cursor:not-allowed}
.hv-link{background:none;border:0;padding:6px 0;min-height:44px;color:var(--blue-dark);text-decoration:underline;font:inherit;font-weight:600;cursor:pointer;text-align:left}
.hv-link:focus-visible{outline:3px solid var(--blue-dark);outline-offset:2px}

@media (max-width:980px){
  .hv{display:block}
  .hv-view{top:var(--hv-top,64px);margin:0 -20px 16px;padding:10px 20px 8px;background:var(--band);box-shadow:0 8px 14px -12px rgba(var(--navy-deep-rgb),.5)}
  .hv-stage{border-radius:10px;margin:0 auto}
  .hv-view.is-compact .hv-stage{width:min(100%,calc(24vh * 1000 / 620))}
  .hv-zoom{display:block;position:absolute;right:8px;bottom:8px;z-index:2;padding:4px 10px;border-radius:99px;border:1.5px solid rgba(255,255,255,.55);background:rgba(var(--rgb-081228),.62);color:#fff;font:700 .72rem var(--font-ui);cursor:pointer}
  .hv-zoom:focus-visible{outline:3px solid var(--sky);outline-offset:2px}
  .hv-power{top:8px;right:8px;padding:4px 10px;font-size:.72rem}
  .hv-scene{flex-wrap:nowrap;gap:10px;margin-top:6px}
  .hv-time,.hv-split{flex:1 1 auto;min-width:0;margin:0;font-size:.72rem}
  .hv-view.is-compare .hv-time{display:none}
  .hv-scene .hv-tool{flex:none}
  .hv-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
  .hv-bar .hv-tools{flex:none;flex-wrap:nowrap;gap:5px;margin:0;position:relative}
  .hv-more-b{display:inline-block}
  .hv-more-m{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:6;flex-direction:column;gap:4px;min-width:180px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 28px rgba(var(--navy-deep-rgb),.25)}
  .hv-more-m.is-open{display:flex}
  .hv-more-m .hv-tool{width:100%;text-align:left;min-height:40px}
  .hv-tools{justify-content:center;gap:5px;margin-top:6px}
  .hv-tool{padding:3px 10px;min-height:32px;font-size:.74rem}
  .hv-tool-st{margin-top:4px;text-align:center}
  .hv-tool-st:empty{display:none}
  .hv-cap{display:none}
  .hv-est-side{display:none}
  .hv-est-bottom{display:block;margin-top:16px}
  .hv-quick{display:flex;align-items:baseline;gap:8px;margin:0;min-width:0;font-family:var(--font-ui);font-size:.72rem;color:var(--muted)}
  .hv-quick strong{font-family:var(--font-head);font-weight:400;font-size:1.15rem;color:var(--navy)}
}
@media (max-width:980px) and (max-height:560px){.hv-view{position:static}}
@media (max-width:520px){
  .hv-opts.c3{grid-template-columns:1fr 1fr}
  .hv-mix-l{flex-basis:100%}
  .hv-card{padding:16px 14px 18px}
  #tsobx-holiday-quote{padding:18px 14px;margin:0 -6px}
}
