/* Essential Eight Self-Assessment styles */

.e8-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.e8-page .hidden {
  display: none;
}

.e8-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.e8-hero .e8-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.e8-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.e8-meta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Target level selector (intro) */
.e8-level-heading {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.e8-level-sub {
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.e8-levels {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.e8-level {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.e8-level:hover {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.06);
}

.e8-level.selected {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.1);
}

.e8-level-name {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.e8-level-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.e8-level-note {
  border: 1px solid rgba(0, 217, 255, 0.35);
  background: rgba(0, 217, 255, 0.07);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.e8-level-note p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.e8-start-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

/* Progress */
.e8-progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

#e8-progress-fill {
  background: var(--accent-color);
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.25s ease;
}

#e8-progress-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

#e8-control-label {
  display: inline-block;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.5rem;
}

#e8-question {
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}

.e8-option {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.e8-option:hover {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.06);
}

.e8-option.selected {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.1);
}

#e8-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

#e8-back:hover {
  color: var(--accent-color);
}

/* Results */
.e8-score-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

#e8-score-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.e8-band {
  display: inline-block;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  margin: 0.5rem 0 1rem;
}

.band-good { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.band-mid  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.band-low  { background: rgba(239, 68, 68, 0.15); color: #f87171; }

#e8-band-text {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.e8-bar-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.e8-bar-label {
  flex: 0 0 180px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.e8-bar-track {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.e8-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.e8-bar-fill.good { background: #4ade80; }
.e8-bar-fill.mid  { background: #fbbf24; }
.e8-bar-fill.low  { background: #f87171; }
.e8-bar-fill.na   { background: transparent; }

.e8-bar-pct {
  flex: 0 0 44px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.e8-idk-callout {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1.5rem 0;
}

.e8-fix {
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.e8-fix h4 {
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.e8-fix p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Email report form */
.e8-email {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.e8-email h3 {
  margin: 0 0 0.5rem;
}

.e8-email p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem;
}

#e8-email-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#e8-email-input {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

#e8-email-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.e8-email-status {
  margin-top: 0.75rem;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.e8-email-status.success { color: #4ade80; }
.e8-email-status.error { color: #f87171; }

.e8-email-privacy {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  margin-top: 0.75rem !important;
}

.e8-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.e8-cta p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

#e8-restart {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-decoration: underline;
}

.e8-disclaimer {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 2rem;
}

/* SEO content below the tool */
.e8-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}

/* Expandable sections — content stays in the DOM (crawlable), visually collapsed */
.e8-content details.e8-acc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  margin-bottom: 0.9rem;
}

.e8-acc summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.e8-acc summary::-webkit-details-marker {
  display: none;
}

.e8-acc summary::after {
  content: "+";
  color: var(--accent-color);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.e8-acc[open] summary::after {
  content: "\2212";
}

.e8-acc summary:hover h2,
.e8-acc summary:hover h3 {
  color: var(--accent-color);
}

.e8-content .e8-acc summary h2 {
  font-size: 1.25rem;
  margin: 0;
}

.e8-acc summary h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.e8-acc .e8-acc-body {
  padding: 0 1.3rem 1.1rem;
}

.e8-acc .e8-acc-body > :first-child {
  margin-top: 0;
}

.e8-acc .e8-acc-body p:last-child {
  margin-bottom: 0;
}

.e8-content p,
.e8-content li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.e8-content ul {
  padding-left: 1.4rem;
}

@media (max-width: 600px) {
  .e8-page { padding-top: 100px; }
  .e8-hero h1 { font-size: 1.8rem; }
  .e8-bar-label { flex-basis: 120px; font-size: 0.8rem; }
  .e8-card { padding: 1.25rem; }
}
