/* ════════════════════════════════════════════════
   AI School — Readiness Assessment Quiz Styles
   Self-contained: works on any page, dark or light
   ════════════════════════════════════════════════ */

/* ── Container: brings its own dark background ── */
.aisq {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 5%;
  background: #0a0914;
  color: #f0e4cc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Card ── */
.aisq-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2.2rem;
  border-radius: 2px;
}
@media (max-width: 600px) {
  .aisq-card { padding: 1.8rem 1.2rem; }
}

/* ── Eyebrow ── */
.aisq-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 1rem;
}

/* ── Title ── */
.aisq-title,
.aisq h2.aisq-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  font-weight: 400 !important;
  color: #f0e4cc !important;
  line-height: 1.25 !important;
  margin: 0 0 1rem !important;
}

/* ── Description ── */
.aisq-desc {
  font-size: 0.95rem;
  color: rgba(240,228,204,0.5);
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* ── Meta ── */
.aisq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.aisq-meta-item {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(240,228,204,0.45);
}

/* ── Start / Submit button ── */
.aisq-btn-start,
a.aisq-btn-start,
a.aisq-btn-start:visited,
a.aisq-btn-start:hover {
  display: block;
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 1rem 2rem !important;
  background: #ff6b2b !important;
  color: #0a0914 !important;
  border: none !important;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.aisq-btn-start:hover {
  background: #ff8a50;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,107,43,0.3);
}

.aisq-note {
  font-size: 0.78rem;
  color: rgba(240,228,204,0.25);
  text-align: center;
  margin-top: 1rem;
}

/* ── Progress bar ── */
.aisq-progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 2rem;
  border-radius: 2px;
  overflow: hidden;
}
.aisq-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #d4a844);
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
  border-radius: 2px;
}

/* ── Question header ── */
.aisq-qhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aisq-qnum {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d4a844;
}
.aisq-qdim {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: rgba(240,228,204,0.3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Question text ── */
.aisq-qtext,
.aisq h3,
.aisq h2,
.aisq h3.aisq-qtext {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #f0e4cc !important;
  line-height: 1.6 !important;
  margin: 0 0 0.5rem !important;
}
.aisq-multi-hint {
  font-size: 0.78rem;
  color: rgba(0,212,255,0.5);
  font-style: italic;
  margin: 0 0 1.2rem;
}

/* ── Options — FULL WIDTH, TEXT WRAPS ── */
.aisq-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.aisq-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  color: rgba(240,228,204,0.65);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.aisq-option:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #f0e4cc;
}
.aisq-option.selected {
  background: rgba(212,168,68,0.08);
  border-color: rgba(212,168,68,0.35);
  color: #f0e4cc;
}
.aisq-option-marker {
  flex-shrink: 0;
  font-size: 0.85rem;
  width: 1.2rem;
  text-align: center;
  color: rgba(240,228,204,0.25);
  padding-top: 0.05rem;
}
.aisq-option.selected .aisq-option-marker {
  color: #d4a844;
}
.aisq-option-text {
  flex: 1;
  min-width: 0;
}

/* ── Navigation ── */
.aisq-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.aisq-btn-back {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  color: rgba(240,228,204,0.45);
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  padding: 0.7rem 1.2rem;
  transition: all 0.2s ease;
}
.aisq-btn-back:hover {
  color: #f0e4cc;
  border-color: rgba(255,255,255,0.2);
}
.aisq-btn-next {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  background: #d4a844;
  color: #0a0914;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.aisq-btn-next:hover {
  background: #ffd700;
  transform: translateY(-1px);
}
.aisq-btn-next.disabled {
  background: rgba(212,168,68,0.15);
  color: rgba(10,9,20,0.3);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* ── Email Capture form ── */
.aisq-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.aisq-field label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,228,204,0.35);
  display: block;
  margin-bottom: 0.3rem;
}
.aisq-field input {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  color: #f0e4cc;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.aisq-field input:focus { border-color: #d4a844; }
.aisq-field input::placeholder { color: rgba(240,228,204,0.2); }
.aisq-error {
  font-size: 0.82rem;
  color: #ff3366;
  text-align: center;
  min-height: 1.2rem;
  margin-top: 0.5rem;
}

/* ── Loading ── */
.aisq-loading {
  text-align: center;
  padding: 4rem 2rem;
}
.aisq-loading p {
  color: rgba(240,228,204,0.4);
  font-size: 0.92rem;
  margin-top: 1.5rem;
}
.aisq-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: #d4a844;
  border-radius: 50%;
  margin: 0 auto;
  animation: aisqSpin 0.8s linear infinite;
}
@keyframes aisqSpin { to { transform: rotate(360deg); } }

