.pqual-widget-root{
  width:100%;
  max-width:640px;
  margin:0 auto;
  padding:20px;
  box-sizing:border-box;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.pqual-shell{
  width:100%;
  display:flex;
  justify-content:center;
}

.pqual-card{
  width:100%;
  max-width:560px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfbfd 100%);
  border:1px solid rgba(15,23,42,.08);
  border-radius:28px;
  padding:24px;
  box-shadow:
    0 24px 60px rgba(2,6,23,.18),
    0 1px 0 rgba(255,255,255,.7) inset;
  box-sizing:border-box;
  position:relative;
  overflow:hidden;
}

.pqual-card::before{
  content:"";
  position:absolute;
  inset:-20% auto auto -20%;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(208,24,34,.10) 0%, rgba(208,24,34,0) 70%);
  pointer-events:none;
}

.pqual-card::after{
  content:"";
  position:absolute;
  inset:auto -10% -20% auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(37,99,235,.08) 0%, rgba(37,99,235,0) 70%);
  pointer-events:none;
}

.pqual-brand{
  position:relative;
  z-index:1;
}

.pqual-sub{
  color:#d01822;
  font-size:14px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:none;
  margin-bottom:6px;
}

.pqual-title{
  color:#0f172a;
  font-size:24px;
  line-height:1.15;
  font-weight:900;
  margin-bottom:16px;
  letter-spacing:-.03em;
}

.pqual-progress{
  display:flex;
  gap:8px;
  margin-bottom:18px;
  position:relative;
  z-index:1;
}

.pqual-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#cbd5e1;
  transition:all .2s ease;
}

.pqual-dot.is-active{
  background:#d01822;
  transform:scale(1.08);
}

.pqual-content{
  position:relative;
  z-index:1;
}

.pqual-step{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.pqual-back{
  align-self:flex-start;
  appearance:none;
  border:1px solid #d7dee7;
  background:#eef2f7;
  color:#0f172a;
  border-radius:999px;
  padding:10px 14px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:all .18s ease;
}

.pqual-back:hover{
  background:#e2e8f0;
  border-color:#cbd5e1;
}

.pqual-step-head{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pqual-question{
  margin:0;
  color:#0f172a;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:-.02em;
}

.pqual-step-sub{
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.5;
}

.pqual-options{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.pqual-option{
  appearance:none;
  width:100%;
  border:1px solid #d9e0e8;
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%);
  color:#0f172a;
  border-radius:999px;
  padding:16px 18px;
  text-align:center;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:all .18s ease;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset;
}

.pqual-option:hover{
  border-color:#d01822;
  color:#d01822;
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(208,24,34,.10);
}

.pqual-input{
  width:100%;
  box-sizing:border-box;
  padding:18px 16px;
  border-radius:18px;
  border:1px solid #cfd8e3;
  background:#f8fafc;
  color:#0f172a;
  font-size:16px;
  font-weight:600;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  margin:0;
}

.pqual-input::placeholder{
  color:#6b7280;
  opacity:1;
}

.pqual-input:focus{
  border-color:#93c5fd;
  background:#ffffff;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}

.pqual-btn{
  appearance:none;
  width:100%;
  border:0;
  border-radius:999px;
  padding:18px 22px;
  background:linear-gradient(180deg,#ef1c29 0%,#d01822 100%);
  color:#ffffff;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.02em;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow:0 16px 30px rgba(208,24,34,.24);
}

.pqual-btn:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
}

.pqual-btn:disabled{
  opacity:.7;
  cursor:wait;
  transform:none;
}

.pqual-helper{
  min-height:20px;
  color:#475569;
  font-size:13px;
  line-height:1.45;
}

.pqual-helper--soft{
  padding:2px 2px 0;
}

.pqual-helper.is-error{
  color:#991b1b;
}

.pqual-estimate{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:2px;
}

.pqual-estimate-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.pqual-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:#eef2f7;
  border:1px solid #d6dde7;
  color:#0f172a;
  font-size:13px;
  font-weight:800;
}

.pqual-estimate-note{
  color:#475569;
  font-size:13px;
  font-weight:700;
}

.pqual-contact-note{
  padding:14px 16px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475569;
  font-size:14px;
  line-height:1.5;
}

.pqual-inline-error{
  display:none;
  margin-top:2px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#991b1b;
  font-size:14px;
  font-weight:700;
}

.pqual-inline-error.is-visible{
  display:block;
}

.pqual-result{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:14px;
  padding-top:6px;
}

.pqual-result-score-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.pqual-score-circle{
  width:110px;
  height:110px;
  border-radius:999px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  box-shadow:0 20px 40px rgba(2,6,23,.18);
}

.pqual-score-circle--strong{
  background:linear-gradient(180deg,#16a34a 0%,#15803d 100%);
}

.pqual-score-circle--likely{
  background:linear-gradient(180deg,#2563eb 0%,#1d4ed8 100%);
}

.pqual-score-circle--conditional{
  background:linear-gradient(180deg,#f59e0b 0%,#d97706 100%);
}

.pqual-score-circle--risk{
  background:linear-gradient(180deg,#ef1c29 0%,#d01822 100%);
}

.pqual-score-circle--neutral{
  background:linear-gradient(180deg,#334155 0%,#1e293b 100%);
}

.pqual-score-number{
  font-size:42px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
}

.pqual-score-denom{
  margin-top:4px;
  font-size:15px;
  font-weight:800;
  opacity:.9;
}

.pqual-result-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:10px 16px;
  font-size:14px;
  font-weight:900;
}

.pqual-result-pill--strong{
  background:#dcfce7;
  color:#166534;
}

.pqual-result-pill--likely{
  background:#dbeafe;
  color:#1d4ed8;
}

.pqual-result-pill--conditional{
  background:#fef3c7;
  color:#92400e;
}

.pqual-result-pill--risk{
  background:#fee2e2;
  color:#991b1b;
}

.pqual-result-pill--neutral{
  background:#e2e8f0;
  color:#334155;
}

.pqual-result-title{
  margin:0;
  color:#0f172a;
  font-size:20px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.03em;
}

.pqual-result-copy{
  margin:0;
  color:#334155;
  font-size:16px;
  line-height:1.65;
  max-width:440px;
}

.pqual-result-rent{
  color:#0f172a;
  font-size:18px;
  font-weight:900;
}

.pqual-result-secondary{
  color:#475569;
  font-size:14px;
  font-weight:700;
}

.pqual-result-legal{
  color:#6b7280;
  font-size:13px;
  line-height:1.5;
  max-width:420px;
}

.pqual-reset{
  appearance:none;
  border:1px solid #d7dee7;
  background:#eef2f7;
  color:#0f172a;
  border-radius:999px;
  padding:12px 16px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:all .18s ease;
}

.pqual-reset:hover{
  background:#e2e8f0;
}

@media (max-width: 640px){
  .pqual-widget-root{
    padding:12px;
  }

  .pqual-card{
    padding:20px 16px;
    border-radius:22px;
  }

  .pqual-title{
    font-size:21px;
  }

  .pqual-question{
    font-size:17px;
  }

  .pqual-btn{
    padding:17px 18px;
    font-size:17px;
  }

  .pqual-score-circle{
    width:96px;
    height:96px;
  }

  .pqual-score-number{
    font-size:36px;
  }
}