  :root{
    --maroon:#6a0000;
    --red:#b00000;
    --red-soft:#fff2f2;
    --line:#ede8e8;
    --text:#1c1c1c;
    --muted:#777;
    --bg-soft:#faf8f8;
    --gold:#c9a227;
  }
  *{box-sizing:border-box;}
  body{
    margin:0; padding:40px 16px; min-height:100vh;
    background:var(--bg-soft);
    font-family:'Poppins',sans-serif; color:var(--text);
    display:flex; align-items:center; justify-content:center;
  }

  .widget{
    width:100%; max-width:540px; background:#fff; border-radius:18px;
    border:1px solid rgba(0,0,0,0.07);
    box-shadow:0 28px 70px -26px rgba(106,0,0,0.22);
    overflow:hidden;
  }
  .widget-head{
    position:relative; overflow:hidden;
    background:linear-gradient(150deg,var(--maroon) 0%,var(--red) 78%);
    padding:26px 28px 20px; color:#fff;
  }
  .widget-head::before{
    content:''; position:absolute; top:-60px; right:-40px; width:200px; height:200px;
    background:radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 72%);
    border-radius:50%; pointer-events:none;
  }
  .widget-head::after{
    content:''; position:absolute; left:-30px; bottom:-70px; width:150px; height:150px;
    border:1.5px solid rgba(255,255,255,0.12); border-radius:50%; pointer-events:none;
  }
  .widget-head__top{display:flex; align-items:center; justify-content:space-between; gap:10px; position:relative; z-index:1;}
  .widget-head .eyebrow{font-size:0.72rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.7); display:inline-flex; align-items:center; gap:6px;}
  .widget-head .eyebrow .flame{font-size:0.9rem;}
  .widget-head__step-count{font-size:0.68rem; font-weight:700; color:rgba(255,255,255,0.55); background:rgba(255,255,255,0.12); padding:4px 10px; border-radius:20px;}
  .widget-head h1{font-family:'DM Serif Display',serif; font-size:1.42rem; margin:10px 0 6px; position:relative; z-index:1; line-height:1.2;}
  .widget-head__sub{font-size:0.8rem; color:rgba(255,255,255,0.72); line-height:1.5; max-width:380px; position:relative; z-index:1;}

  .widget-badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; position:relative; z-index:1;}
  .widget-badge{
    font-size:0.66rem; font-weight:700; padding:6px 11px 6px 9px; border-radius:20px;
    background:rgba(255,255,255,0.13); border:1px solid rgba(255,255,255,0.22); color:#fff;
    display:inline-flex; align-items:center; gap:5px; backdrop-filter:blur(2px);
  }

  /* STAGE TRACKER */
  .phase-track{display:flex; padding:18px 28px 0; background:linear-gradient(150deg,var(--maroon) 0%,var(--red) 78%); position:relative;}
  .phase{flex:1; text-align:center; position:relative;}
  .phase::before{
    content:''; position:absolute; top:13px; left:-50%; width:100%; height:2px;
    background:rgba(255,255,255,0.22); z-index:0;
  }
  .phase:first-child::before{display:none;}
  .phase.done::before{background:rgba(255,255,255,0.75);}
  .phase__circle{
    position:relative; z-index:1; width:26px; height:26px; margin:0 auto 8px; border-radius:50%;
    background:rgba(255,255,255,0.14); border:1.5px solid rgba(255,255,255,0.4);
    color:rgba(255,255,255,0.7); font-size:0.7rem; font-weight:700;
    display:flex; align-items:center; justify-content:center; transition:all .3s ease;
  }
  .phase.active .phase__circle{background:#fff; color:var(--maroon); border-color:#fff; box-shadow:0 0 0 4px rgba(255,255,255,0.18);}
  .phase.done .phase__circle{background:#fff; border-color:#fff; color:transparent;}
  .phase.done .phase__circle::after{content:'✓'; position:absolute; color:var(--red); font-size:0.72rem; font-weight:800;}
  .phase__bar{height:3px; border-radius:2px; background:rgba(255,255,255,0.2); margin-bottom:8px; overflow:hidden; display:none;}
  .phase__bar-fill{height:100%; width:0%; background:#fff; border-radius:2px; transition:width .35s ease;}
  .phase__label{font-size:0.6rem; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:rgba(255,255,255,0.5); transition:color .3s; padding-bottom:14px; display:block;}
  .phase.active .phase__label, .phase.done .phase__label{color:#fff;}

  .widget-body{padding:24px 28px 28px; min-height:280px;}

  .step{display:none; animation:fadeUp .3s ease;}
  .step.visible{display:block;}
  @keyframes fadeUp{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;}}

  .step-title{font-family:'DM Serif Display',serif; font-size:1.25rem; color:var(--maroon); margin-bottom:6px;}
  .step-sub{font-size:0.84rem; color:var(--muted); margin-bottom:22px; line-height:1.5;}

  .field-row{margin-bottom:20px;}
  .field-row label{display:block; font-size:0.78rem; font-weight:700; color:var(--maroon); margin-bottom:8px;}
  input[type=text], input[type=tel], input[type=email]{
    width:100%; border:1.5px solid var(--line); border-radius:8px; padding:13px 14px;
    font-size:0.92rem; font-family:'Poppins',sans-serif; color:var(--text); background:#fff;
    transition:border-color .2s;
  }
  input:focus{outline:none; border-color:var(--red);}

  .opt-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:6px;}
  .opt-grid.single{grid-template-columns:1fr;}
  .opt-grid.tight{gap:8px;}
  .opt{
    border:1.5px solid var(--line); border-radius:12px; padding:16px 12px; cursor:pointer;
    transition:all .15s ease; font-size:0.85rem; font-weight:600; color:var(--text);
    display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center;
    position:relative;
  }
  .opt-grid.single .opt{flex-direction:row; justify-content:flex-start; text-align:left; padding:14px 16px;}
  .opt:hover{border-color:var(--red); background:#fff8f8; transform:translateY(-1px);}
  .opt.selected{border-color:var(--red); background:var(--red-soft); box-shadow:0 4px 14px -4px rgba(176,0,0,0.25); color:var(--maroon);}
  .opt.selected::after{
    content:'✓'; position:absolute; top:8px; right:9px; width:15px; height:15px; border-radius:50%;
    background:var(--red); color:#fff; font-size:0.55rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
  }
  .opt .ico{
    font-size:1.15rem; line-height:1; width:38px; height:38px; border-radius:50%;
    background:var(--bg-soft); display:flex; align-items:center; justify-content:center;
    flex-shrink:0; transition:background .15s ease, transform .15s ease;
  }
  .opt.selected .ico{background:#fff; transform:scale(1.04);}

  /* GROSIME / eficiență */
  .range-row{margin-bottom:6px;}
  .range-top{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px;}
  .range-top label{font-size:0.78rem; font-weight:700; color:var(--maroon);}
  .range-val{font-size:1rem; font-weight:800; color:var(--red);}
  input[type=range]{
    -webkit-appearance:none; appearance:none; width:100%; height:4px;
    background:linear-gradient(90deg,var(--red) var(--pct,50%), var(--line) var(--pct,50%));
    border-radius:2px; outline:none; cursor:pointer;
  }
  input[type=range]::-webkit-slider-thumb{
    -webkit-appearance:none; width:19px; height:19px; border-radius:50%;
    background:var(--red); border:3px solid #fff; box-shadow:0 0 0 1.5px var(--red); cursor:pointer;
  }
  .eficienta-box{
    margin-top:18px; border-radius:12px; padding:14px 16px; background:var(--bg-soft);
    border:1.5px solid var(--line); border-left:4px solid var(--red);
    display:flex; align-items:center; gap:12px; box-shadow:0 4px 16px -8px rgba(0,0,0,0.1);
  }
  .eficienta-dot{
    width:14px; height:14px; border-radius:50%; flex-shrink:0; transition:background .25s, box-shadow .25s;
    box-shadow:0 0 0 4px rgba(0,0,0,0.05);
  }
  .eficienta-text{font-size:0.8rem; line-height:1.4;}
  .eficienta-text b{display:block; font-size:0.86rem; margin-bottom:2px; transition:color .25s;}
  .eficienta-bar{height:6px; border-radius:3px; background:var(--line); margin-top:12px; overflow:hidden; display:flex;}
  .eficienta-bar span{flex:1; height:100%;}
  .eficienta-bar span:nth-child(1){background:#c62828;}
  .eficienta-bar span:nth-child(2){background:#ef6c00;}
  .eficienta-bar span:nth-child(3){background:#f9a825;}
  .eficienta-bar span:nth-child(4){background:#7cb342;}
  .eficienta-bar span:nth-child(5){background:#2e7d32;}

  /* ---- SECȚIUNE TERMICĂ LIVE ---- */
  .thermo-live{
    margin-top:18px; background:var(--bg-soft); border:1.5px solid var(--line); border-radius:14px;
    padding:16px 18px 16px; display:none;
  }
  .thermo-live.visible{display:block; animation:fadeUp .3s ease;}
  .thermo-live__head{display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; gap:8px;}
  .thermo-live__title{font-size:0.64rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:var(--muted);}
  .thermo-live__material{font-size:0.64rem; font-weight:800; letter-spacing:0.6px; text-transform:uppercase; color:var(--red); text-align:right;}
  .thermo-live__temp{font-size:0.72rem; font-weight:700; color:var(--muted);}
  .thermo-live__temp--ext{margin-bottom:8px;}
  .thermo-live__temp--int{margin-top:6px; margin-bottom:14px;}
  .thermo-live__section{position:relative;}
  .thermo-live__layer{
    border-radius:8px; display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:0.85rem; color:#4a3418; text-shadow:0 1px 1px rgba(255,255,255,0.5);
    min-height:60px; transition:min-height .3s ease; position:relative; overflow:hidden;
    border:1px solid rgba(0,0,0,0.08); text-align:center; padding:6px 10px;
  }
  .thermo-live__ticks{display:flex; justify-content:space-around; padding:0 22%;}
  .thermo-live__ticks span{width:2px; height:9px; background:#e3a0a0; display:block;}
  .thermo-live__layer--vata{
    background-color:#eee2b8;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='12'><path d='M0 6 Q9 0 18 6 T36 6' stroke='%23c7b673' stroke-width='1.4' fill='none' opacity='.55'/></svg>");
    background-repeat:repeat; background-size:36px 12px;
  }
  .thermo-live__layer--pu{
    background-color:#efdd9c;
    background-image:radial-gradient(circle, rgba(255,255,255,0.6) 2px, transparent 2.4px);
    background-repeat:repeat; background-size:14px 14px;
  }
  .thermo-live__layer--lemn{
    background-color:#c9a876;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='14'><path d='M0 7 Q10 0 20 7 T40 7' stroke='%238a6a3f' stroke-width='1.5' fill='none' opacity='.5'/></svg>");
    background-repeat:repeat; background-size:40px 14px;
  }
  .thermo-live__layer--default{
    background-color:#dcd6c8;
    background-image:repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 6px, transparent 6px 12px);
    background-repeat:repeat;
  }
  .thermo-live__r-row{display:flex; justify-content:space-between; align-items:baseline; margin-top:16px; gap:8px;}
  .thermo-live__r-row > span:first-child{font-size:0.8rem; color:var(--muted); font-weight:600;}
  .thermo-live__r-val{font-family:'DM Serif Display',serif; font-size:1.1rem; color:#2e7d32; transition:color .25s; white-space:nowrap;}
  .thermo-live__scale{
    position:relative; height:8px; border-radius:4px; margin-top:12px;
    background:linear-gradient(90deg,#c62828,#ef6c00,#f9a825,#7cb342,#2e7d32);
  }
  .thermo-live__scale-marker{
    position:absolute; top:-3px; width:3px; height:14px; background:#1c1c1c; border-radius:2px;
    transform:translateX(-50%); transition:left .3s ease; left:50%;
  }
  .thermo-live__note{font-size:0.76rem; color:var(--muted); margin-top:10px; line-height:1.5;}
  .thermo-live__note b{color:var(--maroon);}

  /* ---- SUPRAFAȚĂ INTERACTIVĂ ---- */
  .surface-hero{
    text-align:center; background:var(--bg-soft); border:1.5px solid var(--line); border-radius:14px;
    padding:22px 16px 18px; margin-bottom:18px;
  }
  .surface-hero__value{
    font-family:'DM Serif Display',serif; font-size:2.4rem; color:var(--maroon); line-height:1;
    display:flex; align-items:baseline; justify-content:center; gap:7px;
  }
  .surface-hero__value input{
    border:none; background:transparent; font-family:inherit; font-size:inherit; color:inherit;
    width:150px; text-align:right; padding:0; -moz-appearance:textfield; outline:none;
  }
  .surface-hero__value input::-webkit-outer-spin-button,
  .surface-hero__value input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}
  .surface-hero__unit{font-size:1.2rem; color:var(--red); font-weight:700; font-family:'Poppins',sans-serif;}
  .surface-hero__hint{font-size:0.72rem; color:var(--muted); margin-top:8px;}

  .surface-range-row{margin-bottom:14px;}
  .surface-scale-labels{display:flex; justify-content:space-between; font-size:0.68rem; color:var(--muted); margin-top:6px; font-weight:600;}

  .surface-chips{display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 6px; justify-content:center;}
  .chip{
    border:1.5px solid var(--line); background:#fff; border-radius:20px; padding:8px 14px;
    font-size:0.76rem; font-weight:700; color:var(--muted); cursor:pointer; transition:all .15s ease;
    font-family:'Poppins',sans-serif;
  }
  .chip:hover{border-color:var(--red); color:var(--maroon);}
  .chip.selected{background:var(--red-soft); border-color:var(--red); color:var(--maroon);}

  .nav-row{display:flex; justify-content:space-between; align-items:center; margin-top:24px; gap:10px;}
  .btn-back{background:none; border:none; font-size:0.84rem; font-weight:700; color:var(--muted); cursor:pointer; padding:10px 4px;}
  .btn-back:hover{color:var(--maroon);}
  .btn-next{
    background:var(--red); color:#fff; border:none; border-radius:9px; flex:1;
    padding:14px; font-weight:700; font-size:0.9rem; cursor:pointer;
    font-family:'Poppins',sans-serif; transition:background .2s, transform .15s, box-shadow .2s;
    box-shadow:0 6px 16px -6px rgba(176,0,0,0.45);
  }
  .btn-next:hover{background:var(--maroon); transform:translateY(-1px); box-shadow:0 8px 20px -6px rgba(106,0,0,0.5);}
  .btn-next:disabled{background:#ccc; cursor:not-allowed; transform:none; box-shadow:none;}

  /* RECAPITULARE */
  .price-hero{
    position:relative; overflow:hidden; text-align:center; color:#fff;
    background:linear-gradient(135deg,var(--maroon),var(--red));
    border-radius:14px; padding:22px 20px 18px; margin-bottom:22px;
  }
  .price-hero::before{
    content:''; position:absolute; top:-50px; right:-30px; width:160px; height:160px;
    background:radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 72%);
    border-radius:50%; pointer-events:none;
  }
  .price-hero__label{
    position:relative; z-index:1; font-size:0.66rem; font-weight:700; letter-spacing:1.5px;
    text-transform:uppercase; color:rgba(255,255,255,0.75); display:block;
  }
  .price-hero__value{
    position:relative; z-index:1; font-family:'DM Serif Display',serif; font-size:2.1rem;
    line-height:1.15; margin:8px 0 6px;
  }
  .price-hero__value small{font-size:0.95rem; font-weight:600; font-family:'Poppins',sans-serif; opacity:0.85;}
  .price-hero__breakdown{position:relative; z-index:1; font-size:0.74rem; color:rgba(255,255,255,0.78); margin-bottom:10px;}
  .price-hero__hint{
    position:relative; z-index:1; display:block; font-size:0.68rem; color:rgba(255,255,255,0.62);
    line-height:1.45; max-width:320px; margin:0 auto;
  }
  .recap-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:24px;}
  .recap-item{border:1.5px solid var(--line); border-radius:10px; padding:12px 14px; position:relative; transition:border-color .15s;}
  .recap-item:hover{border-color:rgba(176,0,0,0.3);}
  .recap-label{display:block; font-size:0.64rem; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:#aaa; margin-bottom:5px;}
  .recap-value{display:flex; align-items:center; gap:6px; font-weight:700; color:var(--maroon); font-size:0.82rem; line-height:1.3;}
  .recap-edit{position:absolute; top:10px; right:12px; font-size:0.65rem; font-weight:700; color:var(--red); cursor:pointer;}
  .recap-edit:hover{text-decoration:underline;}
  .recap-divider{border:none; border-top:1px solid var(--line); margin:0 0 20px;}

  .lead-fields{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:6px;}
  .consent-row{display:flex; gap:9px; align-items:flex-start; font-size:0.74rem; color:var(--muted); margin:14px 0 4px; line-height:1.4;}
  .consent-row input{margin-top:2px; flex-shrink:0;}

  .referral-box{
    border:1.5px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:22px;
    background:var(--bg-soft); border-left:4px solid var(--gold); transition:border-color .2s, background .2s;
  }
  .referral-box:has(input:checked), .referral-box.is-checked{ background:#fdf7e8; border-color:var(--gold); }
  .referral-box__check{display:flex; align-items:center; gap:9px; cursor:pointer;}
  .referral-box__check input{width:16px; height:16px; accent-color:var(--gold); flex-shrink:0; cursor:pointer;}
  .referral-box__title{font-size:0.86rem; font-weight:700; color:var(--maroon); display:flex; align-items:center; gap:6px;}
  .referral-box__desc{font-size:0.74rem; color:var(--muted); line-height:1.55; margin:8px 0 0 25px;}

  .success{display:none; text-align:center; padding:20px 0 4px;}
  .success.visible{display:block;}
  .success .check{
    width:52px; height:52px; border-radius:50%; background:#2e7d32; display:flex; align-items:center;
    justify-content:center; margin:0 auto 16px; box-shadow:0 8px 22px -6px rgba(46,125,50,0.5);
  }
  .success h3{font-family:'DM Serif Display',serif; color:var(--maroon); font-size:1.3rem; margin-bottom:8px;}
  .success p{color:var(--muted); font-size:0.86rem; margin:0 0 20px; line-height:1.6; max-width:340px; margin-left:auto; margin-right:auto;}
  .success-trust{display:flex; flex-wrap:wrap; justify-content:center; gap:8px; padding-top:18px; border-top:1px solid var(--line);}
  .success-trust span{
    font-size:0.68rem; font-weight:700; color:var(--maroon); background:var(--bg-soft);
    border:1px solid var(--line); padding:6px 11px; border-radius:20px;
  }

  /* ---- PACHETE (OPTIM / PREMIUM NZEB) ---- */
  .pkg-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:6px;}
  .pkg-card{
    flex-direction:column; align-items:stretch; text-align:left;
    padding:18px 16px 16px; gap:0;
  }
  .pkg-card__badge{
    display:inline-block; font-size:0.66rem; font-weight:800; letter-spacing:0.6px; text-transform:uppercase;
    color:var(--red); background:var(--red-soft); border:1px solid rgba(176,0,0,0.18);
    padding:4px 9px; border-radius:20px; margin-bottom:10px;
  }
  .pkg-card--premium .pkg-card__badge{ color:#8a6a10; background:#fbf1d8; border-color:rgba(201,162,39,0.35); }
  .pkg-card__warranty{
    display:flex; align-items:baseline; gap:5px; font-family:'DM Serif Display',serif;
    color:var(--maroon); font-size:1.3rem; line-height:1; margin-bottom:4px;
  }
  .pkg-card__warranty small{font-family:'Poppins',sans-serif; font-size:0.68rem; font-weight:700; color:var(--muted);}
  .pkg-card__system{font-size:0.74rem; font-weight:700; color:var(--muted); margin-bottom:12px;}
  .pkg-card__features{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px;}
  .pkg-card__features li{
    font-size:0.76rem; font-weight:600; color:var(--text); line-height:1.4;
    padding-left:18px; position:relative;
  }
  .pkg-card__features li::before{
    content:'✓'; position:absolute; left:0; top:0; color:#2e7d32; font-weight:800; font-size:0.74rem;
  }
  .pkg-card.selected .pkg-card__features li::before{ color:var(--red); }

  @media (max-width:420px){
    .lead-fields{grid-template-columns:1fr;}
    .opt-grid{grid-template-columns:1fr;}
    .recap-grid{grid-template-columns:1fr;}
    .pkg-grid{grid-template-columns:1fr;}
  }
.is-hidden{display:none}
.mt-10{margin-top:10px}
.mt-14{margin-top:14px}
.mt-16{margin-top:16px}
.mb-0{margin-bottom:0}
.mb-16{margin-bottom:16px}
.mb-18{margin-bottom:18px}
.step-title--sm{font-size:1.1rem}
.visually-hidden{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
