/**
 * FLiiP — AI Readiness questionnaire page styles
 * Extends /assessment/assessment.css and /partnerships/partnerships.css
 * with wizard + score card components. Loaded last.
 */

/* ══════════════════════════════════════════════════════════════
   WIZARD — multi-step form
═══════════════════════════════════════════════════════════════ */

/* ─── Progress bar (top of the form card) ─── */
.air-progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}
.air-progress-track {
  flex: 1;
  height: 6px;
  background: #EEF3F7;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.air-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 0 0 rgba(11, 131, 250, 0.3);
}
.air-progress-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6A7177;
  letter-spacing: 0.04em;
  min-width: 54px;
  text-align: right;
  white-space: nowrap;
}

/* ─── Step container ─── */
.air-steps {
  display: block;
}
.air-step {
  display: block;
  animation: air-step-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.air-step[hidden] { display: none; }

@keyframes air-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Step header (category chip + title + sub) ─── */
.air-step-head {
  margin-bottom: 1.1rem;
}
.air-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1568BA;
  background: rgba(11, 131, 250, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.air-cat-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0B83FA;
  box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.18);
}
.air-cat-tag-systems    { color: #1568BA; background: rgba(11, 131, 250, 0.08); }
.air-cat-tag-systems::before    { background: #0B83FA; box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.18); }
.air-cat-tag-team       { color: #0E7A62; background: rgba(16, 163, 127, 0.08); }
.air-cat-tag-team::before       { background: #10A37F; box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.18); }
.air-cat-tag-operations { color: #B85510; background: rgba(247, 107, 21, 0.08); }
.air-cat-tag-operations::before { background: #F76B15; box-shadow: 0 0 0 3px rgba(247, 107, 21, 0.2); }
.air-cat-tag-experience { color: #7E22CE; background: rgba(168, 85, 247, 0.08); }
.air-cat-tag-experience::before { background: #A855F7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18); }
.air-cat-tag-strategy   { color: #B53574; background: rgba(224, 71, 123, 0.08); }
.air-cat-tag-strategy::before   { background: #E0477B; box-shadow: 0 0 0 3px rgba(224, 71, 123, 0.18); }

.air-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0A1220;
  margin: 0 0 0.3rem;
  line-height: 1.25;
}
.air-step-sub {
  font-size: 0.92rem;
  color: #6A7177;
  line-height: 1.5;
  margin: 0;
}

/* ─── Question blocks ─── */
.air-questions {
  display: grid;
  gap: 1.1rem;
}
.air-q {
  padding: 1.05rem 1.1rem;
  background: #FAFBFC;
  border: 1px solid #EEF3F7;
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.air-q.is-invalid {
  border-color: #E5484D;
  background: #FEF2F2;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.08);
}
.air-q-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: #161719;
  line-height: 1.4;
  margin: 0 0 0.3rem;
}
.air-q-help {
  font-size: 0.82rem;
  color: #6A7177;
  line-height: 1.5;
  margin: 0 0 0.8rem;
}

/* ─── Radio-card options ─── */
.air-opts {
  display: grid;
  gap: 0.5rem;
}
.air-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: #ffffff;
  border: 1.5px solid #E5EAF0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.air-opt:hover {
  border-color: #CFD6DE;
  background: #FAFBFC;
}
.air-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.air-opt-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CFD6DE;
  background: #ffffff;
  margin-top: 0.12rem;
  position: relative;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.air-opt-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.air-opt-label {
  flex: 1;
  min-width: 0;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1F2933;
}
.air-opt:hover .air-opt-dot { border-color: #9AA4B0; }
.air-opt input[type="radio"]:checked + .air-opt-dot {
  border-color: #0B83FA;
  box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.15);
}
.air-opt input[type="radio"]:checked + .air-opt-dot::after {
  background: linear-gradient(135deg, #1FBEFC 0%, #0B83FA 100%);
}
.air-opt:has(input[type="radio"]:checked) {
  border-color: rgba(11, 131, 250, 0.5);
  background: rgba(11, 131, 250, 0.04);
}
.air-opt input[type="radio"]:focus-visible + .air-opt-dot {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.25);
  border-color: #0B83FA;
}

/* ─── Wizard nav (back / next / submit) ─── */
.air-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.air-nav-left { display: flex; }
.air-nav-right { display: flex; gap: 0.5rem; }
.air-nav [hidden] { display: none !important; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  background: transparent;
  color: #1568BA;
  border: 1.5px solid rgba(11, 131, 250, 0.25);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  font-family: inherit;
}
.btn-ghost:hover {
  background: rgba(11, 131, 250, 0.06);
  border-color: rgba(11, 131, 250, 0.4);
}
.btn-ghost:active { transform: translateY(1px); }
.btn-ghost[disabled] { opacity: 0.5; cursor: not-allowed; }

.air-submit-inline {
  padding: 0.78rem 1.4rem;
  font-size: 1rem;
}

/* ─── Intro step: single column contact/meta inputs ─── */
.air-intro-grid {
  display: grid;
  gap: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════
   SCORE CARD — shown with the preview after submit
═══════════════════════════════════════════════════════════════ */

.air-score-card {
  margin-bottom: 0.85rem;
  background: #ffffff;
  border: 1px solid #EEF3F7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(11, 131, 250, 0.25);
}

/* ─── Hero: big number + tier chip ─── */
.air-score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 1.35rem 0.9rem;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(11, 131, 250, 0.08), transparent 70%),
    linear-gradient(180deg, #F6FAFF 0%, #ffffff 100%);
  border-bottom: 1px solid #EEF3F7;
  position: relative;
}
.air-score-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 100%);
}
.air-score-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  color: #0A1220;
  line-height: 1;
}
.air-score-number {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0B83FA 0%, #1568BA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.air-score-max {
  font-size: 0.95rem;
  font-weight: 700;
  color: #9AA4B0;
  letter-spacing: -0.01em;
}
.air-score-meta {
  min-width: 0;
  display: grid;
  gap: 0.4rem;
}
.air-score-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6A7177;
  margin: 0;
}
.air-score-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  align-self: flex-start;
  justify-self: flex-start;
  width: fit-content;
  border: 1px solid;
}
.air-score-tier::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.air-score-blurb {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3A3D40;
  margin: 0;
}

/* ─── Tier themes ─── */
.air-tier-starting {
  color: #B85510;
  background: rgba(247, 107, 21, 0.08);
  border-color: rgba(247, 107, 21, 0.24);
}
.air-tier-exploring {
  color: #B58410;
  background: rgba(247, 181, 21, 0.08);
  border-color: rgba(247, 181, 21, 0.26);
}
.air-tier-adopting {
  color: #1568BA;
  background: rgba(11, 131, 250, 0.08);
  border-color: rgba(11, 131, 250, 0.22);
}
.air-tier-leading {
  color: #0E7A62;
  background: rgba(16, 163, 127, 0.08);
  border-color: rgba(16, 163, 127, 0.24);
}

/* ─── Category bars ─── */
.air-score-bars {
  padding: 0.9rem 1.35rem 1.05rem;
  display: grid;
  gap: 0.55rem;
}
.air-score-bars-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6A7177;
  margin: 0 0 0.25rem;
}
.air-score-row {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.air-score-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.air-score-row-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1F2933;
  line-height: 1.25;
  min-width: 0;
  flex: 1 1 auto;
}
.air-score-row-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1F2933;
  text-align: right;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.air-score-row-val::after {
  content: " / 100";
  font-size: 0.72rem;
  font-weight: 500;
  color: #9AA4B0;
}
.air-score-bar {
  height: 8px;
  background: #EEF3F7;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
}
.air-score-bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1FBEFC 0%, #0B83FA 100%);
  animation: air-bar-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: left center;
}

@keyframes air-bar-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─── First move (preview standout block) ─── */
.air-first-move {
  background: linear-gradient(135deg, rgba(11, 131, 250, 0.05) 0%, rgba(31, 190, 252, 0.07) 100%);
  border: 1px solid rgba(11, 131, 250, 0.18);
  border-left: 4px solid #0B83FA;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}
.air-first-move-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1568BA;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.air-first-move-label::before {
  content: "→";
  font-size: 0.9rem;
  font-weight: 800;
}
.air-first-move-body {
  font-size: 0.94rem;
  color: #1F2933;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   PREVIEW CARD (ai-readiness scoped tighter overrides)
═══════════════════════════════════════════════════════════════ */

/* Keep the initial preview tight so the score card + preview fits
   above the fold on typical laptops (without affecting assessment). */
#af-result .af-preview-card {
  padding: 0.9rem 1rem;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
#af-result .af-preview-summary {
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0 0 0.6rem;
}
#af-result .af-preview-group {
  gap: 0.4rem;
}
#af-result .af-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.58rem;
}
#af-result .air-first-move {
  padding: 0.7rem 0.85rem;
  gap: 0.25rem;
}
#af-result .air-first-move-body {
  font-size: 0.88rem;
  line-height: 1.45;
}
#af-result .af-result-head {
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   REPORT — wider container so 3-column sections can breathe
═══════════════════════════════════════════════════════════════ */

/* Only applies on ai-readiness pages since this stylesheet is only
   loaded here. Default .report-wrap is 920px, which makes a 3-column
   roadmap feel cramped (each col ~275px). 1060px gives each column
   ~325px and still feels intentionally narrow on very wide screens. */
.report-page .report-wrap {
  max-width: 1060px;
}

/* NOTE: adaptive grid layouts (.pp-cat-grid--n*) and the responsive
   roadmap (.pp-plan) rules live in /partnerships/partnerships.css so
   both the AI readiness report and the partnership playbook share
   the same anti-orphan behaviour. */

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .air-step-title { font-size: 1.1rem; }
  .air-q { padding: 0.9rem 0.95rem; }
  .air-opt { padding: 0.7rem 0.85rem; }
  .air-nav { flex-direction: column-reverse; align-items: stretch; gap: 0.55rem; }
  .air-nav-right { flex-direction: column-reverse; }
  .air-nav .btn-ghost,
  .air-nav .btn,
  .air-nav .air-submit-inline {
    width: 100%;
    justify-content: center;
  }
  .air-score-hero {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 1.1rem 0.9rem;
  }
  .air-score-bars { padding: 0.85rem 1.1rem 1.05rem; }
}
