#aa-test { max-width: 760px; margin: 0 auto; }
#aa-progress-text { font-weight: 600; margin-bottom: 10px; }
#aa-progress-fill { height: 100%; background: rgba(0,0,0,0.55); }

#aa-question-card { padding: 18px; border: 1px solid rgba(0,0,0,0.12); border-radius: 14px; }
#aa-scenario-title { font-weight: 700; margin-bottom: 10px; }
#aa-scenario-text { font-size: 1.2rem; line-height: 1.55; margin-bottom: 16px; }

#aa-answers {
  display: grid;
  gap: 6px;              /* small consistent spacing */
}

.aa-answer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #24324a;
  background: #24324a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.aa-processing {
text-align: center;
padding: 40px 20px;
}

.aa-processing h3 {
margin-bottom: 8px;
}

.aa-answer:hover {
  background: #3a4d70;
  border-color: #3a4d70;
}

.aa-result-score {
  margin-top: 2px;
  text-align: center;
  color: #b45309;
  opacity: 0.85;
  font-size: 0.95em;
}

.aa-answer.is-selected {
  background: #c69214;
  color: #111111;
  border-color: #c69214;
}

.aa-answer input {
  margin-right: 10px;
}

#aa-nav { display: flex; gap: 12px; margin-top: 16px; justify-content: space-between; }
#aa-back { visibility: hidden; } /* hidden on Q1; JS will show later */

/* ensure disabled buttons still show */
#aa-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  display: inline-block;
}

/* progress bar visual */
#aa-progress {
  height: 8px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 16px 0;
}
#aa-progress-bar {
  height: 100%;
  width: 0%;
  background: #999;
  transition: width 0.2s ease;
}
#aa-results {
max-width: 620px;
margin: 0 auto;
margin-top: 0 auto;
padding: 24px 16px;
}

#aa-results-headline {
font-size: 32px;
font-weight: 700;
margin-bottom: 0px;
text-align:center;
}

#aa-results-subhead {
font-size: 18px;
line-height: 1.4;
margin-bottom: 12px;
}

#aa-results-meta {
opacity: 0.8;
margin-bottom: 18px;

}

#aa-results .aa-cta,
#aa-results .aa-cta:visited,
#aa-results .aa-cta:hover,
#aa-results .aa-cta:active {
display: inline-block;
padding: 12px 16px;
border: 1px solid #111;
background: #111;
color: #ffffff !important;
text-decoration: none !important;
border-radius: 10px;
}
.aa-cta-sub {
margin-top: 8px;
font-size: 14px;
opacity: 0.8;
text-align: center;
}

.aa-processing {
  text-align: center;
  padding: 60px 20px;
}

.aa-processing h3 {
  margin-bottom: 10px;
}

.aa-processing p {
  margin-bottom: 30px;
  opacity: 0.8;
}

.aa-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid #8B1E1E; /* your muted red */
  border-radius: 50%;
  animation: aa-spin 0.9s linear infinite;
}

@keyframes aa-spin {
  to { transform: rotate(360deg); }
}


/* AA- Modern nav button styling (Back / Next) */
#aa-nav button{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

/* Primary action: Next */
#aa-next{
  background: #111;
  color: #fff;
}

/* Secondary action: Back */
#aa-back{
  background: transparent;
  color: #111;
  border-color: #ccc;
}

/* Hover (only when enabled) */
#aa-nav button:not(:disabled):hover{
  transform: translateY(-1px);
}
#aa-next:not(:disabled):hover{
  background: #000;
  border-color: #000;
}
#aa-back:not(:disabled):hover{
  border-color: #111;
}

/* Disabled state (keep visible, just subdued) */
#aa-nav button:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}

/* Your existing rule hides Back on Q1 — keep it, but make it not take space */
#aa-back[style*="visibility: hidden"], 
#aa-back{
  /* If you want it to not leave an empty gap when hidden, use display:none instead of visibility:hidden.
     Leave as-is for now since JS expects visibility toggling. */
}
#aa-step {
  margin-bottom: 6px;   /* control spacing below heading */
}

#aa-scenario-text {
  margin-top: 0;        /* remove extra top gap */
}