/* ── Results ── */
.aisq-results { text-align: center; }

.aisq-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 1.5rem auto;
}
.aisq-score-ring svg { width: 100%; height: 100%; }
.aisq-score-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.4rem;
  color: #d4a844;
}
.aisq-score-num span {
  font-size: 1rem;
  color: rgba(240,228,204,0.4);
}
.aisq-score-detail {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: rgba(240,228,204,0.35);
  margin-bottom: 2rem;
}

/* Level card */
.aisq-level-card {
  background: rgba(212,168,68,0.06);
  border: 1px solid rgba(212,168,68,0.15);
  border-radius: 2px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  text-align: left;
}
.aisq-level-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4a844;
  margin-bottom: 0.5rem;
}
.aisq-level-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  color: #d4a844;
  margin-bottom: 0.8rem;
}
.aisq-level-msg {
  font-size: 0.92rem;
  color: rgba(240,228,204,0.55);
  line-height: 1.75;
  margin: 0;
}

/* Dimension bars */
.aisq-dims {
  text-align: left;
  margin-bottom: 2rem;
}
.aisq-dims-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 1rem;
}
.aisq-dim-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}
.aisq-dim-label {
  font-size: 0.82rem;
  color: rgba(240,228,204,0.6);
  min-width: 140px;
  flex-shrink: 0;
}
.aisq-dim-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.aisq-dim-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #d4a844);
  border-radius: 3px;
  transition: width 1s ease;
}
.aisq-dim-pct {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: rgba(240,228,204,0.4);
  min-width: 2.5rem;
  text-align: right;
}
@media (max-width: 500px) {
  .aisq-dim-row { flex-wrap: wrap; gap: 0.4rem; }
  .aisq-dim-label { min-width: 100%; font-size: 0.78rem; }
  .aisq-dim-pct { min-width: auto; }
}

/* Results CTA */
.aisq-results-cta {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.aisq-results-cta p {
  font-size: 0.92rem;
  color: rgba(240,228,204,0.45);
  margin: 0 0 1rem;
}
.aisq-results-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: rgba(240,228,204,0.2);
  margin-top: 0.8rem;
}
.aisq-email-note {
  font-size: 0.78rem;
  color: rgba(240,228,204,0.25);
  margin-top: 1.5rem;
}

/* ── Honesty reflection note ── */
.aisq-honesty-note {
  background: rgba(255,107,43,0.06);
  border: 1px solid rgba(255,107,43,0.15);
  border-radius: 2px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.aisq-honesty-note p {
  font-size: 0.88rem;
  color: rgba(240,228,204,0.55);
  line-height: 1.7;
  margin: 0;
}

/* ── Role toggle (Student / Professional) ── */
.aisq-role-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
@media (max-width: 500px) {
  .aisq-role-toggle { flex-direction: column; }
}
.aisq-role-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: rgba(240,228,204,0.55);
}
.aisq-role-option:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #f0e4cc;
}
.aisq-role-option input[type="radio"] {
  accent-color: #d4a844;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.aisq-role-option input[type="radio"]:checked + span {
  color: #f0e4cc;
}
.aisq-role-option:has(input:checked) {
  background: rgba(212,168,68,0.08);
  border-color: rgba(212,168,68,0.3);
}

/* ── Course dropdown ── */
.aisq-field select {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  color: #f0e4cc;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d4a844' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border-color 0.2s ease;
  cursor: pointer;
}
.aisq-field select:focus {
  border-color: #d4a844;
}
.aisq-field select option {
  background: #0a0914;
  color: #f0e4cc;
}

/* ═══ Business Assessment Additions ═══ */

/* ── Business type grid ── */
.aisq-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
@media (max-width: 500px) {
  .aisq-biz-grid { grid-template-columns: 1fr; }
}
.aisq-biz-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.aisq-biz-card:hover {
  background: rgba(212,168,68,0.06);
  border-color: rgba(212,168,68,0.25);
  transform: translateY(-2px);
}
.aisq-biz-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.aisq-biz-label {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #f0e4cc !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.aisq-biz-desc {
  font-size: 0.78rem;
  color: rgba(240,228,204,0.35);
  margin-top: 0.15rem;
}

/* ── Starting point card (results) ── */
.aisq-start-point {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 2px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.aisq-start-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 0.5rem;
}
.aisq-start-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 1.3rem !important;
  color: #00d4ff !important;
  margin-bottom: 0.8rem;
}
.aisq-start-desc {
  font-size: 0.9rem;
  color: rgba(240,228,204,0.5);
  line-height: 1.7;
  margin: 0;
}