/* ============================================
   ReadPuppy Diagnostic Tool — diagnostic.css ?v=1.0
   "Is This Normal?" public questionnaire
   ============================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.dx-hero {
  background: linear-gradient(160deg, var(--rp-hero-1) 0%, var(--rp-hero-2) 60%, var(--rp-hero-3) 100%);
  padding: 56px 0 48px;
  text-align: center;
  color: #fff;
}
.dx-hero__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.dx-hero__title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.dx-hero__title em {
  font-style: italic;
  color: #F59E0B;
}
.dx-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Wrap ──────────────────────────────────────────────────── */
.dx-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 0 64px;
}
.dx-loading {
  text-align: center;
  padding: 60px 0;
}

/* ── Step Container ───────────────────────────────────────── */
.dx-step {
  animation: rp-fadein 0.3s ease;
}
.dx-step__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.dx-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rp-purple);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dx-step__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--rp-dark);
  margin-bottom: 4px;
}
.dx-step__sub {
  font-size: 0.88rem;
  color: var(--rp-muted);
}

/* ── Form ──────────────────────────────────────────────────── */
.dx-form {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.dx-form .rp-btn {
  margin-top: 8px;
}

/* ── Concern Cards Grid ───────────────────────────────────── */
.dx-concerns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dx-concern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--rp-white);
  border: 1.5px solid var(--rp-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  min-height: 90px;
  justify-content: center;
}
.dx-concern:hover {
  border-color: var(--rp-purple-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.dx-concern.is-selected {
  border-color: var(--rp-purple);
  background: var(--rp-purple-light);
  box-shadow: 0 0 0 2px rgba(91,79,207,0.15);
}
.dx-concern__icon {
  font-size: 1.6rem;
}
.dx-concern__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rp-dark);
  line-height: 1.3;
}

/* ── Follow-Up Questions ──────────────────────────────────── */
.dx-questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.dx-question {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.dx-question__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rp-dark);
  margin-bottom: 14px;
}

.dx-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dx-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--rp-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.12s;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--rp-mid);
  background: var(--rp-white);
}
.dx-option:hover {
  border-color: var(--rp-border-dark);
  background: var(--rp-bg-alt);
}
.dx-option.is-selected {
  border-color: var(--rp-purple);
  background: var(--rp-purple-light);
  color: var(--rp-purple-text);
  font-weight: 600;
}
.dx-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rp-border-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.dx-option.is-selected .dx-option__radio {
  border-color: var(--rp-purple);
  background: var(--rp-purple);
}
.dx-option.is-selected .dx-option__radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* ── Results ──────────────────────────────────────────────── */
.dx-result {
  animation: rp-fadein 0.4s ease;
}

/* Verdict Banner */
.dx-verdict {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.dx-verdict--normal {
  background: var(--rp-green-light);
  border: 1.5px solid rgba(5,150,105,0.2);
}
.dx-verdict--address {
  background: var(--rp-amber-light);
  border: 1.5px solid rgba(180,83,9,0.2);
}
.dx-verdict--concern {
  background: var(--rp-red-light);
  border: 1.5px solid rgba(185,28,28,0.2);
}

.dx-verdict__icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.dx-verdict__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 8px;
}
.dx-verdict--normal .dx-verdict__title { color: var(--rp-green-text); }
.dx-verdict--address .dx-verdict__title { color: var(--rp-amber-text); }
.dx-verdict--concern .dx-verdict__title { color: var(--rp-red-text); }

.dx-verdict__age {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.dx-verdict--normal .dx-verdict__age { color: var(--rp-green); }
.dx-verdict--address .dx-verdict__age { color: var(--rp-amber); }
.dx-verdict--concern .dx-verdict__age { color: var(--rp-red); }

.dx-verdict__message {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--rp-mid);
  max-width: 520px;
  margin: 0 auto;
}

/* Detail sections */
.dx-detail {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.dx-detail__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rp-muted-light);
  margin-bottom: 10px;
}
.dx-detail__text {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--rp-mid);
}
.dx-detail__text p { margin-bottom: 12px; }

/* Breed note callout */
.dx-breed-note {
  background: var(--rp-purple-light);
  border-left: 3px solid var(--rp-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.dx-breed-note__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rp-purple);
  margin-bottom: 6px;
}
.dx-breed-note__text {
  font-size: 0.9rem;
  color: var(--rp-purple-text);
  line-height: 1.6;
}

/* Red flags */
.dx-red-flags {
  background: var(--rp-red-light);
  border: 1px solid rgba(185,28,28,0.15);
  border-left: 3px solid var(--rp-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.dx-red-flags__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rp-red);
  margin-bottom: 8px;
}
.dx-red-flags__list {
  list-style: none;
  padding: 0;
}
.dx-red-flags__list li {
  font-size: 0.88rem;
  color: var(--rp-red-text);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.5;
}
.dx-red-flags__list li::before {
  content: '!';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--rp-red);
}

/* Related article link */
.dx-article-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 16px;
}
.dx-article-link:hover {
  border-color: var(--rp-purple-mid);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.dx-article-link__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.dx-article-link__body { flex: 1; }
.dx-article-link__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rp-muted-light);
}
.dx-article-link__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rp-dark);
}
.dx-article-link__arrow {
  color: var(--rp-border-dark);
  font-size: 1rem;
}

/* Restart */
.dx-restart {
  text-align: center;
  margin-top: 20px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .dx-hero { padding: 40px 0 36px; }
  .dx-hero__title { font-size: 2.2rem; }
  .dx-concerns { grid-template-columns: repeat(2, 1fr); }
  .dx-verdict__title { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .dx-hero__title { font-size: 1.8rem; }
  .dx-concerns { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dx-concern { padding: 14px 10px; min-height: 80px; }
  .dx-concern__icon { font-size: 1.3rem; }
  .dx-wrap { padding: 24px 0 48px; }
}
