/* ============================================
   MULTIGRIP SYMPTOM QUIZ — quiz.css
   Всі класи з префіксом .mgq- щоб не конфліктувати з темою
   ============================================ */

.mgq-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
}

.mgq-wrap *, .mgq-wrap *::before, .mgq-wrap *::after {
  box-sizing: border-box;
}

/* HEADER */
.mgq-header { margin-bottom: 36px; }

.mgq-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff0f0;
  color: #E31E24;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.mgq-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #E31E24;
  border-radius: 50%;
  animation: mgq-blink 1.4s ease-in-out infinite;
}

@keyframes mgq-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.mgq-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(26px, 5vw, 42px) !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  line-height: 1.1 !important;
  margin: 0 0 10px !important;
}

.mgq-title em {
  color: #E31E24 !important;
  font-style: normal !important;
}

.mgq-sub {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

/* CARD */
.mgq-card {
  background: #fff;
  border: 1.5px solid #e8eaed;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  position: relative;
}

/* TOP BAR */
.mgq-card-top {
  background: #E31E24;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mgq-card-top-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mgq-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.mgq-steps { display: flex; gap: 5px; }

.mgq-step-dot {
  width: 24px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  transition: background 0.4s ease;
}

.mgq-step-dot.done   { background: #fff; }
.mgq-step-dot.active { background: rgba(255,255,255,0.7); }

.mgq-step-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

/* QUESTION AREA */
.mgq-q-area {
  padding: 44px 36px 36px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.mgq-q-icon-wrap {
  width: 64px; height: 64px;
  background: #fff0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mgq-q-icon-wrap.vis { opacity: 1; transform: scale(1); }

.mgq-q-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E31E24;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.mgq-q-label.vis { opacity: 1; }

.mgq-q-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.mgq-q-text.vis { opacity: 1; transform: translateY(0); }

/* ANSWER BUTTONS */
.mgq-answers { display: flex; gap: 12px; }

.mgq-btn-ans {
  flex: 1;
  padding: 16px 20px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  opacity: 0;
  transform: translateY(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.mgq-btn-ans.vis {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.18s, border-color 0.18s;
}

.mgq-btn-yes { background: #E31E24; color: #fff; }
.mgq-btn-yes:hover {
  background: #b8181d;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(227,30,36,0.35);
}

.mgq-btn-no {
  background: #f7f8fa;
  color: #1a1a1a;
  border-color: #e8eaed;
}
.mgq-btn-no:hover {
  background: #fff;
  border-color: #ccc;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* SCAN OVERLAY */
.mgq-scan-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 20;
}

.mgq-scan-overlay.on { opacity: 1; pointer-events: all; }

.mgq-scan-ring {
  width: 60px; height: 60px;
  border: 3px solid #e8eaed;
  border-top-color: #E31E24;
  border-radius: 50%;
  animation: mgq-spin 0.8s linear infinite;
}

@keyframes mgq-spin { to { transform: rotate(360deg); } }

.mgq-scan-msg {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #E31E24;
  letter-spacing: 1px;
}

.mgq-scan-progress {
  width: 160px; height: 3px;
  background: #e8eaed;
  border-radius: 2px;
  overflow: hidden;
}

.mgq-scan-fill {
  height: 100%;
  background: #E31E24;
  width: 0;
}

.mgq-scan-fill.go {
  animation: mgq-go 0.7s ease-out forwards;
}

@keyframes mgq-go { to { width: 100%; } }

/* RESULT */
.mgq-result { display: none; padding: 40px 36px 36px; }
.mgq-result.show { display: block; }

.mgq-result-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid #e8eaed;
}

.mgq-result-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.mgq-icon-flu  { background: #fef2f2; }
.mgq-icon-cold { background: #fff7ed; }
.mgq-icon-unkn { background: #eff6ff; }

.mgq-result-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.mgq-badge-flu  { background: #fef2f2; color: #E31E24; }
.mgq-badge-cold { background: #fff7ed; color: #ea580c; }
.mgq-badge-unkn { background: #eff6ff; color: #2563eb; }

.mgq-result-verdict {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(20px, 4vw, 30px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}

.mgq-result-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  max-width: 500px;
  margin: 0;
}

/* SYMPTOM PILLS */
.mgq-symptom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.mgq-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  font-family: 'Inter', sans-serif;
}

.mgq-pill-yes { background: #fef2f2; color: #E31E24; border-color: #fecaca; }
.mgq-pill-no  { background: #f7f8fa; color: #6b7280; border-color: #e8eaed; }

.mgq-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mgq-pill-yes .mgq-pill-dot { background: #E31E24; }
.mgq-pill-no  .mgq-pill-dot { background: #e8eaed; }

/* CTA BLOCK */
.mgq-cta {
  background: linear-gradient(135deg, #fff0f0 0%, #fff 100%);
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.mgq-cta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.mgq-cta-top-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E31E24;
}

.mgq-cta-top-line { flex: 1; height: 1px; background: #fecaca; }

.mgq-cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mgq-cta-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(227,30,36,0.15));
  transition: transform 0.3s ease;
  display: block;
}

.mgq-cta-img:hover { transform: scale(1.05) rotate(-1deg); }

.mgq-cta-body { flex: 1; min-width: 200px; }

.mgq-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.mgq-cta-title em { color: #E31E24; font-style: normal; }

.mgq-why-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mgq-why-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.mgq-why-list li::before {
  content: '✓';
  color: #E31E24;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.mgq-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mgq-btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E31E24;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  padding: 13px 24px;
  border-radius: 6px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.mgq-btn-buy:hover {
  background: #b8181d !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227,30,36,0.35);
  text-decoration: none !important;
}

.mgq-btn-buy svg { transition: transform 0.2s; }
.mgq-btn-buy:hover svg { transform: translateX(3px); }

.mgq-btn-restart {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  padding: 0;
}

.mgq-btn-restart:hover { color: #1a1a1a; }

.mgq-disclaimer {
  font-size: 10px;
  color: #9ca3af;
  line-height: 1.7;
  border-top: 1px solid #e8eaed;
  padding-top: 16px;
  margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 560px) {
  .mgq-q-area  { padding: 28px 20px 24px; }
  .mgq-result  { padding: 28px 20px 24px; }
  .mgq-cta-inner { flex-direction: column; align-items: flex-start; }
  .mgq-cta-img { width: 80px; height: 80px; }
  .mgq-result-top { flex-direction: column; }
  .mgq-card-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mgq-progress-wrap { justify-content: flex-start; }
}
