
/* Container card */
.ptq-card{
  max-width: 860px;
  margin: 28px auto;
  padding: 26px;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 22px;
  background:#fff;
  box-shadow:
    0 24px 70px rgba(0,0,0,.06),
    0 2px 10px rgba(0,0,0,.03);
}

/* Headings */
.ptq-title{
  margin: 0;
  font-size: 26px;
  font-weight: 740;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color:#111;
}
.ptq-subtitle{
  margin: 8px 0 0;
  color: rgba(17,17,17,.58);
  line-height: 1.55;
  font-size: 15px;
}

/* Progress */
.ptq-progress{
  height: 10px;
  background: rgba(17,17,17,.06);
  border-radius: 999px;
  overflow:hidden;
  margin: 18px 0 10px;
}

.ptq-kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17,17,17,.45);
  margin-bottom: 8px;
}

.ptq-progress-bar{
  height: 100%;
  width:0%;
  background: linear-gradient(90deg, #111, #333);
  border-radius: 999px;
  transition: width .25s ease;
}

/* Question */
.ptq-qtitle{
  font-size: 18px;
  font-weight: 650;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
  color:#111;
}

.ptq-helper{
  font-size:14px;
  color:#666;
  margin:10px 0 16px;
}

/* Options */
.ptq-options{
  display: grid;
  gap: 10px;
}
.ptq-option{
  text-align:left;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17,17,17,.10);
  background:#fff;
  cursor:pointer;
  transition: box-shadow .22s ease, border-color .18s ease, transform .06s ease;
  color:#111;
  line-height: 1.25;
}
.ptq-option:hover{
  border-color: rgba(17,17,17,.22);
  box-shadow: 0 14px 30px rgba(0,0,0,.07);
}
.ptq-option:active{
  transform: scale(.992);
}
.ptq-option.is-selected{
  border-color: #111;
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Footer buttons */
.ptq-footer{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-top: 16px;
}
.ptq-back, .ptq-next{
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(17,17,17,.12);
  background:#fff;
  cursor:pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
}
.ptq-back:hover{
  border-color: rgba(17,17,17,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.ptq-next{
  margin-left:auto;
  background:#111;
  color:#fff;
  border-color:#111;
}
.ptq-next:hover{
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.ptq-back:active, .ptq-next:active{
  transform: scale(.992);
}
.ptq-back:disabled, .ptq-next:disabled{
  opacity: .45;
  cursor:not-allowed;
  box-shadow: none;
}

/* =========================
   RESULT
   ========================= */
.ptq-rhead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  padding: 6px 0 12px;
}
.ptq-rtitle{
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.02em;
  color:#111;
}
.ptq-rsubtitle{
  margin-top: 6px;
  color: rgba(17,17,17,.58);
  line-height: 1.5;
  font-size: 14px;
}

/* Primary CTA */
.ptq-primary-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background:#111;
  color:#fff;
  text-decoration:none;
  white-space: nowrap;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  transition: transform .06s ease, box-shadow .2s ease;
}
.ptq-primary-cta:hover{
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}
.ptq-primary-cta:active{
  transform: scale(.992);
}

/* Cards grid */
.ptq-rcards{
  display:grid;
  gap: 14px;
  margin-top: 12px;
}
.ptq-card2{
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 20px;
  padding: 18px;
  background:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.ptq-card2-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ptq-rname{
  font-weight: 760;
  letter-spacing: -0.01em;
  color:#111;
  line-height: 1.2;
}
.ptq-score{
  font-size: 12px;
  color: rgba(17,17,17,.58);
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(17,17,17,.03);
}

/* Why box */
.ptq-why{
  margin: 12px 0 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17,17,17,.03);
  border: 1px solid rgba(17,17,17,.06);
}
.ptq-why-title{
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color:#111;
}
.ptq-why-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,17,17,.70);
  line-height: 1.5;
}
.ptq-why-list li{ margin: 6px 0; }

/* Description */
.ptq-rdesc{
  color: rgba(17,17,17,.72);
  margin-top: 8px;
  line-height: 1.6;
  font-size: 14.5px;
}

/* Actions */
.ptq-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ptq-rcta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: transform .06s ease, box-shadow .2s ease;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}
.ptq-rcta:hover{ box-shadow: 0 16px 34px rgba(0,0,0,.16); transform: translateY(-1px); }
.ptq-rcta:active{ transform: scale(.992); }

