.elq { width: 100%; position: relative; }
.elq__progress { margin-bottom: 12px; opacity: .88; font-size: 14px; }
.elq__question { margin-bottom: 12px; font-weight: 700; }
.elq__answers { display: block; }
.elq__answer-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.08);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 180ms ease;
}
.elq__answer { margin: 0; }
.elq__answer-text { flex: 1; }
.elq__answer-indicator { width: 28px; height: 28px; display:flex; align-items:center; justify-content:center; overflow: visible; background-repeat:no-repeat; background-position:center; background-size:contain; }
.elq__indicator-img { max-width: 100%; max-height: 100%; display:block; opacity:1; }

.elq__controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.elq__btn { cursor: pointer; border: 1px solid rgba(0,0,0,.12); background: transparent; }

.elq__hint { margin-top: 12px; padding: 10px 12px; border: 1px dashed rgba(0,0,0,.2); }
.elq__msg { margin-top: 10px; font-weight: 700; min-height: 1.2em; }

.elq__done { display: none; padding: 16px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; position: relative; }
.elq__done-media { margin-bottom: 12px; }
.elq__done-img { max-width: 100%; height: auto; display: inline-block; }
.elq__done-header { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.elq__done-text { font-size: 16px; }

.elq__loader, .elq__result-loader{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.75);
  z-index: 50;
}
.elq__result-loader{ border-radius: 10px; }

.elq__spinner{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 4px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.55);
  animation: elqSpin 800ms linear infinite;
}
@keyframes elqSpin { to { transform: rotate(360deg); } }


.elq

/* Correct glow celebration (adjustable via CSS vars from Elementor) */
.elq{
  --elq-glow-color: rgba(46, 204, 113, 0.85);
  --elq-glow-blur: 18px;
  --elq-glow-spread: 2px;
  --elq-glow-duration: 700ms;
}
.elq__answer-label.elq__answer-label--glow{
  position: relative;
  animation: elqGlowPulse var(--elq-glow-duration) ease-in-out infinite alternate;
  box-shadow: 0 0 var(--elq-glow-blur) var(--elq-glow-spread) var(--elq-glow-color);
}
@keyframes elqGlowPulse{
  from { filter: brightness(1); transform: translateY(0); }
  to   { filter: brightness(1.06); transform: translateY(-1px); }
}

/* Default correct/wrong styling (works even if Elementor styles are not set) */
.elq{
  --elq-correct-bg: rgba(46, 204, 113, 0.18);
  --elq-correct-border: rgba(46, 204, 113, 0.55);
  --elq-correct-text: inherit;

  --elq-wrong-bg: rgba(231, 76, 60, 0.16);
  --elq-wrong-border: rgba(231, 76, 60, 0.55);
  --elq-wrong-text: inherit;
}

.elq__answer-label.elq__answer-label--correct{
  background-color: var(--elq-correct-bg); !important;
  border-color: var(--elq-correct-border); !important;
  color: var(--elq-correct-text); !important;
}
.elq__answer-label.elq__answer-label--wrong{
  background-color: var(--elq-wrong-bg); !important;
  border-color: var(--elq-wrong-border); !important;
  color: var(--elq-wrong-text); !important;
}

/* Force indicator visibility even if theme styles override */
.elq__answer-indicator{ display:flex !important; width:28px; height:28px; }

/* Force indicator/icon visibility */
.elq__answer-indicator{ visibility: visible !important; opacity: 1 !important; }
.elq__answer-indicator img{ visibility: visible !important; opacity: 1 !important; display:block !important; }

/* Intro screen */
.elq__intro{ padding: 14px; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; }
.elq__intro-title{ font-weight: 700; margin-bottom: 8px; }
.elq__intro-content{ margin-bottom: 12px; }
.elq__intro-actions .elq__btn--start{ cursor:pointer; }


.elq__quizui{ width:100%; }


/* ---------- Modals (Wrong + Hints) ---------- */
.elq__modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,var(--elq-overlay-opacity,0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.elq__modal{
  width: min(720px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}


/* Modal animations */
.elq__modal{ opacity: 1; transform: translateY(0); }
.elq[data-modal-anim="fade"] .elq__modal,
.elq[data-modal-anim="slide-up"] .elq__modal,
.elq[data-modal-anim="slide-down"] .elq__modal{
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
}
.elq[data-modal-anim="fade"] .elq__modal{ transform: translateY(0); }
.elq[data-modal-anim="slide-up"] .elq__modal{ transform: translateY(18px); }
.elq[data-modal-anim="slide-down"] .elq__modal{ transform: translateY(-18px); }
.elq .elq__modal.elq__modal--in{ opacity: 1; transform: translateY(0); }

.elq__modal-title{
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.elq__modal-body{
  max-height: min(70vh, 520px);
  overflow: auto;
}
.elq__modal-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.elq__modal-actions .elq__btn{
  cursor: pointer;
}

/* ---------- Intro quiz hints ---------- */
.elq__intro-hints{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.elq__intro-hint{
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
}
.elq__intro-hint-title{
  font-weight: 700;
  margin-bottom: 6px;
}
.elq__btn--reveal-last-hint{
  margin-top: 6px;
}


.elq__modal-progress{
  font-size: 13px;
  opacity: .75;
  margin-top: 6px;
}

.elq__btn.is-disabled{opacity:.5;cursor:not-allowed;}
