/* D-GATE inquiry wizard on /medziagos/vartai (vartai-form.js) */
html.dg-lock{overflow:hidden}
.dg{border:0;padding:0;margin:auto;width:min(860px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 40px 80px -30px rgba(12,33,54,.6);overflow:hidden}
.dg[open]{display:flex;animation:dgIn .35s cubic-bezier(.2,.8,.2,1)}
.dg::backdrop{background:rgba(12,33,54,.6);backdrop-filter:blur(3px)}
@keyframes dgIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
.dg [hidden]{display:none!important}
.dg-in{display:flex;flex-direction:column;width:100%;max-height:calc(100dvh - 32px);min-height:0}
.dg-hd{position:relative;padding:20px 24px 0;border-bottom:1px solid var(--line);background:var(--paper)}
.dg-hd small{color:var(--ink-3);font-weight:700;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase}
.dg-hd h2{font-size:clamp(26px,3.4vw,36px);margin:2px 0 14px}
.dg-hd .x{position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:50%;border:0;background:var(--ground);font-size:24px;line-height:1}
.dg-hd .x:hover{background:var(--line)}
.dg-prog{list-style:none;display:flex;gap:4px;margin:0;padding:0 0 12px;counter-reset:s}
.dg-prog li{flex:1;display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--ink-3);font-weight:600}
.dg-prog li span{height:5px;border-radius:3px;background:var(--line);font-size:0;transition:background .3s}
.dg-prog li.dg-past span{background:var(--ink)}
.dg-prog li.dg-cur span{background:var(--orange)}
.dg-prog li.dg-cur{color:var(--ink)}
.dg-prog em{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-body{flex:1;overflow-y:auto;padding:20px 24px 24px;overscroll-behavior:contain}
.dg-body h3{font-variation-settings:"wdth" 80;font-weight:850;font-size:22px;margin:0 0 6px;outline:none}
.dg-body .lead{margin:0 0 16px;color:var(--ink-2)}
.dg fieldset{border:0;padding:0;margin:0 0 20px;min-width:0}
.dg legend{font-weight:800;font-size:15px;margin:0 0 8px;padding:0}
.dg .fine{font-size:13px;color:var(--ink-3);margin:6px 0 0}
.dg-dims{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:start;margin-bottom:18px}
.dg-garage{width:100%;height:auto;background:#F7F8F6;border-radius:12px;border:1px solid var(--line);position:sticky;top:0;color:var(--ink)}
.dg-garage .k line{stroke:var(--ink);stroke-width:2;transition:stroke .2s,stroke-width .2s}
.dg-garage .k text{font:800 15px Archivo,system-ui,sans-serif;fill:var(--ink);paint-order:stroke;stroke:#fff;stroke-width:4px}
.dg-garage .k.on line{stroke:var(--orange-d);stroke-width:3.5}
.dg-garage .k.on text{fill:#B07400}
.dg-dims .grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dg-f{display:flex;flex-direction:column;gap:4px;font-size:14px;min-width:0}
.dg-f>span:first-child{font-weight:700}
.dg-f>span b{display:inline-grid;place-items:center;min-width:26px;height:22px;padding:0 5px;border-radius:5px;background:var(--ink);color:#fff;font-size:12.5px;margin-right:4px}
.dg-f small{color:var(--ink-3);font-size:12.5px;line-height:1.3}
.dg-f .in{position:relative}
.dg-f .in i{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--ink-3);font-size:13px;pointer-events:none}
.dg input:not([type=checkbox]):not([type=radio]),.dg select,.dg textarea{width:100%;height:46px;border:1.5px solid var(--line);border-radius:8px;padding:0 12px;background:#fff;font-size:16px}
.dg textarea{height:auto;padding:10px 12px;resize:vertical}
.dg .dim input{font-weight:800;padding-right:40px}
.dg input:focus,.dg select:focus,.dg textarea:focus{border-color:var(--ink);outline:none;box-shadow:0 0 0 3px var(--orange-t)}
.dg [aria-invalid=true]{border-color:#C8102E!important}
.dg-f.inl{max-width:260px;margin-top:10px}
.dg .opts{display:grid;gap:8px}
.dg .opts.two{grid-template-columns:repeat(2,1fr)}
.dg .opts.three{grid-template-columns:repeat(3,1fr)}
.dg .opts.four{grid-template-columns:repeat(4,1fr)}
.dg .opts.sp{grid-template-columns:repeat(4,1fr)}
.dg .opts.cols{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.dg .opts.glz{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}
.dg-opt{position:relative;cursor:pointer}
.dg-opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.dg-opt>span{display:flex;flex-direction:column;gap:3px;height:100%;border:1.5px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;transition:border-color .15s,box-shadow .15s,background .15s}
.dg-opt b{font-size:15px;line-height:1.2}
.dg-opt small{color:var(--ink-2);font-size:12.5px;line-height:1.3}
.dg-opt em{font-style:normal;color:var(--ink-3);font-size:12px;line-height:1.3;margin-top:2px}
.dg-opt:hover>span{border-color:#B9C2C9}
.dg-opt input:checked+span{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);background:var(--orange-t)}
.dg-opt input:focus-visible+span{outline:3px solid var(--orange);outline-offset:2px}
.dg-opt.off{cursor:not-allowed}
.dg-opt.off>span{opacity:.42;background:var(--ground)}
.dg-opt.pic>span{align-items:center;text-align:center}
.dg-opt.pic svg{width:72px;height:54px;color:var(--ink-2);margin-bottom:4px}
.dg-opt.col>span{flex-direction:row;align-items:center;gap:10px}
.dg-opt .sw{flex:none;width:34px;height:34px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.dg-opt .sw:not(.mat){background-image:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,0) 55%)!important}
.dg-opt .sw.other{background:conic-gradient(#C8102E,#FEB401,#15803D,#1E4163,#7A3E9D,#C8102E)}
.dg-opt.col b{font-size:13.5px}
.dg-opt .tex{width:72px;height:46px;border-radius:6px;margin-bottom:4px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}
.dg-opt .tex.wood{background:repeating-linear-gradient(0deg,#E8EAEC 0 3px,#DADDDF 3px 4px,#ECEEEF 4px 7px,#D5D8DB 7px 8px)}
.dg-opt .tex.smooth{background:linear-gradient(180deg,#F2F3F4,#E3E6E8)}
.dg-opt.g>span{align-items:flex-start}
.dg-opt.g svg{width:40px;height:24px;fill:#DCE8EF;stroke:var(--ink-2);stroke-width:1.5}
.dg-chk{display:flex;gap:10px;align-items:flex-start;cursor:pointer;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff}
.dg-chk input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--ink)}
.dg-chk span{display:flex;flex-direction:column;gap:2px;font-size:14px}
.dg-chk small{color:var(--ink-3);font-size:12.5px}
.dg-chk:has(input:checked){border-color:var(--ink);background:var(--orange-t)}
.dg-chk.hl{margin-top:8px;max-width:420px}
.dg-chk.consent{border:0;padding:6px 0;background:none!important}
.dg-chk.consent span{display:block}
.dg-chk.consent a{text-decoration:underline}
.dg-glz{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.dg-glz.c2{grid-template-columns:1fr 1fr;margin:0 0 12px}
.dg details.more{margin:12px 0 0}
.dg details.more summary{cursor:pointer;font-weight:700;color:var(--ink-2);font-size:14px}
.dg-accg{margin-bottom:14px}
.dg-accg h4{margin:0 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.dg .accs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.dg-acc{display:flex;flex-direction:column}
.dg-acc .dg-chk{height:100%}
.dg-acc.off .dg-chk{opacity:.55}
.dg-acc .sub{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 0 2px}
.dg-acc .sub select{height:40px;font-size:14px}
.dg-acc .sub .qty{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:700}
.dg-acc .sub .qty input{width:80px;height:40px}
.dg-acc .sub .lbl{font-size:13px;color:var(--ink-2);width:100%}
.dg .seg{position:relative}
.dg .seg input{position:absolute;opacity:0}
.dg .seg span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1.5px solid var(--line);font-weight:800;cursor:pointer}
.dg .seg input:checked+span{background:var(--ink);color:#fff;border-color:var(--ink)}
.dg .seg input:focus-visible+span{outline:3px solid var(--orange)}
.dg-warn p{margin:8px 0 0;padding:10px 12px 10px 38px;border-radius:10px;background:#FFF1E6;color:#7A3300;font-size:14px;position:relative}
.dg-warn p::before{content:"!";position:absolute;left:12px;top:10px;width:18px;height:18px;border-radius:50%;background:#E8590C;color:#fff;font-weight:900;font-size:12px;display:grid;place-items:center}
.dg-warn p.ok{background:#EAF4EC;color:#14532D}
.dg-warn p.ok::before{content:"✓";background:var(--ok)}
.dg-sum{background:var(--ground);border-radius:12px;padding:14px 16px;margin:0 0 16px;display:flex;flex-direction:column;gap:3px;font-size:14px;position:relative}
.dg-sum b{font-size:16px;padding-right:60px}
.dg-sum span{color:var(--ink-2)}
.dg-sum .lnk{position:absolute;right:12px;top:12px;border:0;background:none;text-decoration:underline;color:var(--ink-2);font-size:13.5px}
.dg .hp{position:absolute!important;left:-9999px;width:1px;height:1px}
.dg-ft{display:flex;align-items:center;gap:12px;padding:14px 24px;border-top:1px solid var(--line);background:#fff}
.dg-ft .btn{height:50px;padding:0 24px;font-size:16px}
.dg-ft .btn.ghost{box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink)}
.dg-ft .btn.ghost:hover{background:var(--ground)}
.dg-ft #dgNext{margin-left:auto}
.dg-ft .err{margin:0;color:#B00020;font-size:14px;font-weight:600;flex:1;min-width:0}
.dg-ft .btn[hidden]{display:none}
.dg-done{text-align:center;padding:30px 0}
.dg-done svg{margin:0 auto 10px}
.dg-done h3{font-size:32px}
.dg-done p{color:var(--ink-2)}
.dg-cta{margin-top:12px}
.btn.dg-hot{background:var(--orange);color:var(--ink);box-shadow:0 10px 30px -12px rgba(254,180,1,.8)}
.vgate{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;background:var(--steel);color:#E8EEF1;border-radius:14px;padding:20px 24px;margin-top:20px}
.vgate b{display:block;font-size:19px;color:#fff}
.vgate p{margin:2px 0 0;color:#B9C8D0;font-size:14.5px}
.vgate .btn{height:50px;padding:0 22px}
@media (max-width:760px){
  .dg{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}
  .dg-in{max-height:100dvh;height:100%}
  .dg-hd{padding:14px 16px 0}
  .dg-hd h2{font-size:24px;margin-bottom:10px;padding-right:40px}
  .dg-prog em{display:none}
  .dg-body{padding:16px}
  .dg-dims{grid-template-columns:1fr}
  .dg-garage{position:static;max-height:210px}
  .dg-dims .grid{grid-template-columns:1fr 1fr}
  .dg .opts.sp,.dg .opts.four{grid-template-columns:1fr 1fr}
  .dg .opts.three{grid-template-columns:1fr}
  .dg .opts.three.pic,.dg fieldset .opts.three:has(.pic){grid-template-columns:repeat(3,1fr)}
  .dg-opt.pic svg{width:56px;height:42px}
  .dg-glz,.dg-glz.c2{grid-template-columns:1fr}
  .dg-ft{padding:10px 16px calc(10px + env(safe-area-inset-bottom));flex-wrap:wrap}
  .dg-ft .err{order:-1;flex-basis:100%}
  .dg-ft .btn{flex:1}
}
@media (prefers-reduced-motion:reduce){.dg[open]{animation:none}}