/* Restart */
.ptq-restart{
  margin-top: 16px;
  width: 100%;
  height: 46px;
  text-align: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(17,17,17,.10);
  background:#fff;
  cursor:pointer;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease;
}
.ptq-restart:hover{
  border-color: rgba(17,17,17,.20);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.ptq-restart:active{ transform: scale(.992); }

/* Highlight consultation (premium but neutral) */
.ptq-card-consultation{
  border-color: rgba(17,17,17,.85);
  background: linear-gradient(180deg, rgba(17,17,17,.03), rgba(255,255,255,1));
  box-shadow: 0 16px 42px rgba(0,0,0,.08);
}
.ptq-card-consultation .ptq-rname::after{
  content: "Suositeltu";
  margin-left: 10px;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  vertical-align: middle;
}

/* =========================
   Confidence label (result only)
   ========================= */

.ptq-confidence{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17,17,17,.08);
  background: rgba(17,17,17,.03);
  color: rgba(17,17,17,.78);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 10px 0 6px;
}

.ptq-confidence .ptq-conf-icon{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(17,17,17,.14);
  background: #fff;
  flex: 0 0 auto;
}

/* Strong match (subtle green) */
.ptq-confidence.is-strong{
  border-color: rgba(0, 120, 70, .18);
  background: rgba(0, 120, 70, .06);
  color: rgba(17,17,17,.84);
}
.ptq-confidence.is-strong .ptq-conf-icon{
  border-color: rgba(0, 120, 70, .25);
  background: rgba(0, 120, 70, .10);
}

/* Medium match (neutral) */
.ptq-confidence.is-medium{
  border-color: rgba(17,17,17,.10);
  background: rgba(17,17,17,.03);
}

/* Fallback / consult recommended (soft blue) */
.ptq-confidence.is-fallback{
  border-color: rgba(40, 90, 180, .18);
  background: rgba(40, 90, 180, .06);
  color: rgba(17,17,17,.84);
}
.ptq-confidence.is-fallback .ptq-conf-icon{
  border-color: rgba(40, 90, 180, .22);
  background: rgba(40, 90, 180, .10);
}


/* Responsive */
@media (min-width: 720px){
  .ptq-options{ grid-template-columns: 1fr 1fr; }
  .ptq-rcards{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .ptq-card{ padding: 16px; border-radius: 18px; margin: 16px auto; }
  .ptq-title{ font-size: 20px; }
  .ptq-footer{ flex-direction: column; }
  .ptq-next{ margin-left: 0; }
  .ptq-primary-cta{ width: 100%; }
}

/* =========================
   Smooth transitions (premium feel)
   ========================= */

/* Progress bar smoother */
.ptq-progress-bar{
  transition: width 1s cubic-bezier(.2,.8,.2,1);
  will-change: width;
}

/* Button hover smoother */
.ptq-option,
.ptq-back,
.ptq-next,
.ptq-rcta,
.ptq-primary-cta,
.ptq-restart{
  transition: 
    background-color .75s ease,
    border-color .75s ease,
    color .75s ease,
    box-shadow .75s ease,
    transform .42s ease;
  will-change: transform;
}


/* Next button hover */
.ptq-next:hover:not(:disabled),
.ptq-rcta:hover,
.ptq-primary-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}

/* =========================
   Step transition (fade/slide)
   ========================= */

.ptq-step{
  transition: opacity .48s ease, transform .48s ease;
  will-change: opacity, transform;
}
.ptq-step.is-leaving{
  opacity: 0;
  transform: translateY(8px);
}
.ptq-step.is-entering{
  opacity: 0;
  transform: translateY(8px);
}

/* =========================
   Smooth height changes
   ========================= */

/* Wrap step in an animatable container */
.ptq-body{
  overflow: hidden;
  transition: height .65s ease;
  will-change: height;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce){
  .ptq-progress-bar,
  .ptq-option,
  .ptq-back,
  .ptq-next,
  .ptq-rcta,
  .ptq-primary-cta,
  .ptq-restart,
  .ptq-step,
  .ptq-body{
    transition: none !important;
  }
}



