/* ===================================================================
   KnowledgeShare — Diagnóstico de Maturidade (wizard HDI/DMM)
   Reutiliza as variáveis de styles.css (--navy, --cyan, etc.)
   =================================================================== */

body { background: var(--navy-900); }

/* ---- Intro ---- */
.assess-intro {
  background: radial-gradient(1000px 500px at 80% -20%, rgba(41,194,214,.14), transparent 60%), var(--navy-900);
  color: #fff; padding: 60px 0 44px; text-align: center;
}
.assess-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 14px; }
.assess-intro .lead { color: #c1cfdf; font-size: 1.06rem; max-width: 640px; margin: 0 auto; }
.intro-meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.intro-meta span { color: #9db0c6; font-size: .95rem; font-weight: 500; }
.intro-actions { margin-top: 30px; }
.intro-hint { color: #7f93ab; font-size: .88rem; margin-top: 18px; }
.intro-hint strong { color: var(--cyan-bright); }

/* ---- Progresso fixo ---- */
.progress-bar { position: sticky; top: 72px; z-index: 40; background: rgba(13,27,52,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.progress-inner { display: flex; align-items: center; gap: 16px; }
.progress-track { flex: 1; height: 8px; background: rgba(255,255,255,.10); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .35s ease; }
.progress-label { color: #c1cfdf; font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* ---- Wizard ---- */
.assess-main { padding: 34px 24px 90px; }
.assess-loading { color: #9db0c6; text-align: center; padding: 60px 0; font-size: 1.05rem; }

.step-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.step-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan-bright); margin-bottom: 8px; }
.step-head h2 { color: #fff; font-family: 'Sora', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.step-sub { color: #9db0c6; font-size: .96rem; margin-top: 6px; }

/* ---- Dimensão ---- */
.dimension { margin-bottom: 26px; padding: 22px; background: rgba(18,34,64,.5);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.dimension.missing { border-color: #d98a3a; box-shadow: 0 0 0 2px rgba(217,138,58,.25); }
.dim-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.dim-idx { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: var(--grad);
  display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: #fff; margin-top: 2px; }
.dim-head h4 { color: #fff; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.dim-desc { color: #9db0c6; font-size: .92rem; line-height: 1.5; margin: 0 0 14px 38px; }

.options { display: grid; gap: 9px; }
.option { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; background: var(--navy-800);
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; transition: border-color .16s, background .16s; }
.option:hover { border-color: rgba(41,194,214,.45); background: var(--navy-700); }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option .lvl { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; color: #b8c6d8; background: rgba(255,255,255,.06);
  border: 1px solid #3a4d6b; transition: all .16s; }
.option .opt-text { color: #c8d5e4; font-size: .95rem; line-height: 1.45; }
.option.selected { border-color: var(--cyan); background: rgba(41,194,214,.10); }
.option.selected .lvl { background: var(--grad); color: #fff; border-color: transparent; }
.option.selected .opt-text { color: #fff; }
.lvl-0 { font-style: normal; }

/* ---- Campos de contato ---- */
.contact-fields { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 8px;
  background: rgba(18,34,64,.5); margin-bottom: 8px; }
.contact-fields legend { color: #fff; font-weight: 600; padding: 0 8px; font-size: 1.05rem; }
.contact-fields legend em { color: #93a6bd; font-weight: 400; font-style: normal; }
.cf-note { color: #9db0c6; font-size: .92rem; margin-bottom: 16px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-grid .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cf-grid label { font-size: .84rem; font-weight: 600; color: #c1cfdf; }
.cf-grid input { font-family: inherit; font-size: .96rem; color: #fff; padding: 11px 14px;
  border: 1px solid #2a3d5c; border-radius: 10px; background: #0e1c34; }
.cf-grid input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,194,214,.18); }
.cf-grid .field.missing input { border-color: #d98a3a; box-shadow: 0 0 0 3px rgba(217,138,58,.22); }
.req { color: #ff9d9d; }

/* ---- Navegação do wizard ---- */
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-counter { color: #9db0c6; font-size: .9rem; font-weight: 600; }
.form-status { margin-top: 14px; text-align: center; font-weight: 600; min-height: 1em; }

/* ---- Painéis de aviso (e-mail enviado / erro) ---- */
.notice-panel { text-align: center; max-width: 620px; margin: 30px auto; padding: 40px 28px;
  background: rgba(18,34,64,.5); border: 1px solid var(--line); border-radius: var(--radius); color: #fff; }
.notice-icon { font-size: 44px; margin-bottom: 10px; }
.notice-panel h2 { font-family: 'Sora', sans-serif; font-size: 1.6rem; margin-bottom: 12px; }
.notice-panel p { color: #c1cfdf; font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }
.notice-panel .btn { margin-top: 6px; }
.dev-link { background: rgba(41,194,214,.08); border: 1px dashed rgba(41,194,214,.5); border-radius: 10px;
  padding: 14px 16px; font-size: .95rem; color: #c8d5e4; }
.dev-link a { color: var(--cyan-bright); font-weight: 600; word-break: break-all; }

/* ---- Resultado ---- */
.result { padding: 70px 0 90px; color: #fff; }
.result-head { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.result-badge { width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; background: var(--grad);
  display: grid; place-items: center; text-align: center; box-shadow: 0 18px 45px rgba(41,194,214,.30); line-height: 1.1; }
.result-level { display: block; font-family: 'Sora', sans-serif; font-size: 4rem; font-weight: 800; color: #fff; }
.result-of { font-size: .78rem; color: rgba(255,255,255,.9); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.result-headtext .kicker { color: var(--cyan-bright); }
.result-headtext h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.result-tagline { color: var(--cyan-bright); font-weight: 600; font-size: 1.1rem; }
.result-score { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; margin-top: 6px; }
.result-score small { color: #93a6bd; font-size: 1rem; font-weight: 400; }
.result-desc { color: #c8d5e4; font-size: 1.1rem; line-height: 1.6; margin: 30px 0; max-width: 820px; }
.result-reco { background: var(--navy-800); border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  border-radius: 12px; padding: 20px 24px; margin-bottom: 44px; }
.result-reco strong { color: var(--cyan-bright); display: block; margin-bottom: 6px; font-size: .95rem; }
.result-reco p { color: #d4dfec; }
.result-subtitle { font-family: 'Sora', sans-serif; font-size: 1.3rem; margin-bottom: 20px; }
.dim-list { display: grid; gap: 14px; margin-bottom: 50px; }
.dim-row { display: grid; grid-template-columns: 300px 1fr auto; align-items: center; gap: 16px; }
.dim-name { color: #d4dfec; font-weight: 600; font-size: .96rem; }
.dim-name small { color: #7f93ab; font-weight: 400; }
.dim-bar-track { height: 12px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.dim-bar-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .8s ease; }
.dim-level { color: #9db0c6; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.result-cta { text-align: center; padding: 36px; background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius); }
.result-cta p { font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }
.result-cta .btn { margin: 0 6px; }

@media (max-width: 700px) {
  .cf-grid { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 1fr; gap: 6px; }
  .dim-level { justify-self: start; }
  .progress-bar { top: 64px; }
  .wizard-nav { flex-wrap: wrap; }
  .step-counter { order: 3; width: 100%; text-align: center; }
}
