.ea-quiz .ea-btn,
.ea-quiz .ea-btn-secondary,
.ea-quiz .ea-btn-ghost {
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
  width: 100%;
}

@media (min-width: 640px) {
  .ea-quiz .ea-btn,
  .ea-quiz .ea-btn-secondary,
  .ea-quiz .ea-btn-ghost {
    width: auto;
  }
}

.ea-quiz .ea-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .ea-quiz .ea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ea-quiz .ea-field span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(100 116 139); margin-bottom: 0.35rem; }
.ea-quiz .ea-field input, .ea-quiz .ea-field select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.85rem 0.9rem;
  background: #fff;
}

.ea-quiz .ea-field input:focus,
.ea-quiz .ea-field select:focus {
  outline: none;
  border-color: rgba(0, 109, 119, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.12);
}

.ea-quiz .ea-checklist label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.8);
  color: rgb(51 65 85);
}

.ea-quiz .ea-checklist label:hover {
  border-color: rgba(0, 109, 119, 0.25);
  background: rgba(255, 255, 255, 1);
}

.ea-quiz .ea-checklist input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: rgb(0 109 119);
}

.ea-quiz .ea-inline input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: rgb(0 109 119);
}

.ea-quiz .ea-btn,
.ea-quiz .ea-btn-secondary,
.ea-quiz .ea-btn-ghost {
  transition: transform 150ms ease, opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.ea-quiz .ea-btn:focus,
.ea-quiz .ea-btn-secondary:focus,
.ea-quiz .ea-btn-ghost:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.12);
}

.ea-quiz .ea-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.ea-quiz .ea-checklist {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.5rem;
}

/* ── Symptom cards v2 ── */
.ea-quiz .ea-checklist-v2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.5rem;
}

.ea-quiz .ea-symptom-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
}

.ea-quiz .ea-symptom-card:hover {
  border-color: rgba(0, 109, 119, 0.3);
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(0, 109, 119, 0.08);
}

.ea-quiz .ea-symptom-card:has(input:checked) {
  border-color: rgba(0, 109, 119, 0.4);
  background: rgba(0, 109, 119, 0.04);
  box-shadow: 0 0 0 2px rgba(0, 109, 119, 0.12);
}

.ea-quiz .ea-symptom-card input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: rgb(0 109 119);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.ea-quiz .ea-symptom-body {
  flex: 1;
  min-width: 0;
}

.ea-quiz .ea-symptom-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(30 41 59);
  line-height: 1.35;
}

.ea-quiz .ea-symptom-hint {
  display: block;
  font-size: 0.75rem;
  color: rgb(100 116 139);
  line-height: 1.4;
  margin-top: 0.15rem;
}

.ea-quiz .ea-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.ea-quiz .ea-tag-orange {
  background: rgba(251, 146, 60, 0.12);
  color: rgb(194, 65, 12);
}

.ea-quiz .ea-tag-blue {
  background: rgba(59, 130, 246, 0.1);
  color: rgb(37, 99, 235);
}

.ea-quiz .ea-tag-purple {
  background: rgba(139, 92, 246, 0.1);
  color: rgb(109, 40, 217);
}

.ea-quiz .ea-note {
  font-size: 0.875rem;
  color: rgb(100 116 139);
  margin-bottom: 0.75rem;
}

.ea-quiz .ea-inline { display: inline-flex; gap: .5rem; align-items: center; font-size: 0.875rem; color: rgb(51 65 85); margin-bottom: 0.75rem; }

.ea-quiz .ea-loading { text-align: center; padding: 2rem 1rem; }
.ea-quiz .ea-loading-title { font-weight: 800; color: rgb(15 23 42); font-size: 1.125rem; }
.ea-quiz .ea-loading-text { margin-top: .75rem; color: rgb(100 116 139); font-size: 0.9rem; }
.ea-quiz .ea-progress { height: .5rem; background: rgba(148, 163, 184, 0.35); border-radius: 9999px; overflow: hidden; margin-top: 1rem; }
.ea-quiz .ea-progress-bar { height: 100%; width: 0%; transition: width .25s ease; }

.ea-quiz .ea-results {
  border-radius: 1rem;
  overflow: hidden;
}

.ea-quiz .ea-step {
  opacity: 1;
  transform: translateY(0);
}

.ea-quiz .ea-fade-in,
.ea-quiz .ea-step.ea-fade-in {
  animation: eaFadeIn .4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes eaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ea-quiz .hidden { display: none; }
