/* =========================================================
   Truth Audit
   ========================================================= */
.audit-page {
  --a-ink: #1b2340;
  --a-ink-soft: #4b5373;
  --a-muted: #6b7280;
  --a-gold: #d4af37;
  --a-gold-dark: #b8941f;
  --a-gold-deep: #a67c12;
  --a-gold-soft: #fdf6e3;
  --a-line: rgba(27, 35, 64, 0.08);
  --a-line-strong: rgba(27, 35, 64, 0.14);

  background:
    radial-gradient(900px 520px at 88% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(720px 520px at -10% 110%, rgba(27, 35, 64, 0.06), transparent 60%),
    linear-gradient(180deg, #fdfcf8 0%, #f4f0e6 100%);
  padding: clamp(24px, 4vw, 48px) clamp(14px, 3vw, 28px) 32px;
}

.audit-shell {
  max-width: 760px;
}

/* ---------- Header ---------- */
.audit-header {
  text-align: center;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.audit-title {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--a-ink);
  margin: 0 0 12px;
  text-wrap: balance;
}

.lee-truth-title-badge {
  display: inline-block;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6b5210;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
}

/* ---------- Question cards ---------- */
.audit-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 30px);
  margin-bottom: clamp(18px, 2.4vw, 24px);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  border: 1px solid var(--a-line);
  border-radius: 20px;
  box-shadow:
    0 22px 50px -34px rgba(27, 35, 64, 0.45),
    0 2px 6px rgba(27, 35, 64, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.audit-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #e8cd70, #d4af37);
}

.audit-card:hover {
  transform: translateY(-3px);
  border-color: var(--a-line-strong);
  box-shadow:
    0 32px 64px -34px rgba(27, 35, 64, 0.5),
    0 4px 10px rgba(27, 35, 64, 0.05);
}

/* ---------- Progress ---------- */
.audit-progress {
  margin-bottom: 18px;
}

.audit-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.audit-progress-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-gold-deep);
}

.audit-progress-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.audit-progress-count {
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--a-ink);
  background: var(--a-gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Question text ---------- */
.lee-question-text {
  font-family: 'Noto Sans Telugu', var(--lee-font);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  color: var(--lee-gray-800);
  margin: 0 0 18px;
}

/* ---------- Answers ---------- */
.audit-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 13px 16px;
  background: #ffffff;
  border: 1.5px solid var(--lee-gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.audit-option:hover {
  background: #fffdf5;
  border-color: rgba(212, 175, 55, 0.65);
  transform: translateX(2px);
}

.audit-option.is-selected {
  background: var(--a-gold-soft);
  border-color: var(--a-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.audit-option:focus-within {
  border-color: var(--a-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.audit-option input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.audit-radio {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 2px solid var(--lee-gray-300);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.audit-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.18s ease;
}

.audit-option.is-selected .audit-radio {
  background: var(--a-gold);
  border-color: var(--a-gold-dark);
  box-shadow: 0 2px 6px rgba(184, 148, 31, 0.4);
}

.audit-option.is-selected .audit-radio::after {
  transform: translate(-50%, -50%) scale(1);
}

.audit-option-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lee-gray-700);
}

.audit-option.is-selected .audit-option-text {
  color: var(--lee-gray-900);
}

/* ---------- Range ---------- */
.audit-range {
  padding: 18px 18px 14px;
  background: #fffdf8;
  border: 1px solid var(--a-line);
  border-radius: 14px;
}

.audit-range .lee-range {
  height: 8px;
  background: linear-gradient(
    to right,
    var(--a-gold) 0 var(--audit-fill),
    var(--lee-gray-200) var(--audit-fill) 100%
  );
}

.audit-range .lee-range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  background: var(--a-gold);
  border: 4px solid #ffffff;
  box-shadow: 0 3px 10px rgba(184, 148, 31, 0.45);
}

.audit-range .lee-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: var(--a-gold);
  border: 4px solid #ffffff;
  box-shadow: 0 3px 10px rgba(184, 148, 31, 0.45);
}

.audit-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--a-muted);
}

.audit-range-current {
  margin-top: 6px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--a-gold-deep);
}

/* ---------- Ideas ---------- */
.lee-ideas-title {
  position: relative;
  margin: 0 0 16px;
  padding-left: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--lee-gray-800);
}

.lee-ideas-title::before {
  content: '';
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4af37, #b8941f);
}

.lee-ideas-textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  font-family: var(--lee-font);
  font-size: 0.98rem;
  color: var(--lee-gray-800);
  background: #ffffff;
  border: 1.5px solid var(--lee-gray-200);
  border-radius: 12px;
  box-shadow: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lee-ideas-textarea:focus {
  border-color: var(--a-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  outline: none;
}

/* ---------- Submit ---------- */
.audit-submit {
  display: flex;
  justify-content: center;
  margin: 8px 0 26px;
}

.audit-submit .lee-btn-emerald {
  width: 100%;
  max-width: 340px;
  min-height: 54px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 13px;
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  box-shadow: 0 16px 32px -18px rgba(184, 148, 31, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.audit-submit .lee-btn-emerald:hover:not(:disabled) {
  background: linear-gradient(135deg, #c9a227 0%, #a67c12 100%);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -18px rgba(184, 148, 31, 0.85);
}

.audit-submit .lee-btn-emerald:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 3px;
}

.audit-page .lee-footer {
  margin-top: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #8a8f9f;
}

/* ---------- Sweet alert ---------- */
.audit-swal-popup.swal2-popup {
  padding: 30px 28px;
  font-family: var(--lee-font);
  border: 1px solid rgba(27, 35, 64, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 70px -30px rgba(27, 35, 64, 0.5);
}

.audit-swal-popup .swal2-title {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--a-ink);
}

.audit-swal-popup .swal2-html-container {
  font-size: 1.02rem;
  color: var(--a-ink-soft);
}

.audit-swal-popup .swal2-confirm {
  font-weight: 700;
  border-radius: 11px;
  box-shadow: 0 14px 28px -16px rgba(184, 148, 31, 0.8);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .audit-card,
  .audit-option {
    transition: none;
  }

  .audit-card:hover {
    transform: none;
  }

  .audit-option:hover {
    transform: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 600px) {
  .audit-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .audit-title {
    font-size: 1.45rem;
  }

  .lee-truth-title-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .audit-progress-count {
    font-size: 0.75rem;
  }

  .audit-option {
    gap: 12px;
    min-height: 50px;
    padding: 12px 14px;
  }

  .audit-option-text {
    font-size: 0.95rem;
  }

  .lee-question-text {
    font-size: 0.98rem;
  }

  .audit-range {
    padding: 16px 14px 12px;
  }

  .audit-range-current {
    font-size: 1.75rem;
  }

  .lee-ideas-title {
    font-size: 1.05rem;
  }
}
