.ebc-calculator{
  --ebc-navy:#0f2747;--ebc-navy-2:#153a5f;--ebc-teal:#0ea5a6;--ebc-teal-dark:#087f80;
  --ebc-green:#16a34a;--ebc-orange:#f59e0b;--ebc-red:#dc2626;--ebc-ink:#172033;
  --ebc-muted:#64748b;--ebc-line:#e2e8f0;--ebc-bg:#f5f7fa;--ebc-card:#fff;
  direction:rtl;color:var(--ebc-ink);max-width:1120px;margin:32px auto;padding:0 2px;
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;font-size:15px;line-height:1.7;
  min-width:0;overflow-x:clip
}
.ebc-calculator *{box-sizing:border-box;font-family:inherit}
.ebc-calculator button,.ebc-calculator input,.ebc-calculator select{font-family:inherit;max-width:100%;min-width:0}
.ebc-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;overflow:hidden;min-height:275px;padding:38px 42px;border-radius:28px;background:linear-gradient(135deg,var(--ebc-navy) 0%,#123e64 55%,#087f80 140%);color:#fff;box-shadow:0 24px 65px rgba(15,39,71,.22)}
.ebc-hero:before{content:"";position:absolute;width:380px;height:380px;border-radius:50%;left:-160px;top:-210px;background:rgba(14,165,166,.26);filter:blur(2px)}
.ebc-hero:after{content:"";position:absolute;inset:auto 0 0;height:4px;background:linear-gradient(90deg,transparent,var(--ebc-teal),transparent)}
.ebc-hero-copy{position:relative;z-index:2;max-width:760px}
.ebc-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);font-size:12px;font-weight:600;color:#eefbfb;backdrop-filter:blur(7px)}
.ebc-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:#5eead4;box-shadow:0 0 0 5px rgba(94,234,212,.14)}
.ebc-hero h2{margin:16px 0 8px!important;color:#fff!important;font-size:clamp(26px,4vw,43px)!important;line-height:1.35!important;font-weight:800!important;letter-spacing:-.5px}
.ebc-hero p{max-width:770px;margin:0!important;color:#dbeafe!important;font-size:15px;line-height:2}
.ebc-hero-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.ebc-hero-meta span{position:relative;padding:6px 22px 6px 10px;border-radius:9px;background:rgba(255,255,255,.08);font-size:11px;color:#e2f7f7}
.ebc-hero-meta span:before{content:"✓";position:absolute;right:8px;color:#5eead4;font-weight:800}
.ebc-hero-visual{position:relative;flex:0 0 190px;width:190px;height:190px;display:grid;place-items:center}
.ebc-bolt{position:relative;z-index:2;width:92px;height:92px;display:grid;place-items:center;border-radius:29px;background:linear-gradient(145deg,#2dd4bf,#0ea5a6);font-family:"Vazirmatn",Tahoma,sans-serif;font-size:64px;font-weight:800;color:#fff;transform:rotate(7deg);box-shadow:0 18px 35px rgba(14,165,166,.34),inset 0 1px 0 rgba(255,255,255,.45)}
.ebc-orbit{position:absolute;border:1px solid rgba(255,255,255,.22);border-radius:50%}
.ebc-orbit-one{width:154px;height:154px;animation:ebcOrbit 10s linear infinite}.ebc-orbit-two{width:188px;height:188px;border-style:dashed;animation:ebcOrbit 16s linear infinite reverse}
.ebc-orbit-one:before,.ebc-orbit-two:before{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:#5eead4;top:10px;left:34px;box-shadow:0 0 18px #5eead4}
@keyframes ebcOrbit{to{transform:rotate(360deg)}}
.ebc-stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:22px 12px 4px;border:1px solid var(--ebc-line);border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(15,39,71,.05);overflow:hidden}
.ebc-step{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:66px;padding:12px;color:#94a3b8;border-left:1px solid var(--ebc-line);transition:.25s ease}
.ebc-step:last-child{border-left:0}.ebc-step span{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#f1f5f9;font-weight:800;font-size:12px}.ebc-step b{font-size:12px;font-weight:600}.ebc-step.is-active{color:var(--ebc-navy);background:linear-gradient(180deg,#f0fdfa,#fff)}.ebc-step.is-active span{background:var(--ebc-teal);color:#fff;box-shadow:0 6px 16px rgba(14,165,166,.22)}.ebc-step.is-done span{background:#dcfce7;color:var(--ebc-green)}
.ebc-form{margin-top:16px}
.ebc-section{position:relative;margin:15px 0;padding:25px;border:1px solid var(--ebc-line);border-radius:22px;background:var(--ebc-card);box-shadow:0 12px 35px rgba(15,39,71,.055);transition:border-color .2s,box-shadow .2s,transform .2s}
.ebc-section:focus-within{border-color:rgba(14,165,166,.48);box-shadow:0 15px 40px rgba(15,39,71,.08),0 0 0 4px rgba(14,165,166,.055)}
.ebc-section-head{display:flex;align-items:center;gap:13px;margin-bottom:20px;padding-bottom:17px;border-bottom:1px solid #eef2f7}
.ebc-section-number{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#e6fffb,#dff8f5);color:var(--ebc-teal-dark);font-weight:800;box-shadow:inset 0 0 0 1px rgba(14,165,166,.12)}
.ebc-section-head>div{flex:1}.ebc-section-head h3{margin:0!important;color:var(--ebc-ink)!important;font-size:19px!important;font-weight:750!important}.ebc-section-head p{margin:3px 0 0!important;color:var(--ebc-muted)!important;font-size:12px}
.ebc-section-badge{padding:5px 10px;border-radius:8px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:600;white-space:nowrap}
.ebc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}.ebc-grid.ebc-three{grid-template-columns:repeat(3,minmax(0,1fr))}.ebc-span-2{grid-column:span 2;min-width:0;max-width:100%}
.ebc-field-card{display:flex;flex-direction:column;gap:7px;min-width:0;max-width:100%;padding:14px;border:1px solid #e9eef4;border-radius:14px;background:#fbfdff;transition:.2s ease}
.ebc-field-card:focus-within{background:#fff;border-color:rgba(14,165,166,.5);box-shadow:0 0 0 3px rgba(14,165,166,.07)}
.ebc-label{font-size:12px;font-weight:700;color:#334155}
.ebc-field-card input,.ebc-field-card select{width:100%;height:47px;min-width:0;margin:0!important;padding:9px 12px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:var(--ebc-ink)!important;font-size:14px!important;line-height:1.4!important;outline:0!important;box-shadow:none!important}
.ebc-field-card input:focus,.ebc-field-card select:focus{border-color:var(--ebc-teal)!important;box-shadow:0 0 0 3px rgba(14,165,166,.09)!important}
.ebc-field-card small{color:#7c8b9e;font-size:10.5px;font-weight:400}
.ebc-input-unit{position:relative}.ebc-input-unit input{padding-left:68px!important}.ebc-input-unit>span{position:absolute;left:9px;top:50%;transform:translateY(-50%);min-width:48px;padding:4px 6px;border-radius:7px;background:#eef6f7;color:#357276;text-align:center;font-family:inherit;font-size:10px;font-weight:700;pointer-events:none}
.ebc-actions-inline{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 16px}.ebc-link-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 12px;border:1px solid #dbe3ec;border-radius:10px;background:#fff;color:#475569;font-size:11px;font-weight:600;cursor:pointer;transition:.2s}.ebc-link-button:hover{border-color:#94a3b8;background:#f8fafc;transform:translateY(-1px)}.ebc-link-button span{font-size:15px}.ebc-link-primary{border-color:#bceceb;background:#f0fdfa;color:#087f80}
.ebc-live-summary,.ebc-purchase-summary{display:grid;gap:10px;margin-top:16px}.ebc-live-summary{grid-template-columns:1.1fr 1fr}.ebc-purchase-summary{grid-template-columns:repeat(3,1fr)}
.ebc-live-summary>div,.ebc-purchase-summary>div{display:flex;align-items:baseline;gap:7px;padding:13px 15px;border-radius:13px;background:linear-gradient(180deg,#f8fafc,#fff);border:1px solid #e7edf4}.ebc-live-summary span,.ebc-purchase-summary span{margin-left:auto;color:#64748b;font-size:11px}.ebc-live-summary strong,.ebc-purchase-summary strong{font-size:15px;color:var(--ebc-navy);font-variant-numeric:tabular-nums}.ebc-live-summary small,.ebc-purchase-summary small{font-size:9px;color:#94a3b8;font-family:inherit}
.ebc-submit-row{position:sticky;bottom:14px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0;padding:16px 18px;border:1px solid rgba(15,39,71,.09);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 18px 50px rgba(15,39,71,.15);backdrop-filter:blur(12px)}
.ebc-submit-copy strong{font-size:13px;color:var(--ebc-navy)}.ebc-submit-copy p{margin:2px 0 0!important;color:var(--ebc-muted)!important;font-size:10.5px}
.ebc-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:245px;min-height:52px;padding:12px 22px;border:0!important;border-radius:13px!important;background:linear-gradient(135deg,var(--ebc-teal),#087f80)!important;color:#fff!important;font-size:13px!important;font-weight:750!important;cursor:pointer;box-shadow:0 11px 24px rgba(14,165,166,.24);transition:.2s ease}.ebc-submit:hover{transform:translateY(-2px);box-shadow:0 15px 30px rgba(14,165,166,.29)}.ebc-submit:disabled{opacity:.65;cursor:wait;transform:none}.ebc-submit-icon{font-size:19px;line-height:1}
.ebc-loading,.ebc-alert{margin-top:17px;padding:18px;border-radius:15px;background:#fff;border:1px solid var(--ebc-line);box-shadow:0 9px 26px rgba(15,39,71,.05)}.ebc-loading{display:flex;align-items:center;gap:11px;color:#475569}.ebc-loading span{width:20px;height:20px;border:2px solid #d6dee8;border-top-color:var(--ebc-teal);border-radius:50%;animation:ebcSpin .75s linear infinite}.ebc-alert-error{border-color:#fecaca;background:#fff7f7;color:#b91c1c}@keyframes ebcSpin{to{transform:rotate(360deg)}}
.ebc-result{scroll-margin-top:20px}.ebc-result-card{margin-top:22px;padding:27px;border:1px solid var(--ebc-line);border-radius:24px;background:#fff;box-shadow:0 22px 60px rgba(15,39,71,.12);overflow:hidden}.ebc-result-card:before{content:"";display:block;height:5px;margin:-27px -27px 24px;background:linear-gradient(90deg,var(--ebc-teal),#2dd4bf)}.ebc-decision-network:before{background:linear-gradient(90deg,#f59e0b,#fb7185)}.ebc-decision-equal:before{background:linear-gradient(90deg,#64748b,#94a3b8)}
.ebc-result-head{display:flex;align-items:center;justify-content:space-between;gap:25px}.ebc-result-status{display:flex;align-items:center;gap:13px}.ebc-status-icon{flex:0 0 47px;width:47px;height:47px;display:grid;place-items:center;border-radius:15px;background:#dcfce7;color:var(--ebc-green);font-size:22px;font-weight:800}.ebc-decision-network .ebc-status-icon{background:#fff7ed;color:#ea580c}.ebc-result-status>div>span{font-size:10px;color:#64748b}.ebc-result-status h3{margin:2px 0!important;color:var(--ebc-navy)!important;font-size:21px!important}.ebc-result-status p{margin:0!important;color:#94a3b8!important;font-size:10px}.ebc-result-delta{min-width:220px;padding:13px 16px;border-radius:14px;background:linear-gradient(145deg,#effcf8,#f8fffd);border:1px solid #c9f2e4;text-align:center}.ebc-decision-network .ebc-result-delta{background:#fff8ed;border-color:#fed7aa}.ebc-result-delta span,.ebc-result-delta small{display:block;color:#64748b;font-size:10px}.ebc-result-delta strong{display:block;margin:2px 0;color:var(--ebc-green);font-size:22px;line-height:1.5}.ebc-result-delta .ebc-percent-value{font-size:31px;font-weight:850;letter-spacing:-.4px}.ebc-decision-network .ebc-result-delta strong{color:#ea580c}
.ebc-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.ebc-kpi{position:relative;padding:17px;border:1px solid #e5ebf2;border-radius:15px;background:#fafdff;overflow:hidden}.ebc-kpi:after{content:"";position:absolute;right:0;top:0;width:4px;height:100%;background:#94a3b8}.ebc-kpi-buy:after{background:var(--ebc-teal)}.ebc-kpi-difference:after{background:var(--ebc-green)}.ebc-decision-network .ebc-kpi-difference:after{background:#f59e0b}.ebc-kpi-label{display:block;color:#64748b;font-size:10.5px}.ebc-kpi b{display:block;margin:6px 0 2px;color:var(--ebc-navy);font-size:20px;font-variant-numeric:tabular-nums}.ebc-kpi small{font-size:9.5px;color:#94a3b8}
.ebc-cost-chart{padding:18px;border:1px solid #e6edf4;border-radius:16px;background:#fbfdff}.ebc-chart-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.ebc-chart-title h4{margin:0!important;color:#334155!important;font-size:13px!important}.ebc-chart-title span{font-size:9px;color:#94a3b8}.ebc-chart-row{display:grid;grid-template-columns:95px 1fr 150px;align-items:center;gap:12px;margin:10px 0;font-size:10.5px;color:#64748b}.ebc-chart-row>div{height:12px;border-radius:99px;background:#e9eff5;overflow:hidden}.ebc-chart-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#64748b,#94a3b8);transition:width .6s ease}.ebc-chart-row-buy i{background:linear-gradient(90deg,var(--ebc-teal),#2dd4bf)}.ebc-chart-row b{text-align:left;color:#334155;font-size:11px;font-variant-numeric:tabular-nums}
.ebc-result-insights{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0}.ebc-result-insights>div{padding:13px;border:1px solid #e8edf3;border-radius:13px;background:#fff}.ebc-result-insights span{display:block;color:#64748b;font-size:9.5px}.ebc-result-insights b{display:inline-block;margin-top:4px;color:#0f2747;font-size:14px}.ebc-result-insights small{margin-right:4px;color:#94a3b8;font-size:8px;font-family:inherit}
.ebc-accordions{display:grid;gap:9px;margin-top:17px}.ebc-accordions details{border:1px solid #e3eaf2;border-radius:13px;background:#fff;overflow:hidden}.ebc-accordions summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;background:#fbfdff;font-size:11.5px;font-weight:650;color:#334155}.ebc-accordions summary::-webkit-details-marker{display:none}.ebc-accordions summary:before{content:"+";order:3;width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#edf2f7;color:#64748b;font-size:16px}.ebc-accordions details[open] summary:before{content:"−";background:#e6fffb;color:#087f80}.ebc-accordions summary b{margin-right:auto;color:#0f2747;font-size:10.5px}.ebc-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 22px;padding:5px 16px 14px}.ebc-detail-grid p{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0!important;padding:10px 0;border-bottom:1px dashed #e5eaf0;font-size:10.5px}.ebc-detail-grid span{color:#64748b}.ebc-detail-grid b{color:#334155;font-size:10.5px}.ebc-positive{color:var(--ebc-green)!important}
.ebc-result-actions{display:flex;gap:10px;margin-top:20px}.ebc-result-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 16px;border-radius:11px;text-decoration:none!important;font-size:11px;font-weight:700;transition:.2s}.ebc-result-actions a:hover{transform:translateY(-1px)}.ebc-primary{background:linear-gradient(135deg,var(--ebc-teal),#087f80);color:#fff!important;box-shadow:0 8px 20px rgba(14,165,166,.2)}.ebc-secondary{border:1px solid #dce4ed;background:#f8fafc;color:#334155!important}
@media(max-width:900px){.ebc-hero-visual{display:none}.ebc-grid.ebc-three{grid-template-columns:repeat(2,minmax(0,1fr))}.ebc-result-insights{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.ebc-calculator{margin:16px auto;font-size:14px}.ebc-hero{min-height:auto;padding:25px 21px;border-radius:20px}.ebc-hero h2{font-size:27px!important}.ebc-hero-meta{display:none}.ebc-stepper{grid-template-columns:repeat(4,1fr);margin:14px 0 5px;border-radius:14px}.ebc-step{min-height:56px;gap:4px;padding:7px 3px;flex-direction:column}.ebc-step b{font-size:8.5px;text-align:center}.ebc-step span{width:25px;height:25px;font-size:10px}.ebc-section{padding:17px;border-radius:17px}.ebc-section-head{align-items:flex-start}.ebc-section-badge{display:none}.ebc-grid,.ebc-grid.ebc-three{grid-template-columns:1fr}.ebc-span-2{grid-column:auto}.ebc-live-summary,.ebc-purchase-summary,.ebc-kpis,.ebc-result-insights,.ebc-detail-grid{grid-template-columns:1fr}.ebc-submit-row{bottom:7px;align-items:stretch;flex-direction:column;padding:13px}.ebc-submit-copy{display:none}.ebc-submit{width:100%;min-width:0}.ebc-result-card{padding:18px;border-radius:18px}.ebc-result-card:before{margin:-18px -18px 18px}.ebc-result-head{align-items:stretch;flex-direction:column}.ebc-result-delta{min-width:0}.ebc-result-status h3{font-size:18px!important}.ebc-chart-row{grid-template-columns:72px 1fr}.ebc-chart-row b{grid-column:2;text-align:right;margin-top:-6px}.ebc-result-actions{flex-direction:column}.ebc-result-actions a{width:100%}}
@media(prefers-reduced-motion:reduce){.ebc-calculator *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* v0.9.6 — Front-end readability enhancement */
.ebc-calculator{
  font-size:17px;
  line-height:1.85;
}
.ebc-eyebrow{font-size:14px;font-weight:700}
.ebc-hero p{font-size:17px;line-height:2.05}
.ebc-hero-meta span{font-size:13px}
.ebc-step span{width:33px;height:33px;font-size:14px}
.ebc-step b{font-size:14px;font-weight:700}
.ebc-section{padding:29px}
.ebc-section-number{width:45px;height:45px;flex-basis:45px;font-size:17px}
.ebc-section-head h3{font-size:22px!important}
.ebc-section-head p{font-size:14px!important;line-height:1.9}
.ebc-section-badge{font-size:12px;padding:7px 12px}
.ebc-field-card{gap:9px;padding:17px}
.ebc-label{font-size:15px;font-weight:750;line-height:1.7}
.ebc-field-card input,
.ebc-field-card select{
  height:55px;
  padding:11px 14px!important;
  font-size:17px!important;
  line-height:1.5!important;
}
.ebc-field-card small{font-size:12.5px;line-height:1.75}
.ebc-input-unit input{padding-left:78px!important}
.ebc-input-unit>span{left:10px;min-width:57px;padding:5px 7px;font-size:12px}
.ebc-actions-inline{gap:11px;margin-bottom:19px}
.ebc-link-button{min-height:44px;padding:9px 15px;font-size:14px;font-weight:700}
.ebc-link-button span{font-size:18px}
.ebc-live-summary>div,.ebc-purchase-summary>div{padding:16px 18px}
.ebc-live-summary span,.ebc-purchase-summary span{font-size:13px}
.ebc-live-summary strong,.ebc-purchase-summary strong{font-size:18px}
.ebc-live-summary small,.ebc-purchase-summary small{font-size:11px}
.ebc-submit-copy strong{font-size:15px}
.ebc-submit-copy p{font-size:12.5px!important;line-height:1.75}
.ebc-submit{min-height:58px;font-size:16px!important}
.ebc-loading,.ebc-alert{font-size:15px;line-height:1.9}

@media(max-width:760px){
  .ebc-calculator{font-size:16px;line-height:1.85}
  .ebc-hero p{font-size:16px}
  .ebc-step{min-height:64px;padding:9px 4px}
  .ebc-step b{font-size:11.5px;line-height:1.45}
  .ebc-step span{width:30px;height:30px;font-size:13px}
  .ebc-section{padding:20px}
  .ebc-section-head h3{font-size:20px!important}
  .ebc-section-head p{font-size:13px!important}
  .ebc-label{font-size:14.5px}
  .ebc-field-card{padding:15px}
  .ebc-field-card input,
  .ebc-field-card select{height:54px;font-size:16px!important}
  .ebc-field-card small{font-size:12px}
  .ebc-link-button{min-height:43px;font-size:13px}
  .ebc-live-summary span,.ebc-purchase-summary span{font-size:12.5px}
  .ebc-live-summary strong,.ebc-purchase-summary strong{font-size:17px}
  .ebc-submit{min-height:56px;font-size:16px!important}
}

/* v0.9.7 — Wide / landscape desktop layout (contained in theme) */
@media (min-width: 961px){
  .ebc-calculator{
    width:100%;
    max-width:100%;
    margin:22px auto 42px;
    padding:0;
    position:static;
    left:auto;
    transform:none;
  }

  /* The plugin hero already contains the page heading; hide duplicate theme titles where supported. */
  body:has(.ebc-calculator) .entry-title,
  body:has(.ebc-calculator) .wp-block-post-title{
    display:none!important;
  }
  body:has(.ebc-calculator) .entry-content,
  body:has(.ebc-calculator) .wp-block-post-content{
    width:100%!important;
    max-width:none!important;
  }

  .ebc-hero{
    min-height:218px;
    padding:29px 42px;
    gap:38px;
    border-radius:24px;
  }
  .ebc-hero-copy{max-width:none;flex:1 1 auto}
  .ebc-hero h2{font-size:clamp(31px,3vw,45px)!important;margin-top:12px!important}
  .ebc-hero p{max-width:920px;font-size:16px;line-height:1.95}
  .ebc-hero-meta{margin-top:16px}
  .ebc-hero-visual{flex-basis:180px;width:180px;height:165px}
  .ebc-orbit-one{width:142px;height:142px}
  .ebc-orbit-two{width:172px;height:172px}
  .ebc-bolt{width:84px;height:84px;font-size:58px}

  .ebc-stepper{
    margin:16px 0 0;
    border-radius:16px;
  }
  .ebc-step{min-height:58px;padding:9px 12px}

  /* Core landscape structure: common data and consumption sit side by side. */
  .ebc-form{
    display:grid;
    grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr);
    gap:18px;
    align-items:stretch;
    margin-top:18px;
    min-width:0;
  }
  .ebc-section{
    margin:0;
    height:100%;
    padding:23px;
    min-width:0;
    overflow:hidden;
  }
  .ebc-section[data-ebc-section="3"],
  .ebc-quick-panel,
  .ebc-submit-row{
    grid-column:1 / -1;
  }
  .ebc-section-head{margin-bottom:16px;padding-bottom:14px}
  .ebc-section-head h3{font-size:20px!important}
  .ebc-section-head p{font-size:13px!important}

  /* Keep the top two cards compact without reducing readability. */
  .ebc-section[data-ebc-section="1"] .ebc-field-card,
  .ebc-section[data-ebc-section="2"] .ebc-field-card{
    padding:13px 14px;
  }
  .ebc-section[data-ebc-section="1"] .ebc-field-card input,
  .ebc-section[data-ebc-section="1"] .ebc-field-card select,
  .ebc-section[data-ebc-section="2"] .ebc-field-card input,
  .ebc-section[data-ebc-section="2"] .ebc-field-card select{
    height:50px;
    font-size:16px!important;
  }

  /* Six purchase tools in a single horizontal row on large monitors. */
  .ebc-section[data-ebc-section="3"] .ebc-grid.ebc-three{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:12px;
  }
  .ebc-section[data-ebc-section="3"] .ebc-field-card{
    padding:13px;
  }
  .ebc-section[data-ebc-section="3"] .ebc-label{
    font-size:13.5px;
    white-space:normal;
  }
  .ebc-section[data-ebc-section="3"] .ebc-field-card input{
    height:50px;
    font-size:16px!important;
  }
  .ebc-section[data-ebc-section="3"] .ebc-input-unit input{padding-left:66px!important}
  .ebc-section[data-ebc-section="3"] .ebc-input-unit>span{min-width:49px;font-size:10.5px}

  .ebc-live-summary{margin-top:13px}
  .ebc-purchase-summary{margin-top:14px}
  .ebc-submit-row{margin:0;bottom:12px}
}

/* Medium desktop / small laptop: still wide, but use three purchase columns. */
@media (min-width: 961px) and (max-width: 1240px){
  .ebc-calculator{width:100%;max-width:100%}
  .ebc-form{grid-template-columns:1fr 1fr;gap:14px}
  .ebc-section{padding:20px}
  .ebc-section[data-ebc-section="3"] .ebc-grid.ebc-three{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* Reset the full-bleed desktop treatment on tablets and phones. */
@media (max-width: 960px){
  .ebc-calculator{
    width:auto;
    max-width:1120px;
    position:static;
    left:auto;
    transform:none;
  }
  .ebc-form{display:block}
  .ebc-section{height:auto;margin:15px 0}
}


/* Contained layout — stay inside theme page container (no 100vw breakout) */
body.ebc-calculator-page{overflow-x:hidden}
/* Do NOT force max-width:100% on hosts — that overrides theme containers like max-w-7xl. */
body.ebc-calculator-page .ebc-calculator-host{
  min-width:0!important;
  box-sizing:border-box!important;
}
body.ebc-calculator-page main.ebc-calculator-host,
body.ebc-calculator-page article.ebc-calculator-host{
  margin-top:0!important;
  padding-top:0!important;
}
body.ebc-calculator-page .entry-title,
body.ebc-calculator-page .wp-block-post-title,
body.ebc-calculator-page .jb-bill-analysis > h1{display:none!important}

@media (min-width:1100px){
  /* Fill the theme container; avoid viewport-based margins that break RTL. */
  .ebc-calculator{
    width:100%!important;
    max-width:100%!important;
    margin:18px auto 42px!important;
    padding:0!important;
    position:static!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
  }

  .ebc-hero{
    min-height:205px;
    padding:26px 42px;
    border-radius:24px;
    gap:44px;
  }
  .ebc-hero-copy{max-width:none;flex:1 1 auto}
  .ebc-hero h2{font-size:clamp(31px,3.2vw,47px)!important;margin:10px 0 5px!important}
  .ebc-hero p{max-width:1050px;font-size:16.5px;line-height:1.95}
  .ebc-hero-meta{margin-top:13px}
  .ebc-hero-visual{flex:0 0 185px;width:185px;height:155px}
  .ebc-orbit-one{width:138px;height:138px}
  .ebc-orbit-two{width:166px;height:166px}
  .ebc-bolt{width:82px;height:82px;font-size:56px}

  .ebc-stepper{margin:14px 0 0;border-radius:15px}
  .ebc-step{min-height:58px;flex-direction:row;padding:8px 12px}

  /* Real landscape: all three input groups share one horizontal row. */
  .ebc-form{
    display:grid!important;
    grid-template-columns:minmax(0,.95fr) minmax(0,.9fr) minmax(0,1.35fr)!important;
    gap:16px!important;
    align-items:start!important;
    margin-top:16px!important;
  }
  .ebc-section{
    grid-column:auto!important;
    margin:0!important;
    height:auto!important;
    min-height:100%;
    padding:21px!important;
  }
  .ebc-submit-row{grid-column:1 / -1!important;margin:0!important}
  .ebc-quick-panel{grid-column:1 / -1!important}

  .ebc-section-head{margin-bottom:15px;padding-bottom:13px}
  .ebc-section-head h3{font-size:20px!important}
  .ebc-section-head p{font-size:13px!important;line-height:1.65}
  .ebc-section-number{width:42px;height:42px;flex-basis:42px;font-size:16px}

  /* Common information: two columns. */
  .ebc-section[data-ebc-section="1"] .ebc-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:11px!important;
  }
  .ebc-section[data-ebc-section="1"] .ebc-field-card{padding:12px!important}

  /* Consumption: one clear vertical stack inside its horizontal panel. */
  .ebc-section[data-ebc-section="2"] .ebc-grid.ebc-three{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .ebc-section[data-ebc-section="2"] .ebc-field-card{padding:11px 13px!important}
  .ebc-section[data-ebc-section="2"] .ebc-live-summary{
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-top:11px!important;
  }

  /* Purchases: two columns, three rows; readable and genuinely landscape. */
  .ebc-section[data-ebc-section="3"] .ebc-grid.ebc-three{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .ebc-section[data-ebc-section="3"] .ebc-field-card{padding:11px 13px!important}
  .ebc-section[data-ebc-section="3"] .ebc-label{font-size:14px!important}
  .ebc-section[data-ebc-section="3"] .ebc-purchase-summary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:11px!important;
  }

  .ebc-field-card input,.ebc-field-card select{height:50px!important;font-size:16px!important}
  .ebc-field-card small{font-size:11.5px!important;line-height:1.55}
  .ebc-label{font-size:14px!important}
  .ebc-input-unit input{padding-left:67px!important}
  .ebc-input-unit>span{min-width:50px;font-size:10.5px}
  .ebc-actions-inline{margin-bottom:11px!important}
  .ebc-link-button{min-height:39px;padding:7px 11px;font-size:12.5px}
  .ebc-live-summary>div,.ebc-purchase-summary>div{padding:11px 12px!important}
  .ebc-live-summary span,.ebc-purchase-summary span{font-size:11.5px!important}
  .ebc-live-summary strong,.ebc-purchase-summary strong{font-size:15px!important}
}

/* Smaller laptops: two top panels, purchase panel across the full row. */
@media (min-width:961px) and (max-width:1279px){
  .ebc-calculator{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    position:static!important;
    transform:none!important;
  }
  .ebc-form{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
  .ebc-section[data-ebc-section="3"],.ebc-submit-row{grid-column:1 / -1!important}
  .ebc-section[data-ebc-section="3"] .ebc-grid.ebc-three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* v0.9.10 — Results readability enhancement */
.ebc-result-card{
  padding:34px!important;
}
.ebc-result-card:before{
  margin:-34px -34px 30px!important;
}
.ebc-result-head{
  gap:32px!important;
}
.ebc-result-status{
  gap:17px!important;
}
.ebc-status-icon{
  width:58px!important;
  height:58px!important;
  flex-basis:58px!important;
  border-radius:17px!important;
  font-size:28px!important;
}
.ebc-result-status>div>span{
  font-size:14px!important;
  font-weight:650!important;
}
.ebc-result-status h3{
  margin:5px 0 4px!important;
  font-size:28px!important;
  line-height:1.55!important;
}
.ebc-result-status p{
  font-size:13.5px!important;
  line-height:1.8!important;
}
.ebc-result-delta{
  min-width:300px!important;
  padding:20px 24px!important;
  border-radius:18px!important;
}
.ebc-result-delta span,
.ebc-result-delta small{
  font-size:14px!important;
  line-height:1.8!important;
}
.ebc-result-delta strong{
  margin:5px 0!important;
  font-size:30px!important;
}
.ebc-result-delta .ebc-percent-value{
  font-size:43px!important;
  line-height:1.35!important;
}
.ebc-kpis{
  gap:18px!important;
  margin:28px 0!important;
}
.ebc-kpi{
  padding:23px 24px!important;
  border-radius:18px!important;
}
.ebc-kpi-label{
  font-size:14px!important;
  font-weight:650!important;
}
.ebc-kpi b{
  margin:8px 0 5px!important;
  font-size:27px!important;
  line-height:1.5!important;
}
.ebc-kpi small{
  font-size:13px!important;
  line-height:1.75!important;
}
.ebc-cost-chart{
  padding:24px!important;
  border-radius:18px!important;
}
.ebc-chart-title{
  margin-bottom:18px!important;
}
.ebc-chart-title h4{
  font-size:18px!important;
}
.ebc-chart-title span{
  font-size:13px!important;
}
.ebc-chart-row{
  grid-template-columns:145px 1fr 215px!important;
  gap:18px!important;
  margin:15px 0!important;
  font-size:14px!important;
  font-weight:600!important;
}
.ebc-chart-row>div{
  height:17px!important;
}
.ebc-chart-row b{
  font-size:15px!important;
  font-weight:750!important;
}
.ebc-result-insights{
  gap:14px!important;
  margin:22px 0!important;
}
.ebc-result-insights>div{
  padding:19px!important;
  border-radius:16px!important;
}
.ebc-result-insights span{
  font-size:13px!important;
  line-height:1.65!important;
}
.ebc-result-insights b{
  margin-top:7px!important;
  font-size:21px!important;
  line-height:1.5!important;
}
.ebc-result-insights small{
  font-size:12px!important;
}
.ebc-accordions{
  gap:13px!important;
  margin-top:24px!important;
}
.ebc-accordions details{
  border-radius:16px!important;
}
.ebc-accordions summary{
  padding:19px 21px!important;
  font-size:15.5px!important;
  line-height:1.7!important;
}
.ebc-accordions summary:before{
  width:31px!important;
  height:31px!important;
  border-radius:9px!important;
  font-size:21px!important;
}
.ebc-accordions summary b{
  font-size:15px!important;
  line-height:1.7!important;
}
.ebc-detail-grid{
  gap:0 30px!important;
  padding:8px 22px 20px!important;
}
.ebc-detail-grid p{
  padding:14px 0!important;
  font-size:14px!important;
  line-height:1.75!important;
}
.ebc-detail-grid span{
  font-size:14px!important;
}
.ebc-detail-grid b{
  font-size:14.5px!important;
  font-weight:750!important;
}
.ebc-result-actions{
  gap:14px!important;
  margin-top:26px!important;
}
.ebc-result-actions a{
  min-height:51px!important;
  padding:12px 22px!important;
  border-radius:13px!important;
  font-size:14px!important;
}

@media (max-width: 900px){
  .ebc-result-status h3{font-size:23px!important}
  .ebc-result-delta{min-width:240px!important}
  .ebc-result-delta .ebc-percent-value{font-size:38px!important}
  .ebc-kpi b{font-size:23px!important}
  .ebc-chart-row{grid-template-columns:115px 1fr 170px!important}
}

@media (max-width: 760px){
  .ebc-result-card{padding:22px!important}
  .ebc-result-card:before{margin:-22px -22px 22px!important}
  .ebc-result-status h3{font-size:21px!important}
  .ebc-result-status>div>span{font-size:12.5px!important}
  .ebc-result-status p{font-size:12.5px!important}
  .ebc-result-delta{min-width:0!important;padding:17px!important}
  .ebc-result-delta span,.ebc-result-delta small{font-size:13px!important}
  .ebc-result-delta .ebc-percent-value{font-size:36px!important}
  .ebc-kpi{padding:18px!important}
  .ebc-kpi-label{font-size:13px!important}
  .ebc-kpi b{font-size:22px!important}
  .ebc-kpi small{font-size:12px!important}
  .ebc-chart-title h4{font-size:16px!important}
  .ebc-chart-row{grid-template-columns:95px 1fr!important;font-size:13px!important}
  .ebc-chart-row b{grid-column:2!important;font-size:14px!important}
  .ebc-result-insights span{font-size:12.5px!important}
  .ebc-result-insights b{font-size:19px!important}
  .ebc-accordions summary{padding:16px!important;font-size:14px!important}
  .ebc-accordions summary b{font-size:13.5px!important}
  .ebc-detail-grid{padding:7px 16px 16px!important}
  .ebc-detail-grid p,.ebc-detail-grid span,.ebc-detail-grid b{font-size:13px!important}
  .ebc-result-actions a{font-size:13.5px!important}
}


/* 0.9.13 — Persian typography and Persian-digit inputs */
.ebc-calculator,
.ebc-calculator *,
.ebc-calculator input,
.ebc-calculator select,
.ebc-calculator button,
.ebc-calculator textarea{font-family:"Vazirmatn",Tahoma,sans-serif!important}
.ebc-fa-number{direction:ltr!important;text-align:right!important;font-variant-numeric:normal!important;font-feature-settings:normal!important}

/* 0.9.14 — Stronger visual separation between sections and cards */
.ebc-calculator{
  --ebc-line:#c7d3df;
  --ebc-bg:#edf3f7;
}
.ebc-stepper{
  border-color:#bccbd8!important;
  background:#f7fafc!important;
  box-shadow:0 9px 26px rgba(15,39,71,.08)!important;
}
.ebc-step{
  border-left-color:#c7d3df!important;
}
.ebc-step.is-active{
  background:linear-gradient(180deg,#dff7f5,#f7fffe)!important;
}
.ebc-section{
  border-color:#b9c9d7!important;
  background:#f1f6f9!important;
  box-shadow:0 13px 36px rgba(15,39,71,.085)!important;
}
.ebc-section:focus-within{
  border-color:rgba(14,165,166,.72)!important;
  background:#f5fafb!important;
  box-shadow:0 15px 42px rgba(15,39,71,.11),0 0 0 4px rgba(14,165,166,.09)!important;
}
.ebc-section-head{
  border-bottom-color:#cbd7e1!important;
}
.ebc-section-badge{
  background:#e2eaf1!important;
  color:#475569!important;
}
.ebc-field-card{
  border-color:#c4d1dc!important;
  background:#ffffff!important;
  box-shadow:0 3px 10px rgba(15,39,71,.035)!important;
}
.ebc-field-card:focus-within{
  border-color:rgba(14,165,166,.7)!important;
  background:#faffff!important;
  box-shadow:0 0 0 3px rgba(14,165,166,.11)!important;
}
.ebc-field-card input,.ebc-field-card select{
  border-color:#aebfce!important;
  background:#fbfdff!important;
}
.ebc-input-unit>span{
  background:#dcecef!important;
  color:#245f65!important;
}
.ebc-live-summary>div,.ebc-purchase-summary>div{
  border-color:#c2cfda!important;
  background:linear-gradient(180deg,#eaf1f6,#f9fbfc)!important;
}
.ebc-submit-row{
  border-color:#b7c7d4!important;
  background:rgba(245,249,251,.97)!important;
}
.ebc-loading,.ebc-alert{
  border-color:#bccbd8!important;
  background:#f8fbfd!important;
}
.ebc-result-card{
  border-color:#b9c9d7!important;
  background:#f8fbfd!important;
}
.ebc-kpi,
.ebc-cost-chart,
.ebc-result-insights>div,
.ebc-accordions details{
  border-color:#c1cfda!important;
  background:#ffffff!important;
}
.ebc-accordions summary{
  background:#edf3f7!important;
}
.ebc-detail-grid p{
  border-bottom-color:#cbd6df!important;
}


/* 0.9.16 — Hypothetical full-market comparison */
.ebc-hypothetical-market{
  margin:24px 0!important;
  padding:24px!important;
  border:1px solid #9fb7c9!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#e9f4f8,#f4fbfb)!important;
  box-shadow:0 10px 28px rgba(15,39,71,.08)!important;
}
.ebc-hypothetical-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:18px}
.ebc-hypothetical-head>div:first-child>span{display:block;color:#0e7490;font-size:13px;font-weight:700}
.ebc-hypothetical-head h4{margin:4px 0 5px;color:#0f2747;font-size:20px;line-height:1.65}
.ebc-hypothetical-head p{margin:0;color:#526579;font-size:13px;line-height:1.8}
.ebc-hypothetical-delta{min-width:235px;padding:14px 18px;border:1px solid #9cc8c8;border-radius:15px;background:#fff;text-align:center}
.ebc-hypothetical-delta span,.ebc-hypothetical-delta small{display:block;color:#526579;font-size:12.5px;line-height:1.7}
.ebc-hypothetical-delta strong{display:block;color:#087f7f;font-size:31px;line-height:1.45}
.ebc-hyp-costlier .ebc-hypothetical-delta strong{color:#b45309}
.ebc-hyp-equal .ebc-hypothetical-delta strong{color:#475569}
.ebc-hypothetical-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ebc-hypothetical-grid article{padding:17px 18px;border:1px solid #bdccd8;border-radius:15px;background:#fff}
.ebc-hypothetical-grid span{display:block;color:#526579;font-size:13px;font-weight:650;line-height:1.7}
.ebc-hypothetical-grid b{display:block;margin:7px 0 4px;color:#0f2747;font-size:22px;line-height:1.5}
.ebc-hypothetical-grid small{display:block;color:#64748b;font-size:11.5px;line-height:1.75}
@media(max-width:760px){
  .ebc-hypothetical-market{padding:18px!important}
  .ebc-hypothetical-head{display:block}
  .ebc-hypothetical-delta{min-width:0;margin-top:14px}
  .ebc-hypothetical-grid{grid-template-columns:1fr}
  .ebc-hypothetical-head h4{font-size:18px}
  .ebc-hypothetical-grid b{font-size:20px}
}

/* 0.9.22 — Simplified quick-analysis workflow */
.ebc-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.ebc-help{position:relative;flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;border:1px solid #9fc3cf;border-radius:50%;background:#e8f6f6;color:#087f80;font-size:13px;font-weight:800;line-height:1;cursor:help;outline:0}
.ebc-help:after{content:attr(data-tooltip);position:absolute;z-index:80;right:0;bottom:calc(100% + 10px);width:260px;max-width:70vw;padding:10px 12px;border-radius:10px;background:#0f2747;color:#fff;font-size:12px;font-weight:500;line-height:1.85;text-align:right;box-shadow:0 12px 30px rgba(15,39,71,.22);opacity:0;visibility:hidden;transform:translateY(5px);transition:.18s ease;pointer-events:none}
.ebc-help:before{content:"";position:absolute;z-index:81;right:8px;bottom:calc(100% + 4px);border:6px solid transparent;border-top-color:#0f2747;opacity:0;visibility:hidden;transition:.18s ease}
.ebc-help:hover:after,.ebc-help:hover:before,.ebc-help:focus:after,.ebc-help:focus:before{opacity:1;visibility:visible;transform:translateY(0)}
.ebc-tariff-card{display:flex!important}
.ebc-tariff-search{height:46px!important;border-style:dashed!important;background:#f7fbfc!important}
.ebc-tariff-search:focus{border-style:solid!important}
.ebc-purchase-section[hidden]{display:none!important}
.ebc-form.ebc-mode-quick [data-ebc-detailed-submit]{display:none!important}
.ebc-form.ebc-mode-detailed .ebc-quick-panel{display:none!important}

.ebc-quick-panel{grid-column:1 / -1;margin:0;padding:25px;border:1px solid #91b9c8;border-radius:22px;background:linear-gradient(135deg,#e8f4f8 0%,#f1fbfa 55%,#fff 100%);box-shadow:0 14px 38px rgba(15,39,71,.08)}
.ebc-quick-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid rgba(100,145,164,.3)}
.ebc-quick-head>div{max-width:900px}
.ebc-quick-kicker{display:block;margin-bottom:4px;color:#087f80;font-size:13px;font-weight:800}
.ebc-quick-head h3{margin:0!important;color:#0f2747!important;font-size:22px!important;line-height:1.65!important}
.ebc-quick-head p{margin:5px 0 0!important;color:#526579!important;font-size:13.5px!important;line-height:1.9!important}
.ebc-quick-badge{flex:0 0 auto;padding:8px 13px;border:1px solid #99ceca;border-radius:999px;background:#fff;color:#087f80;font-size:12px;font-weight:750;white-space:nowrap}
.ebc-review-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.ebc-review-grid>div{min-width:0;padding:14px 15px;border:1px solid #b5cad6;border-radius:14px;background:rgba(255,255,255,.9)}
.ebc-review-grid span{display:block;margin-bottom:5px;color:#64748b;font-size:12px;font-weight:650}
.ebc-review-grid strong{display:block;overflow:hidden;color:#0f2747;font-size:15px;font-weight:800;line-height:1.7;text-overflow:ellipsis;white-space:nowrap}
.ebc-review-status{grid-column:auto}
.ebc-status-green{color:#15803d!important;font-weight:850!important}
.ebc-status-neutral{color:#475569!important}
.ebc-inline-error{margin-top:14px;padding:12px 14px;border:1px solid #fecaca;border-radius:11px;background:#fff7f7;color:#b91c1c;font-size:13px;font-weight:650;line-height:1.8}
.ebc-inline-error[hidden]{display:none!important}
.ebc-quick-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.ebc-quick-submit{min-width:260px!important}
.ebc-secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:58px;padding:12px 20px;border:1px solid #8eb8c5!important;border-radius:13px!important;background:#fff!important;color:#0f4864!important;font-size:15px!important;font-weight:750!important;cursor:pointer;box-shadow:0 7px 18px rgba(15,39,71,.06);transition:.2s ease}
.ebc-secondary-action:hover{transform:translateY(-2px);border-color:#0ea5a6!important;background:#f8ffff!important}
.ebc-secondary-action span:first-child{font-size:20px;line-height:1}

@media (min-width:1100px){
  .ebc-form.ebc-mode-quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ebc-form.ebc-mode-quick .ebc-section[data-ebc-section="1"],
  .ebc-form.ebc-mode-quick .ebc-section[data-ebc-section="2"]{grid-column:auto!important}
  .ebc-form.ebc-mode-quick .ebc-quick-panel{grid-column:1 / -1!important}
  .ebc-form.ebc-mode-detailed{grid-template-columns:minmax(330px,.95fr) minmax(330px,.9fr) minmax(500px,1.35fr)!important}
  .ebc-form.ebc-mode-detailed .ebc-section[data-ebc-section="3"]{grid-column:auto!important}
}

@media (min-width:761px) and (max-width:1200px){
  .ebc-review-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ebc-review-status{grid-column:span 2}
}

@media (max-width:760px){
  .ebc-quick-panel{margin:15px 0;padding:18px;border-radius:17px}
  .ebc-quick-head{display:block}
  .ebc-quick-head h3{font-size:19px!important}
  .ebc-quick-head p{font-size:13px!important}
  .ebc-quick-badge{display:inline-block;margin-top:11px;white-space:normal}
  .ebc-review-grid{grid-template-columns:1fr 1fr}
  .ebc-review-status{grid-column:1 / -1}
  .ebc-review-grid strong{font-size:14px;white-space:normal}
  .ebc-quick-actions{align-items:stretch;flex-direction:column}
  .ebc-quick-actions button{width:100%;min-width:0!important}
  .ebc-secondary-action{min-height:56px;font-size:14px!important}
  .ebc-help:after{right:auto;left:0;width:240px}
  .ebc-help:before{right:auto;left:8px}
}
.ebc-previous-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:13px;border-top:1px dashed #b9cbd5}
.ebc-previous-row[hidden]{display:none!important}
.ebc-previous-row small{color:#64748b;font-size:11.5px;line-height:1.75}
@media(max-width:760px){.ebc-previous-row{align-items:stretch;flex-direction:column}.ebc-previous-row .ebc-link-button{justify-content:center;width:100%}}


/* 0.9.28 — Lead capture modal */
body.ebc-modal-open{overflow:hidden}
.ebc-lead-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:22px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
.ebc-lead-modal.is-open{opacity:1;visibility:visible;pointer-events:auto}
.ebc-lead-backdrop{position:absolute;inset:0;width:100%;height:100%;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(6,20,38,.68)!important;backdrop-filter:blur(4px);cursor:pointer;box-shadow:none!important}
.ebc-lead-dialog{position:relative;z-index:1;width:min(100%,500px);max-height:calc(100vh - 44px);overflow:auto;padding:30px;border:1px solid #9fc3d0;border-radius:24px;background:linear-gradient(145deg,#f8fcff 0%,#fff 65%,#f1fbfa 100%);box-shadow:0 28px 80px rgba(0,0,0,.3);transform:translateY(18px) scale(.98);transition:transform .22s ease;direction:rtl}
.ebc-lead-modal.is-open .ebc-lead-dialog{transform:translateY(0) scale(1)}
.ebc-lead-close{position:absolute;top:14px;left:14px;display:grid;place-items:center;width:38px;height:38px;margin:0!important;padding:0!important;border:1px solid #c4d4dd!important;border-radius:12px!important;background:#fff!important;color:#526579!important;font-family:Arial,sans-serif!important;font-size:27px!important;font-weight:400!important;line-height:1!important;cursor:pointer;box-shadow:0 5px 14px rgba(15,39,71,.08)!important;transition:.18s ease}
.ebc-lead-close:hover{border-color:#8daebc!important;color:#0f2747!important;transform:translateY(-1px)}
.ebc-lead-dialog-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 13px;border-radius:17px;background:#dcfce7;color:#15803d;font-size:27px;font-weight:900;box-shadow:0 9px 22px rgba(21,128,61,.13)}
.ebc-lead-dialog-copy{text-align:center}
.ebc-lead-dialog-copy>span{display:block;color:#087f80;font-size:13px;font-weight:850}
.ebc-lead-dialog-copy h3{margin:5px 0 7px!important;color:#0f2747!important;font-size:25px!important;line-height:1.55!important}
.ebc-lead-dialog-copy>p{margin:0!important;color:#526579!important;font-size:14px!important;line-height:1.9!important}
.ebc-lead-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:19px 0 16px}
.ebc-lead-summary>div{padding:11px 13px;border:1px solid #c4d7e0;border-radius:13px;background:rgba(255,255,255,.82);text-align:right}
.ebc-lead-summary span{display:block;color:#64748b;font-size:11px;font-weight:650}
.ebc-lead-summary strong{display:block;margin-top:4px;color:#0f2747;font-size:14px;font-weight:850;white-space:nowrap}
.ebc-lead-form{padding:18px;border:1px solid #bfd0d9;border-radius:17px;background:#fff;box-shadow:0 10px 28px rgba(15,39,71,.07)}
.ebc-lead-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.ebc-lead-name>span{display:block;margin-bottom:7px;color:#0f2747;font-size:14px;font-weight:800}
.ebc-lead-name input{width:100%;height:55px!important;margin:0!important;padding:8px 14px!important;border:1px solid #9fb8c7!important;border-radius:13px!important;background:#fbfdff!important;color:#0f2747!important;font-family:"Vazirmatn",Tahoma,sans-serif!important;font-size:15px!important;font-weight:700!important;box-shadow:none!important}
.ebc-lead-name input:focus{border-color:#0ea5a6!important;box-shadow:0 0 0 4px rgba(14,165,166,.1)!important;outline:0!important}
@media(max-width:600px){.ebc-lead-fields{grid-template-columns:1fr}}
.ebc-lead-mobile>span{display:block;margin-bottom:7px;color:#0f2747;font-size:14px;font-weight:800}
.ebc-lead-mobile input{width:100%;height:55px!important;margin:0!important;padding:8px 14px!important;border:1px solid #9fb8c7!important;border-radius:13px!important;background:#fbfdff!important;color:#0f2747!important;font-family:"Vazirmatn",Tahoma,sans-serif!important;font-size:19px!important;font-weight:750!important;direction:ltr!important;text-align:left!important;box-shadow:none!important}
.ebc-lead-mobile input:focus{border-color:#0ea5a6!important;box-shadow:0 0 0 4px rgba(14,165,166,.1)!important;outline:0!important}
.ebc-lead-mobile small{display:block;margin-top:6px;color:#64748b;font-size:11.5px}
.ebc-lead-error{margin-top:12px;padding:10px 12px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7;color:#b91c1c;font-size:12.5px;font-weight:700;line-height:1.8}
.ebc-lead-error[hidden]{display:none!important}
.ebc-lead-submit{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:55px;margin-top:15px!important;padding:10px 16px!important;border:0!important;border-radius:13px!important;background:linear-gradient(135deg,#0ea5a6,#087f80)!important;color:#fff!important;font-family:"Vazirmatn",Tahoma,sans-serif!important;font-size:16px!important;font-weight:850!important;cursor:pointer;box-shadow:0 10px 24px rgba(14,165,166,.22)!important;transition:.2s ease}
.ebc-lead-submit:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(14,165,166,.27)!important}
.ebc-lead-submit:disabled{opacity:.65;cursor:wait;transform:none}
.ebc-lead-submit i{font-size:20px;font-style:normal}
.ebc-lead-privacy{margin:10px 0 0!important;color:#7b8795!important;font-size:10.5px!important;line-height:1.8!important;text-align:center}
@media(max-width:600px){.ebc-lead-modal{align-items:flex-end;padding:12px}.ebc-lead-dialog{width:100%;max-height:calc(100vh - 24px);padding:25px 17px 18px;border-radius:22px 22px 16px 16px}.ebc-lead-dialog-copy h3{font-size:22px!important}.ebc-lead-dialog-copy>p{font-size:13px!important}.ebc-lead-summary{grid-template-columns:1fr 1fr}.ebc-lead-summary strong{font-size:13px}.ebc-lead-form{padding:15px}.ebc-lead-close{top:11px;left:11px}}
@media(max-width:390px){.ebc-lead-summary{grid-template-columns:1fr}.ebc-lead-dialog{padding-top:24px}}


/* 0.9.32 — Tablet responsiveness fix */
/* The wide-desktop 3-column form layout (activated from 1100px viewport width)
   reserves fixed minimum column widths (330px + 330px + 500px, plus gaps) —
   about 1192px of required content width. Below roughly 1250px that minimum
   no longer fits the available space, so the grid overflows horizontally
   instead of wrapping. This most commonly shows up on tablets in landscape
   orientation and on narrower laptop/split-screen windows (~1100–1299px),
   where the layout looked broken/unresponsive. Force the safe, fully
   flexible 2-column layout across that range instead; the dense 3-column
   layout still applies from 1300px, where it comfortably fits. */
@media (min-width:961px) and (max-width:1299px){
  .ebc-form,
  .ebc-form.ebc-mode-quick,
  .ebc-form.ebc-mode-detailed{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
  .ebc-section[data-ebc-section="3"],
  .ebc-submit-row{
    grid-column:1 / -1!important;
  }
  .ebc-section[data-ebc-section="3"] .ebc-grid.ebc-three{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Belt-and-braces guard against any residual horizontal overflow on narrow
   screens (long numbers, long tariff names, etc.). */
.ebc-calculator{max-width:100%}
.ebc-calculator img,.ebc-calculator svg{max-width:100%;height:auto}

/* 0.9.33 — Mobile full-width host/layout fix */
/* Some WordPress themes keep the main content in a 65–75% column even when
   the sidebar is empty/hidden. In that situation the calculator was fully
   responsive inside <main>, but a large blank strip remained beside it on
   phones. public.js marks the outer content column and its layout wrapper;
   below 760px we let the calculator column occupy the whole row and hide only
   common direct sidebar siblings. Desktop/tablet layouts are untouched. */
@media (max-width:760px){
  html,
  body.ebc-calculator-page{
    max-width:100%;
    overflow-x:hidden!important;
  }

  body.ebc-calculator-page .ebc-calculator-layout-host{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    grid-template-columns:minmax(0,1fr)!important;
  }

  body.ebc-calculator-page .ebc-calculator-column-host,
  body.ebc-calculator-page main.ebc-calculator-host{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:1 1 100%!important;
    grid-column:1 / -1!important;
    float:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  /* Hide only conventional theme sidebars that are direct siblings of the
     calculator content column. This avoids reserving a blank mobile column. */
  body.ebc-calculator-page .ebc-calculator-layout-host > #secondary,
  body.ebc-calculator-page .ebc-calculator-layout-host > .widget-area,
  body.ebc-calculator-page .ebc-calculator-layout-host > .sidebar,
  body.ebc-calculator-page .ebc-calculator-layout-host > .site-sidebar,
  body.ebc-calculator-page .ebc-calculator-layout-host > aside[role="complementary"],
  body.ebc-calculator-page .ebc-calculator-column-host > #secondary,
  body.ebc-calculator-page .ebc-calculator-column-host > .widget-area,
  body.ebc-calculator-page .ebc-calculator-column-host > .sidebar,
  body.ebc-calculator-page .ebc-calculator-column-host > .site-sidebar,
  body.ebc-calculator-page .ebc-calculator-column-host > aside[role="complementary"]{
    display:none!important;
  }

  body.ebc-calculator-page .ebc-calculator-host,
  body.ebc-calculator-page .ebc-calculator-column-host{
    box-sizing:border-box!important;
  }

  /* Theme container already provides gutters; fill the column. */
  body.ebc-calculator-page .ebc-calculator{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto 1.5rem!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}
