:root{
  --qred:#e4332b;
  --qblue:#2e86c1;
  --qink:#20304d;
  --qmuted:#65718a;
  --qline:#d9e7f2;

  --q-orange:#ff9f43;
  --q-yellow:#ffd65a;
  --q-green:#58c78b;
  --q-purple:#9b78df;
  --q-pink:#f67db0;
  --q-cyan:#59c7d8;

  --theme:#e4332b;
  --theme-soft:#fff1ef;
  --theme-ring:rgba(228,51,43,.12);
}

.pn-quiz-shell{
  position:relative;
  min-height:78vh;
  overflow:hidden;
  padding:76px 20px;
  background:
    radial-gradient(circle at 15% 10%,rgba(255,214,90,.35),transparent 24%),
    radial-gradient(circle at 88% 14%,rgba(155,120,223,.22),transparent 28%),
    radial-gradient(circle at 80% 88%,rgba(88,199,139,.22),transparent 24%),
    linear-gradient(180deg,#edf9ff 0%,#f9fcff 48%,#fffaf4 100%);
}

.quiz-decor{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  filter:blur(.2px);
  opacity:.85;
}

.decor-a{
  width:92px;
  height:92px;
  left:7%;
  top:16%;
  background:rgba(255,159,67,.22);
}

.decor-b{
  width:54px;
  height:54px;
  right:9%;
  top:24%;
  background:rgba(89,199,216,.26);
}

.decor-c{
  width:118px;
  height:118px;
  right:5%;
  bottom:8%;
  background:rgba(246,125,176,.17);
}

.decor-d{
  width:42px;
  height:42px;
  left:13%;
  bottom:12%;
  background:rgba(88,199,139,.25);
}

.pn-quiz-card{
  position:relative;
  z-index:2;
  max-width:760px;
  margin:auto;
  overflow:hidden;
  padding:42px;
  border:1px solid rgba(189,216,234,.9);
  border-radius:32px;
  background:rgba(255,255,255,.96);
  box-shadow:0 22px 60px rgba(32,48,77,.13);
  backdrop-filter:blur(8px);
}

.pn-quiz-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:7px;
  background:linear-gradient(
    90deg,
    var(--qred),
    var(--q-orange),
    var(--q-yellow),
    var(--q-green),
    var(--q-cyan),
    var(--q-purple),
    var(--q-pink)
  );
}

.pn-quiz-brand{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  color:#1f5f8b;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
}

.pn-quiz-brand span,
.pn-quiz-brand i{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--qred);
}

.pn-quiz-brand i{
  background:var(--qblue);
}

.quiz-intro-icons{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:28px 0 17px;
}

.quiz-intro-icons span{
  display:grid;
  width:46px;
  height:46px;
  place-items:center;
  border-radius:14px;
  font-size:22px;
  box-shadow:0 8px 18px rgba(32,48,77,.08);
  transform:rotate(-3deg);
}

.quiz-intro-icons span:nth-child(even){
  transform:rotate(3deg);
}

