/* ============================================
   GROWTH LAB CO — Assessment Styles
   ============================================ */

.assessment-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
.assess-nav {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.assess-nav .container {
  display: flex;
  align-items: center;
}

/* ── Main layout ── */
.assess-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
  position: relative;
}

/* ── Progress ── */
.progress-bar-wrap {
  width: min(700px, 100%);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar {
  height: 4px;
  background: rgba(160,112,248,0.15);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--progress, 0%);
  background: var(--gradient);
  border-radius: 100px;
  transition: width 0.45s ease;
}

.progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Screen switching ── */
.assess-screen { width: 100%; display: flex; justify-content: center; }
.assess-screen.hidden { display: none; }

/* ── Card ── */
.assess-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: min(700px, 100%);
  box-shadow: var(--card-shadow);
  animation: fadeUp 0.45s ease both;
}

/* ── Question ── */
.assess-q-num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.assess-q-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  color: var(--text);
}

/* ── Options ── */
.assess-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  min-height: 44px;
  width: 100%;
}

.option-btn:hover {
  border-color: rgba(160,112,248,0.45);
  background: rgba(160,112,248,0.07);
  color: var(--text);
  transform: translateX(3px);
}

.option-btn.selected {
  border-color: var(--accent);
  background: rgba(160,112,248,0.12);
  color: var(--text);
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(160,112,248,0.12);
  border: 1px solid rgba(160,112,248,0.2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
}

.option-btn.selected .option-letter {
  background: var(--accent-text);
  border-color: var(--accent-text);
  color: #fff;
}

/* ── Nav buttons ── */
.assess-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#btnNext { margin-left: auto; }
#btnBack:disabled { opacity: 0.3; cursor: not-allowed; }
#btnBack:disabled:hover { transform: none; box-shadow: none; }

/* ── Gate form ── */
.gate-card { text-align: left; }
.gate-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent); }
.gate-card h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text);
}
.gate-sub { font-size: 1rem; color: var(--text-body); margin-bottom: 2rem; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
}

.required { color: var(--accent-text); }

.form-group input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160,112,248,0.15);
}
.form-group input.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.15);
}

.form-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fca5a5;
  margin-bottom: 1rem;
}
.form-error.hidden { display: none; }

#btnSubmit { width: 100%; justify-content: center; margin-bottom: 0.75rem; }

.gate-note { font-size: 0.8125rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* ── Slide transition ── */
.slide-out {
  animation: slideOut 0.35s ease forwards;
}
.slide-in {
  animation: slideIn 0.35s ease forwards;
}

@keyframes slideOut {
  to { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Results ── */
.results-card {
  text-align: center;
  max-width: 640px;
}

.score-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
}

.score-ring {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.score-ring__bg {
  fill: none;
  stroke: rgba(160,112,248,0.1);
  stroke-width: 10;
}

.score-ring__fill {
  fill: none;
  stroke: url(#scoreGradDef);
  stroke-width: 10;
  stroke-linecap: round;
  /* circumference of r=88: 2π×88 = 552.9 */
  stroke-dasharray: 552.9;
  stroke-dashoffset: 552.9;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22,1,0.36,1);
}

.score-ring__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.score-ring__number {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.score-display {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.score-denom {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 700;
  padding-bottom: 4px;
}

.score-ring__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

.results-headline {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.results-message {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(160,112,248,0.05);
  border: 1px solid rgba(160,112,248,0.18);
  border-radius: var(--radius);
  text-align: left;
}

.results-insights {
  text-align: left;
  margin-bottom: 2.5rem;
}

.insights-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.insights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insights-list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.insights-list li::before {
  content: '→';
  color: var(--accent-text);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.results-cta {
  background: rgba(160,112,248,0.06);
  border: 1px solid rgba(160,112,248,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.results-cta h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.results-cta p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.results-cta .btn {
  display: inline-flex;
  width: auto;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .assess-card { padding: 1.75rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .assess-nav-btns { flex-direction: column; }
  .assess-nav-btns .btn { width: 100%; justify-content: center; }
  #btnNext { margin-left: 0; }
  .results-cta .btn { width: 100%; justify-content: center; }
}
