/* TSP | Power Factor Correction Engineering Calculator */
.tsp-pfc-tool{margin:32px 0 38px;overflow:hidden;border:1px solid #dce4e8;border-radius:23px;box-shadow:0 14px 40px rgba(13,31,43,.09);background:#fff;direction:rtl}
.tsp-pfc-tool *{box-sizing:border-box}
.tsp-pfc-tool__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:30px 30px 27px;background:linear-gradient(113deg,#14242f,#273d4a);color:#fff}
.tsp-pfc-tool__eyebrow{display:block;font-size:.73rem;color:#f2a6ac;letter-spacing:.045em;font-weight:800;margin-bottom:10px}
.tsp-pfc-tool__head h2{font-size:clamp(1.35rem,2.8vw,1.95rem)!important;line-height:1.65!important;color:#fff!important;margin:0 0 8px!important}
.tsp-pfc-tool__head p{margin:0!important;color:#d6e2e7!important;font-size:.9rem;line-height:1.9;max-width:680px}
.tsp-pfc-tool__symbol{font-size:1.18rem;font-weight:850;white-space:nowrap;color:#f2b3b9;background:rgba(255,255,255,.08);padding:13px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.15)}
.tsp-pfc-tool__form{padding:25px 27px 20px}
.tsp-pfc-tool__inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.tsp-pfc-tool__inputs label{font-size:.91rem;color:#253441;font-weight:800;line-height:1.75;display:block}
.tsp-pfc-tool__inputs small{font-size:.75rem;display:inline-block;font-weight:600;color:#667884;direction:ltr}
.tsp-pfc-tool__inputs input{width:100%;display:block;margin-top:8px;min-height:48px;border:1px solid #cdd9e0;background:#f8fafb;border-radius:10px;color:#15242c;font:inherit;font-size:1.03rem;padding:10px 14px;text-align:center;direction:ltr;font-variant-numeric:tabular-nums;box-shadow:none;outline:none;transition:border-color .15s,box-shadow .15s}
.tsp-pfc-tool__inputs input:focus-visible{background:#fff;border-color:#bb2532;box-shadow:0 0 0 3px rgba(187,37,50,.12)}
.tsp-pfc-tool__form-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:22px}
.tsp-pfc-tool__form-actions button{border-radius:10px;border:1px solid transparent;font:inherit;font-size:.87rem;font-weight:850;line-height:1.65;padding:12px 20px;cursor:pointer}
.tsp-pfc-tool__calculate{background:#bb2432;color:#fff;min-width:190px}
.tsp-pfc-tool__calculate:hover{background:#9f1724}
.tsp-pfc-tool__reset{background:#fff;color:#354957;border-color:#ced9df!important}
.tsp-pfc-tool__reset:hover{background:#f3f6f7}
.tsp-pfc-tool__error{color:#ae1e2d;font-weight:750;background:#fff2f2;border:1px solid #ecc5c7;border-radius:9px;margin:16px 0 0;padding:10px 13px;font-size:.86rem}
.tsp-pfc-tool__error[hidden]{display:none!important}
.tsp-pfc-tool__output{padding:0 27px 27px;display:grid;grid-template-columns:minmax(210px,.87fr) minmax(0,1.13fr);gap:13px}
.tsp-pfc-tool__main-result{padding:20px 18px;border-radius:14px;background:linear-gradient(142deg,#152730,#1d3842);color:#fff}
.tsp-pfc-tool__main-result>small{display:block;color:#b7d7dc;font-size:.83rem;font-weight:700}
.tsp-pfc-tool__main-result strong{display:flex;align-items:baseline;gap:10px;font-size:clamp(1.8rem,4.5vw,2.6rem);font-weight:900;direction:rtl;margin:14px 0 10px;font-variant-numeric:tabular-nums}
.tsp-pfc-tool__main-result strong span{font-size:.85rem;color:#c9e0e3}
.tsp-pfc-tool__main-result p{margin:0!important;line-height:1.75;color:#d0e0e2;font-size:.75rem}
.tsp-pfc-tool__metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tsp-pfc-tool__metrics>div{border-radius:13px;background:#f1f5f6;border:1px solid #e1e9ec;padding:14px 15px}
.tsp-pfc-tool__metrics small{display:block;font-size:.77rem;color:#5d727e;line-height:1.7}
.tsp-pfc-tool__metrics strong{display:block;font-size:1.24rem;line-height:1.8;color:#1b2f39;font-variant-numeric:tabular-nums}
.tsp-pfc-tool__metrics span{color:#71858f;font-size:.7rem;font-weight:700}
.tsp-pfc-tool__footnote{margin:0 27px 25px!important;padding:15px 18px;border-inline-start:3px solid #b82c38;background:#fff8f8;color:#566771!important;border-radius:8px;line-height:1.9;font-size:.78rem!important}
.tsp-pfc-tool__cta{display:flex;flex-direction:column;gap:14px;background:#eff2f3;padding:20px 27px 25px;border-top:1px solid #dde3e6}
.tsp-pfc-tool__cta>span{font-size:.95rem;font-weight:800;color:#21343f;line-height:1.8}
.tsp-pfc-tool__cta>div{display:flex;gap:12px;flex-wrap:wrap}
.tsp-pfc-tool__cta a{padding:11px 17px;display:inline-block;border-radius:10px;background:#af1e2e;color:#fff!important;font-size:.87rem;font-weight:750;text-decoration:none!important;line-height:1.8;text-align:center}
.tsp-pfc-tool__cta a+ a{background:#fff;color:#243a47!important;border:1px solid #cbd8df}
.tsp-pfc-tool__cta a:hover{filter:brightness(.92)}
.tsp-pfc-tool--invalid .tsp-pfc-tool__output{opacity:.65}
@media(max-width:800px){.tsp-pfc-tool__output{grid-template-columns:1fr}.tsp-pfc-tool__head{padding:25px 22px}.tsp-pfc-tool__form{padding:22px}.tsp-pfc-tool__output{padding:0 22px 22px}.tsp-pfc-tool__footnote{margin:0 22px 22px!important}.tsp-pfc-tool__cta{padding:20px 22px}}
@media(max-width:520px){.tsp-pfc-tool{border-radius:15px}.tsp-pfc-tool__head{padding:23px 18px}.tsp-pfc-tool__symbol{display:none}.tsp-pfc-tool__inputs{grid-template-columns:1fr}.tsp-pfc-tool__form{padding:20px 18px}.tsp-pfc-tool__output{padding:0 18px 20px}.tsp-pfc-tool__metrics{gap:8px}.tsp-pfc-tool__metrics>div{padding:12px 10px}.tsp-pfc-tool__metrics strong{font-size:1.12rem}.tsp-pfc-tool__footnote{margin:0 18px 20px!important;padding:12px}.tsp-pfc-tool__cta{padding:20px 18px}.tsp-pfc-tool__cta a{width:100%}.tsp-pfc-tool__form-actions{flex-direction:column}.tsp-pfc-tool__form-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){.tsp-pfc-tool__inputs input{transition:none}}