.qi-blue{background:#eaf5ff}
.qi-yellow{background:#fff7d7}
.qi-pink{background:#fff0f6}
.qi-green{background:#ecfbf3}

.pn-quiz-card h1{
  text-align:center;
  font-size:clamp(34px,5vw,50px);
  line-height:1.04;
  margin:18px 0 14px;
  color:var(--qink);
  letter-spacing:-.035em;
}

.title-highlight{
  display:block;
  margin-top:5px;
  background:linear-gradient(90deg,#e4332b,#ff9f43,#9b78df,#2e86c1);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.pn-quiz-card h2{
  max-width:600px;
  margin:12px auto 8px;
  color:var(--qink);
  font-size:clamp(24px,4vw,30px);
  line-height:1.2;
  text-align:center;
}

.eyebrow,
.quiz-number{
  color:var(--theme);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:11px;
  text-align:center;
  transition:color .25s ease;
}

.lead{
  max-width:560px;
  margin:0 auto 25px;
  color:var(--qmuted);
  text-align:center;
  line-height:1.65;
}

.quiz-helper{
  margin:0 0 18px;
  color:#8a94a8;
  text-align:center;
  font-size:12px;
}

.quiz-btn{
  border:0;
  border-radius:14px;
  padding:14px 22px;
  font-weight:750;
  cursor:pointer;
  transition:.2s ease;
}

.quiz-btn:hover:not(:disabled){
  transform:translateY(-1px);
}

.quiz-btn.primary{
  background:var(--theme);
  color:#fff;
  box-shadow:0 10px 22px var(--theme-ring);
}

#quizIntro .quiz-btn.primary{
  background:linear-gradient(90deg,#e4332b,#ff7a3d);
  box-shadow:0 12px 25px rgba(228,51,43,.2);
}

.quiz-btn.ghost{
  background:#f4f7fa;
  color:var(--qmuted);
}

.quiz-btn.full{
  width:100%;
  font-size:16px;
}

.quiz-btn:disabled{
  opacity:.38;
  cursor:not-allowed;
  transform:none;
}

.quiz-trust-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.quiz-trust-row span{
  padding:6px 10px;
  border-radius:999px;
  background:#f4f8fb;
  color:#607186;
  font-size:10px;
  font-weight:700;
}

.quiz-note{
  margin-top:18px;
  color:var(--qmuted);
  text-align:center;
  font-size:11px;
  line-height:1.5;
}

.quiz-progress-wrap{
  margin:28px 0 22px;
}

.quiz-progress{
  height:10px;
  overflow:hidden;
  border-radius:99px;
  background:
    repeating-linear-gradient(
      90deg,
      #edf2f6 0,
      #edf2f6 11%,
      #fff 11%,
      #fff 12.5%
    );
}

.quiz-progress span{
  display:block;
  height:100%;
  width:0;
  border-radius:99px;
  background:linear-gradient(
    90deg,
    var(--q-orange),
    var(--theme)
  );
  transition:.28s ease;
}

.quiz-progress-text{
  margin-top:7px;
  color:#91a0af;
  font-size:10px;
  text-align:right;
}

.quiz-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.quiz-option{
  position:relative;
  width:100%;
  min-height:82px;
  display:flex;
  gap:13px;
  align-items:center;
  text-align:left;
  padding:15px 16px;
  border:1.5px solid var(--qline);
  border-radius:17px;
  background:#fff;
  color:#394b68;
  cursor:pointer;
  font-size:14px;
  font-weight:650;
  transition:.18s ease;
  overflow:hidden;
}

.quiz-option::after{
  content:"";
  position:absolute;
  inset:auto -25px -28px auto;
  width:70px;
  height:70px;
  border-radius:50%;
  background:var(--option-soft,#eef6fb);
  opacity:.7;
}

.quiz-option:nth-child(7n+1){--option-soft:#fff1ef}
.quiz-option:nth-child(7n+2){--option-soft:#eaf5ff}
.quiz-option:nth-child(7n+3){--option-soft:#eefaf3}
.quiz-option:nth-child(7n+4){--option-soft:#f3edff}
.quiz-option:nth-child(7n+5){--option-soft:#fff5dc}
.quiz-option:nth-child(7n+6){--option-soft:#fff0f6}
.quiz-option:nth-child(7n+7){--option-soft:#eafafd}

.quiz-option:hover{
  border-color:color-mix(in srgb,var(--theme) 35%,#d9e7f2);
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(32,48,77,.07);
}

.quiz-option.selected{
  border-color:var(--theme);
  background:var(--theme-soft);
  box-shadow:0 0 0 3px var(--theme-ring);
  color:var(--qink);
}

.quiz-option span{
  position:relative;
  z-index:2;
  display:grid;
  width:42px;
  height:42px;
  flex:0 0 42px;
  place-items:center;
  border-radius:12px;
  background:var(--option-soft,#eef6fb);
  font-size:23px;
}

.quiz-option .option-text{
  position:relative;
  z-index:2;
}

.quiz-nav{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:24px;
}

.result-celebrate{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:22px 0 5px;
}

.result-celebrate span{
  display:grid;
  width:42px;
  height:42px;
  place-items:center;
  border-radius:14px;
  background:#f7f9fc;
  font-size:20px;
}

.result-card{
  position:relative;
  overflow:hidden;
  margin:14px 0;
  padding:22px;
  border:1.5px solid var(--qline);
  border-radius:21px;
  background:linear-gradient(145deg,#fff,#fbfdff);
}

.result-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:6px;
  height:100%;
  background:var(--result-color,var(--qred));
}

.result-card:nth-child(1){
  --result-color:#e4332b;
  background:linear-gradient(145deg,#fff,#fff4f2);
}

.result-card:nth-child(2){
  --result-color:#2e86c1;
  background:linear-gradient(145deg,#fff,#f2f9ff);
}

.result-card h3{
  margin:8px 0;
  color:var(--qink);
  font-size:22px;
}

.result-card small{
  color:#7b879d;
}

.result-card p{
  color:#465675;
  line-height:1.6;
}

.result-label{
  color:var(--result-color);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.result-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.result-actions a{
  padding:11px 16px;
  border-radius:12px;
  background:var(--result-color);
  color:#fff;
  font-size:13px;
  font-weight:750;
  text-decoration:none;
}

.result-actions a.alt{
  border:1px solid var(--qblue);
  background:#fff;
  color:#1f5f8b;
}

.quiz-restart{
  display:block;
  margin:22px auto 0;
  border:0;
  background:none;
  color:#1f5f8b;
  font-weight:750;
  cursor:pointer;
}

/* Question theme colours */
.pn-quiz-card[data-theme="orange"]{
  --theme:#f08b2d;
  --theme-soft:#fff5e9;
  --theme-ring:rgba(240,139,45,.14);
}

.pn-quiz-card[data-theme="blue"]{
  --theme:#2e86c1;
  --theme-soft:#edf8ff;
  --theme-ring:rgba(46,134,193,.13);
}

.pn-quiz-card[data-theme="green"]{
  --theme:#39a96b;
  --theme-soft:#edf9f2;
  --theme-ring:rgba(57,169,107,.13);
}

.pn-quiz-card[data-theme="purple"]{
  --theme:#8d67d6;
  --theme-soft:#f4efff;
  --theme-ring:rgba(141,103,214,.13);
}

.pn-quiz-card[data-theme="pink"]{
  --theme:#df669c;
  --theme-soft:#fff0f6;
  --theme-ring:rgba(223,102,156,.13);
}

.pn-quiz-card[data-theme="cyan"]{
  --theme:#36a9bc;
  --theme-soft:#ecfbfd;
  --theme-ring:rgba(54,169,188,.13);
}

.pn-quiz-card[data-theme="red"]{
  --theme:#e4332b;
  --theme-soft:#fff1ef;
  --theme-ring:rgba(228,51,43,.12);
}

@media(max-width:700px){
  .pn-quiz-shell{
    padding:38px 13px;
  }

  .pn-quiz-card{
    padding:28px 18px;
    border-radius:24px;
  }

  .pn-quiz-card h1{
    font-size:35px;
  }

  .quiz-options{
    grid-template-columns:1fr;
  }

  .quiz-option{
    min-height:70px;
  }

  .decor-a,
  .decor-c{
    opacity:.45;
  }
}

@media(max-width:420px){
  .pn-quiz-card h1{
    font-size:31px;
  }

  .quiz-intro-icons span{
    width:40px;
    height:40px;
    border-radius:12px;
    font-size:19px;
  }

  .quiz-nav .quiz-btn{
    padding:12px 16px;
  }
}

/* =========================================================
   QUIZ RESULT PRODUCT IMAGE
========================================================= */

.result-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  align-items:center;
  gap:22px;
  min-height:235px;
}

.result-card-copy{
  position:relative;
  z-index:2;
  min-width:0;
}

.result-product-visual{
  position:relative;
  display:flex;
  min-height:200px;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  overflow:hidden;
}

.result-product-glow{
  position:absolute;
  width:155px;
  height:155px;
  border-radius:50%;
  background:var(--result-color);
  opacity:.08;
}

.result-product-visual::before{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border:1px dashed color-mix(in srgb,var(--result-color) 28%,transparent);
  border-radius:50%;
}

.result-product-visual img{
  position:relative;
  z-index:2;
  display:block;
  width:auto;
  max-width:155px;
  max-height:195px;
  object-fit:contain;
  filter:drop-shadow(0 14px 13px rgba(31,48,72,.14));
  transition:transform .25s ease;
}

.result-card:hover .result-product-visual img{
  transform:translateY(-3px) rotate(1deg);
}

.result-card:nth-child(2) .result-product-visual img{
  transform:rotate(-1deg);
}

.result-card:nth-child(2):hover .result-product-visual img{
  transform:translateY(-3px) rotate(0deg);
}

@media(max-width:650px){
  .result-card{
    grid-template-columns:1fr;
    gap:10px;
  }

  .result-product-visual{
    order:-1;
    min-height:160px;
    padding-top:4px;
  }

  .result-product-visual img{
    max-width:135px;
    max-height:155px;
  }

  .result-product-glow{
    width:135px;
    height:135px;
  }

  .result-product-visual::before{
    width:105px;
    height:105px;
  }
}
