/* ================================================================
   DOSHA QUIZ — PURSHVEDA
   Premium Ayurvedic Dosha Quiz Popup
   ================================================================ */

/* ── Overlay ── */
.dq-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 26, 43, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.dq-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Modal Container ── */
.dq-modal {
  background: #fff;
  border-radius: var(--pv-radius, 14px);
  box-shadow: 0 24px 64px -16px rgba(13, 24, 40, 0.28);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.dq-overlay.active .dq-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Scrollbar styling */
.dq-modal::-webkit-scrollbar { width: 5px; }
.dq-modal::-webkit-scrollbar-track { background: transparent; }
.dq-modal::-webkit-scrollbar-thumb { background: var(--pv-line, #e7eaf0); border-radius: 99px; }

/* ── Close Button ── */
.dq-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--pv-soft, #f6f8fb);
  color: var(--muted, #6b7886);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.dq-close:hover {
  background: var(--pv-red-soft, #fde7ee);
  color: var(--pv, #e61d4f);
  transform: rotate(90deg);
}

/* ── Screen Container (shared) ── */
.dq-screen {
  display: none;
  padding: 2.8rem 2.4rem 2.2rem;
  animation: dqFadeSlideUp 0.4s ease forwards;
}
.dq-screen.active {
  display: block;
}

/* ── Welcome Screen ── */
.dq-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--pv-red-soft, #fde7ee);
  color: var(--pv, #e61d4f);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.dq-welcome-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink, #111c24);
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.dq-welcome-title span {
  color: var(--pv, #e61d4f);
}
.dq-welcome-sub {
  color: var(--muted, #6b7886);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.dq-input-group {
  margin-bottom: 1.4rem;
}
.dq-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink, #111c24);
  margin-bottom: 0.45rem;
}
.dq-input-group label .dq-req {
  color: var(--pv, #e61d4f);
}
.dq-input {
  width: 100%;
  border: 1.5px solid var(--pv-line, #e7eaf0);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #111c24);
  background: var(--pv-soft, #f6f8fb);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.dq-input:focus {
  border-color: var(--pv, #e61d4f);
  box-shadow: 0 0 0 3px rgba(230, 29, 79, 0.1);
  background: #fff;
}
.dq-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}
.dq-error-msg {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}
.dq-error-msg.show {
  display: block;
}

/* ── Primary Button ── */
.dq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  background: var(--pv, #e61d4f);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  white-space: nowrap;
}
.dq-btn:hover {
  background: var(--pv-dark, #c2133f);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(230, 29, 79, 0.5);
}
.dq-btn:active {
  transform: translateY(0);
}
.dq-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.dq-btn i {
  font-size: 0.9rem;
}

.dq-hint {
  text-align: center;
  color: var(--muted, #6b7886);
  font-size: 0.82rem;
  margin-top: 1rem;
  line-height: 1.5;
}
.dq-hint i {
  color: var(--pv, #e61d4f);
  margin-right: 0.3rem;
}

/* ── Progress Bar ── */
.dq-progress-wrap {
  margin-bottom: 1.8rem;
}
.dq-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.dq-progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted, #6b7886);
}
.dq-progress-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pv, #e61d4f);
}
.dq-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--pv-line, #e7eaf0);
  border-radius: 99px;
  overflow: hidden;
}
.dq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pv, #e61d4f), #ff6b8a);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0%;
}

/* ── Question Screen ── */
.dq-question-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink, #111c24);
  margin: 0 0 1.4rem;
  line-height: 1.4;
}

/* ── Option Cards ── */
.dq-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}
.dq-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--pv-line, #e7eaf0);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.dq-option:hover {
  border-color: #c5d1dc;
  background: var(--pv-soft, #f6f8fb);
  transform: translateX(4px);
}
.dq-option.selected {
  border-color: #22c55e;
  background: #f0fdf4;
}
.dq-option.selected .dq-option-check {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.dq-option.selected .dq-option-check i {
  opacity: 1;
  transform: scale(1);
}
.dq-option-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid var(--pv-line, #e7eaf0);
  background: var(--pv-soft, #f6f8fb);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.dq-option-check i {
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
}
.dq-option-text {
  flex: 1;
}
.dq-option-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #111c24);
  margin-bottom: 0.15rem;
}
.dq-option-text small {
  font-size: 0.8rem;
  color: var(--muted, #6b7886);
  line-height: 1.4;
}

/* ── Navigation Buttons ── */
.dq-nav {
  display: flex;
  gap: 0.75rem;
}
.dq-nav-prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--pv-line, #e7eaf0);
  border-radius: 999px;
  background: #fff;
  color: var(--muted, #6b7886);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.dq-nav-prev:hover {
  border-color: var(--pv, #e61d4f);
  color: var(--pv, #e61d4f);
  background: var(--pv-red-soft, #fde7ee);
}
.dq-nav-next {
  flex: 1;
}

/* ── Email Capture Screen ── */
.dq-email-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pv-red-soft, #fde7ee) 0%, #fff0f3 100%);
  display: grid;
  place-items: center;
  margin: 0 auto 1.4rem;
}
.dq-email-icon i {
  font-size: 1.8rem;
  color: var(--pv, #e61d4f);
}
.dq-email-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink, #111c24);
  text-align: center;
  margin: 0 0 0.4rem;
}
.dq-email-sub {
  font-size: 0.92rem;
  color: var(--muted, #6b7886);
  text-align: center;
  margin-bottom: 1.8rem;
  line-height: 1.55;
}

/* ── Result Screen ── */
.dq-result-screen {
  padding-top: 2rem;
}
.dq-result-badge {
  text-align: center;
  margin-bottom: 1.6rem;
}
.dq-result-badge-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pv, #e61d4f) 0%, #ff6b8a 100%);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  box-shadow: 0 12px 32px -8px rgba(230, 29, 79, 0.35);
}
.dq-result-badge-icon i {
  font-size: 2.2rem;
  color: #fff;
}
.dq-result-dosha {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink, #111c24);
  margin: 0 0 0.25rem;
}
.dq-result-dosha span {
  color: var(--pv, #e61d4f);
}
.dq-result-type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pv, #e61d4f);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dq-result-desc {
  font-size: 0.95rem;
  color: var(--navy, #1f2e3d);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

/* Result sections */
.dq-result-section {
  margin-bottom: 1.6rem;
}
.dq-result-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink, #111c24);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--pv-line, #e7eaf0);
}
.dq-result-section-title i {
  color: var(--pv, #e61d4f);
  font-size: 0.9rem;
}
.dq-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dq-result-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--navy, #1f2e3d);
  line-height: 1.55;
}
.dq-result-list li i {
  color: #22c55e;
  font-size: 0.7rem;
  min-width: 14px;
  margin-top: 3px;
}
.dq-result-list.avoid li i {
  color: #ef4444;
}

/* Treatment cards */
.dq-treatments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.dq-treatment-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--pv-line, #e7eaf0);
  border-radius: 10px;
  background: var(--pv-soft, #f6f8fb);
  transition: all 0.25s ease;
}
.dq-treatment-card:hover {
  border-color: var(--pv, #e61d4f);
  background: var(--pv-red-soft, #fde7ee);
  transform: translateY(-2px);
}
.dq-treatment-card i {
  color: var(--pv, #e61d4f);
  font-size: 1rem;
}
.dq-treatment-card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink, #111c24);
}

/* Result CTAs */
.dq-result-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.dq-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--pv, #e61d4f);
  border-radius: 999px;
  background: #fff;
  color: var(--pv, #e61d4f);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.dq-btn-outline:hover {
  background: var(--pv-red-soft, #fde7ee);
  transform: translateY(-2px);
}

/* ── Animations ── */
@keyframes dqFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .dq-screen {
    padding: 2rem 1.4rem 1.6rem;
  }
  .dq-welcome-title {
    font-size: 1.35rem;
  }
  .dq-question-title {
    font-size: 1.05rem;
  }
  .dq-option {
    padding: 0.85rem 1rem;
  }
  .dq-treatments {
    grid-template-columns: 1fr;
  }
  .dq-result-dosha {
    font-size: 1.35rem;
  }
  .dq-result-badge-icon {
    width: 72px;
    height: 72px;
  }
  .dq-result-badge-icon i {
    font-size: 1.8rem;
  }
  .dq-email-title {
    font-size: 1.2rem;
  }
  .dq-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}
