.ph-quiz {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
  background: #fff;
}

.ph-quiz__header { margin-bottom: 12px; }
.ph-quiz__title { margin: 0 0 6px 0; font-size: 20px; line-height: 1.25; }
.ph-quiz__subtitle { margin: 10px 0 0; opacity: 0.85; }

.ph-quiz__promo{
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30,142,62,0.08);
  border: 1px solid rgba(30,142,62,0.35);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ph-quiz__promoBadge{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(30,142,62,0.45);
  background: rgba(30,142,62,0.14);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ph-quiz__promoText{
  line-height: 1.25;
}

/* ================== FIX OLDALSÓ “UGRÁS A KVÍZHEZ” WIDGET ================== */
.ph-quizJump{
  position: fixed;
  left: 14px;
  right: auto;
  top: 160px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 6px;

  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);

  padding: 10px;
  max-width: 220px;
}

.ph-quizJump__top{
  display:flex;
  align-items:center;
  gap: 8px;
}

.ph-quizJump__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;

  border: 1px solid rgba(30,142,62,0.35);
  background: rgba(30,142,62,0.10);
  cursor: pointer;

  font-weight: 900;
}

.ph-quizJump__close{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  font-size: 18px;
}

.ph-quizJump__close:hover{
  background: rgba(0,0,0,0.04);
}

.ph-quizJump__hint{
  font-size: 13px;
  line-height: 1.25;
  opacity: 0.75;
  padding: 0 2px 2px 2px;
}

.ph-quizJump.is-hidden{
  display: none;
}

.ph-quizJump__btn:focus,
.ph-quizJump__close:focus{
  outline: 2px solid rgba(30,142,62,0.45);
  outline-offset: 2px;
}

/* mobilon BAL alul */
@media (max-width: 640px){
  .ph-quizJump{
    top: auto;
    bottom: 90px;
    left: 12px;
    right: auto;
    max-width: 200px;
  }
}
/* ======================================================================== */

.ph-quiz__card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  animation: phFadeIn 0.35s ease-out;
}

.ph-quiz__q { font-weight: 700; margin-bottom: 10px; }
.ph-quiz__options { display: grid; gap: 10px; }

.ph-quiz__option {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.ph-quiz__option:hover { background: rgba(0,0,0,0.03); }

.ph-quiz__option.is-correct { border-color: #1e8e3e; background: rgba(30,142,62,0.10); }
.ph-quiz__option.is-wrong { border-color: #d93025; background: rgba(217,48,37,0.10); }

.ph-quiz__hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.ph-quiz__hint.hint-correct { background: rgba(30,142,62,0.10); }
.ph-quiz__hint.hint-wrong { background: rgba(217,48,37,0.10); }

.ph-quiz__footer {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* primary gomb nem kell (automatikus eredmény + kupon), rejtsük el */
.ph-quiz__btn--primary { display:none; }

.ph-quiz__btn {
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.ph-quiz__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ph-quiz__result { margin-top: 14px; }

.ph-quiz__resultBox {
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.10);
}

.ph-quiz__resultTitle { font-weight: 900; margin-bottom: 6px; }

.ph-quiz__resultBox.score-low { background: rgba(217,48,37,0.08); }
.ph-quiz__resultBox.score-mid { background: rgba(250,187,5,0.12); }
.ph-quiz__resultBox.score-high { background: rgba(30,142,62,0.08); }

.ph-quiz__progress { font-weight: 800; opacity: 0.7; margin-bottom: 8px; }

/* Kupon doboz */
.ph-quiz__coupon{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}
.ph-quiz__couponTitle{ font-weight: 900; margin-bottom: 8px; }
.ph-quiz__couponLine{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.ph-quiz__couponCode{
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}
.ph-quiz__couponBtn{
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.ph-quiz__couponHint{ margin-top: 8px; opacity: 0.8; }

.ph-quiz__loginBtn{
  display:inline-block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

/* kilépő animáció */
.ph-quiz__fade-out { animation: phFadeOut 0.3s ease-in forwards; }

@keyframes phFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes phFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}
