/* Elektroinstalācijas kalkulators (Elektrocentrs paka 14.10.2026, 13.1) — gatavais dizains no 13.1-kalkulators.html */
/* === KOMPONENTE .ec-calc — e-veikala sadaļa „Elektroinstalācijas kalkulators” ===
   Fonts: vietnes Poppins. Krāsas kā vietnē: #0B1B2B (tumši zils), #13314d, #FFB200 (dzeltens).
   Visi cenu skaitļi — objektā ECCALC_CONFIG (skripta sākumā); Laravel: no admin iestatījumiem (JSON). */
.ec-calc{--ink:#0B1B2B;--ink2:#13314d;--acc:#FFB200;--acc2:#ffc233;--line:#dfe4ea;--muted:#6b7785;--bg:#f4f6f9;--card:#fff;--soft:#fff8e6;
  font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);max-width:1200px;margin:0 auto;box-sizing:border-box}
.ec-calc *,.ec-calc *::before,.ec-calc *::after{box-sizing:inherit}
.ec-calc__head{display:flex;gap:24px;align-items:center;justify-content:space-between;background:linear-gradient(100deg,var(--ink) 0%,var(--ink2) 70%,var(--ink) 100%);color:#fff;border-radius:14px;padding:26px 30px;margin-bottom:20px}
.ec-calc__eyebrow{margin:0 0 6px;font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--acc)}
.ec-calc__h1{margin:0;font-size:30px;line-height:1.15;font-weight:800;text-wrap:balance}
.ec-calc__lead{margin:8px 0 0;font-size:16px;line-height:1.5;color:#d6dde5;max-width:60ch}
.ec-calc__facts{flex:0 0 auto;display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;font-size:14px;color:#d6dde5}
.ec-calc__facts li::before{content:"✓";color:var(--acc);font-weight:800;margin-right:8px}
.ec-calc__grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;grid-template-areas:"a res" "b rec" "c pick";gap:16px 20px;align-items:stretch}
.ec-g-a{grid-area:a;display:flex;flex-direction:column;gap:16px;min-width:0}.ec-g-a>.ec-step:last-child{flex:1}
.ec-g-b{grid-area:b}.ec-g-c{grid-area:c;display:flex;flex-direction:column}.ec-g-res{grid-area:res}.ec-g-rec{grid-area:rec}.ec-g-pick{grid-area:pick}
.ec-g-res{display:flex;flex-direction:column}.ec-g-res .ec-res__note{margin-top:auto;padding-top:12px}
.ec-g-rec,.ec-g-pick{display:flex;flex-direction:column}.ec-g-rec .ec-brands{flex:1;grid-auto-rows:1fr}.ec-g-rec .ec-brand{height:auto;min-height:92px}
.ec-g-pick .ec-picks{flex:1;justify-content:space-between}
.ec-calc__steps{display:flex;flex-direction:column;gap:16px;min-width:0}
.ec-step{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px 22px;margin:0;min-width:0}
.ec-step__t{margin:0 0 4px;font-size:17px;font-weight:700;display:flex;gap:10px;align-items:center}
.ec-step__d{margin:0 0 14px;font-size:13px;color:var(--muted);line-height:1.45}
.ec-step__n{flex:0 0 28px;height:28px;border-radius:8px;background:var(--acc);color:var(--ink);font-size:14px;font-weight:800;display:grid;place-items:center}
.ec-sub{margin:16px 0 8px;font-size:12.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--ink2)}
.ec-sub:first-of-type{margin-top:0}
.ec-choices{display:grid;gap:10px}
.ec-choices--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ec-choices--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ec-choices--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ec-choice{position:relative;display:block;cursor:pointer}
.ec-choice input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.ec-choice span{display:block;height:100%;border:2px solid var(--line);border-radius:10px;padding:12px 14px;transition:border-color .15s,background .15s}
.ec-choice i{display:block;font-style:normal;font-size:20px;font-weight:800;line-height:1.1}
.ec-choice b{display:block;font-size:14.5px}
.ec-choice small{display:block;margin-top:3px;font-size:12.5px;line-height:1.4;color:var(--muted)}
.ec-choice input:checked+span{border-color:var(--acc);background:var(--soft)}
.ec-choice input:focus-visible+span{outline:3px solid var(--ink2);outline-offset:2px}
/* Punktu skaitītāji */
.ec-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ec-counter{border:1px solid var(--line);border-radius:10px;padding:12px 14px}
.ec-counter__l{display:block;font-size:14.5px;font-weight:700}
.ec-counter__h{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.ec-counter__row{display:flex;align-items:center;gap:6px;margin-top:10px}
.ec-counter__row button{flex:0 0 36px;height:36px;border-radius:8px;border:1px solid var(--line);background:var(--bg);font:inherit;font-size:20px;font-weight:700;color:var(--ink);cursor:pointer;line-height:1}
.ec-counter__row button:focus-visible{outline:3px solid var(--ink2);outline-offset:1px}
.ec-counter__row input{flex:1;min-width:0;height:36px;text-align:center;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
.ec-total{margin:12px 0 0;display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:var(--bg);border-radius:10px;font-size:14px}
.ec-total b{font-size:17px;font-variant-numeric:tabular-nums}
/* Papildu darbi pa grupām */
.ec-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ec-opt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer}
.ec-opt input{margin-top:3px;width:18px;height:18px;accent-color:var(--ink);flex:0 0 18px}
.ec-opt__txt{flex:1;min-width:0}
.ec-opt__txt b{display:block;font-size:14px}
.ec-opt__txt small{display:block;font-size:12px;color:var(--muted);line-height:1.4;margin-top:2px}
.ec-opt__p{flex:0 0 auto;font-weight:700;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ec-opt:has(input:checked){border-color:var(--ink);background:#f7f9fb}
.ec-star{margin:auto 0 0;padding-top:14px;font-size:12.5px;color:var(--muted)}
/* Rezultāts */
.ec-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.ec-res{background:var(--ink);color:#fff;border-radius:14px;padding:22px}
.ec-res__l{margin:0;font-size:12.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--acc)}
.ec-res__tbl{width:100%;margin:12px 0 0;border-collapse:collapse;font-size:13.5px;color:#d6dde5}
.ec-res__tbl td{padding:5px 0;border-bottom:1px solid rgba(255,255,255,.1);vertical-align:top}
.ec-res__tbl td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:#fff}
.ec-res__tbl small{display:block;font-size:11.5px;color:#aab6c3}
.ec-res__sum{margin:14px 0 2px;display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.ec-res__sum span{font-size:14px;color:#d6dde5}
.ec-res__sum b{font-size:36px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.ec-res__vat{margin:0;text-align:right;font-size:13.5px;color:#d6dde5;font-variant-numeric:tabular-nums}
.ec-res__note{margin:12px 0 0;font-size:12.5px;line-height:1.45;color:#d6dde5}
.ec-disc{margin:12px 0 0;padding:11px 13px;border-radius:10px;background:rgba(255,178,0,.12);border:1px solid rgba(255,178,0,.45);font-size:13px;line-height:1.45;color:#fff}
.ec-disc b{color:var(--acc)}
.ec-btn{display:block;width:100%;margin-top:14px;border:0;border-radius:10px;padding:14px 18px;background:var(--acc);color:var(--ink);font:inherit;font-size:16px;font-weight:800;letter-spacing:.3px;cursor:pointer;text-align:center;text-decoration:none}
.ec-btn:hover,.ec-btn:focus-visible{background:var(--acc2);outline:none}
.ec-btn--ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35);font-weight:600;font-size:14.5px;margin-top:8px}
.ec-btn--ghost:hover,.ec-btn--ghost:focus-visible{background:rgba(255,255,255,.08)}
/* Pieprasījuma forma */
.ec-form{display:none;margin-top:14px;gap:8px;flex-direction:column}
.ec-form.is-open{display:flex}
.ec-form input,.ec-form textarea{width:100%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.06);color:#fff;border-radius:8px;padding:10px 12px;font:inherit;font-size:14px}
.ec-form input::placeholder,.ec-form textarea::placeholder{color:#aab6c3}
.ec-form label{font-size:12.5px;color:#d6dde5;display:flex;gap:8px;align-items:flex-start;line-height:1.4}
.ec-ok{display:none;margin-top:12px;padding:12px;border-radius:10px;background:#1f6f43;font-size:14px}
.ec-foot{margin:20px 0 0;font-size:12.5px;line-height:1.55;color:var(--muted);max-width:90ch}
/* Telefonā: lipīga summas josla apakšā */
.ec-bar{display:none}
/* iPad */
@media (max-width:1023px){.ec-calc__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"a" "b" "c" "res" "rec" "pick"}.ec-res{position:static}.ec-choices--4{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-calc__facts{display:none}
  .ec-bar{display:flex;position:sticky;bottom:0;z-index:5;margin:16px 0 0;border-radius:12px;padding:12px 16px;background:var(--ink);color:#fff;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 -4px 16px rgba(11,27,43,.25)}
  .ec-bar b{font-size:22px;font-variant-numeric:tabular-nums}.ec-bar small{display:block;font-size:12px;color:#d6dde5}
  .ec-bar a{background:var(--acc);color:var(--ink);font-weight:800;text-decoration:none;border-radius:8px;padding:10px 14px;font-size:14px;white-space:nowrap}}
/* Telefons */
@media (max-width:640px){.ec-calc__head{padding:22px 18px}.ec-calc__h1{font-size:24px}.ec-step{padding:16px}.ec-step__d{margin-left:0}
  .ec-choices--3,.ec-choices--2,.ec-opts,.ec-counters{grid-template-columns:minmax(0,1fr)}.ec-res__sum b{font-size:30px}}
@media (prefers-reduced-motion:reduce){.ec-choice span{transition:none}}
@media print{.ec-btn,.ec-form,.ec-bar,.ec-counter__row button{display:none!important}.ec-res{color:#000;background:#fff;border:1px solid #000}}
/* Iesakām: zīmoli + izvēlētās preces */
.ec-rec{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px}
.ec-rec__h{margin:0;font-size:17px;font-weight:800}
.ec-rec__d{margin:4px 0 12px;font-size:12.5px;color:var(--muted);line-height:1.45}
.ec-brands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ec-brand{display:grid;place-items:center;height:92px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.ec-brand:hover,.ec-brand:focus-visible{border-color:var(--acc);box-shadow:0 4px 14px rgba(11,27,43,.08);outline:none}
.ec-brand img{max-width:100%;max-height:60px;object-fit:contain}
.ec-brand b{font-size:22px;font-weight:800;letter-spacing:.5px;color:var(--ink)}
.ec-picks{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.ec-pick{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:7px 10px 7px 7px;text-decoration:none;color:var(--ink)}
.ec-pick:hover,.ec-pick:focus-visible{border-color:var(--acc);outline:none}
.ec-pick__img{flex:0 0 56px;height:56px;border-radius:8px;background:var(--bg);display:grid;place-items:center;font-size:11px;color:var(--muted);text-align:center;overflow:hidden}
.ec-pick__img img{width:100%;height:100%;object-fit:contain}
.ec-pick__t{flex:1;min-width:0}
.ec-pick__t b{display:block;font-size:13.5px;line-height:1.3}
.ec-pick__t small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.ec-pick__p{flex:0 0 auto;font-weight:800;font-size:14px;font-variant-numeric:tabular-nums}
@media (max-width:1023px){.ec-brands{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:640px){.ec-brands{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* lapā: atstarpes un apakšējā josla telefonā virs navigācijas */
.ec-calc-page{padding:16px 0 0}
@media (max-width:991px){.ec-calc .ec-bar{bottom:66px}}
@media print{header,footer,.ec-bottom-nav,.ec-mobile-search,.ec-mini-bar,.breadcrumb-nav{display:none!important}}
.ec-calc .ec-calc__head .ec-calc__h1{color:#fff!important}
.ec-calc .ec-res,.ec-calc .ec-res b{color:#fff}
.ec-calc .ec-step__t,.ec-calc .ec-rec__h{color:var(--ink)}
