/* Digital maturity test modal. Uses the site palette: navy, red, white and soft gray. */
.mt-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; box-sizing: border-box; background: rgba(16,29,45,.6); }
.mt-overlay[hidden] { display: none; }
body.mt-lock { overflow: hidden; }
.mt-dialog { box-sizing: border-box; min-width: 0; width: min(680px, 100%); max-height: min(94dvh, 760px); display: flex; flex-direction: column; background: #ffffff; color: #171d25; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); overflow: hidden; font-family: inherit; }
.mt-dialog:focus { outline: none; }
.mt-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid #eef0f3; }
.mt-overlay .mt-title { margin: 0; max-width: none; font-size: 22px; line-height: 1.2; letter-spacing: 0; font-weight: 800; color: #101d2d; }
.mt-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 9999px; background: #f2f3f5; color: #101d2d; font-size: 22px; line-height: 1; cursor: pointer; }
.mt-x:hover { background: #e32936; color: #ffffff; }
.mt-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px; }
.mt-lead { margin: 0 0 18px; color: #4b5563; font-size: 16px; line-height: 1.6; }
.mt-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.mt-metrics li { padding: 8px 14px; border-radius: 9999px; background: #f2f3f5; color: #101d2d; font-size: 13px; font-weight: 600; }
.mt-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.mt-split { justify-content: space-between; }
.mt-primary, .mt-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; border-radius: 9999px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer; border: 0; }
.mt-primary { background: #e32936; color: #ffffff; }
.mt-primary:hover { background: #980009; }
.mt-primary:disabled { opacity: .45; cursor: not-allowed; }
.mt-ghost { background: transparent; color: #101d2d; border: 1px solid #dfe3e8; }
.mt-ghost:hover { border-color: #e32936; color: #e32936; }
.mt-ghost:disabled { opacity: .4; cursor: not-allowed; }
.mt-progress-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.mt-progress { height: 6px; border-radius: 9999px; background: #eef0f3; overflow: hidden; }
.mt-progress span { display: block; height: 100%; background: #e32936; transition: width .25s ease; }
.mt-dim { margin: 22px 0 6px; font-size: 13px; font-weight: 700; color: #e32936; }
.mt-overlay .mt-question { margin: 0 0 18px; max-width: none; font-size: 19px; line-height: 1.35; letter-spacing: 0; color: #101d2d; }
.mt-options { display: grid; gap: 8px; }
.mt-opt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; width: 100%; text-align: left; padding: 10px 14px; border: 1px solid #dfe3e8; border-radius: 12px; background: #ffffff; color: #171d25; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.mt-opt:hover { border-color: #101d2d; }
.mt-opt[aria-pressed="true"] { border-color: #e32936; background: #fff5f5; box-shadow: inset 3px 0 0 #e32936; }
.mt-opt-label { font-size: 15px; font-weight: 700; color: #101d2d; }
.mt-opt-desc { font-size: 13.5px; color: #4b5563; line-height: 1.4; }
.mt-summary { text-align: center; padding: 8px 0 24px; }
.mt-overall-label { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.mt-overall { margin: 6px 0 10px; font-size: 56px; line-height: 1; font-weight: 800; color: #101d2d; }
.mt-level { display: inline-block; padding: 7px 16px; border-radius: 9999px; background: #101d2d; color: #ffffff; font-size: 13px; font-weight: 700; }
.mt-rows { display: grid; gap: 16px; }
.mt-row { display: grid; gap: 6px; }
.mt-row-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mt-row-name { font-weight: 700; color: #101d2d; }
.mt-row-score { font-weight: 700; color: #101d2d; }
.mt-bar { height: 8px; border-radius: 9999px; background: #eef0f3; overflow: hidden; }
.mt-bar span { display: block; height: 100%; background: #101d2d; border-radius: 9999px; }
.mt-row-level { font-size: 12.5px; color: #6b7280; }
.mt-note { margin: 22px 0 0; font-size: 12.5px; color: #6b7280; line-height: 1.5; }
.mt-link { text-decoration: none; }
.mt-company { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #e32936; }
.mt-form { display: flex; flex-direction: column; gap: 12px; }
.mt-fields { display: grid; gap: 10px; }
.mt-field { display: grid; gap: 4px; }
.mt-field label { font-size: 13px; font-weight: 600; color: #101d2d; }
.mt-field input { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; color: #101d2d; background: #fff; }
.mt-field input:focus-visible { outline: 3px solid #e32936; outline-offset: 1px; }
.mt-field input[aria-invalid="true"] { border-color: #e32936; }
.mt-field-error { margin: 0; font-size: 12px; color: #980009; }
.mt-ai { margin-top: 22px; padding: 18px; border-radius: 12px; background: #f7f8fa; border: 1px solid #eef0f3; }
.mt-ai-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e32936; }
.mt-ai-text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: #171d25; }
.mt-ai-sub { margin: 16px 0 8px; font-size: 14px; font-weight: 800; color: #101d2d; }
.mt-ai-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mt-ai-list li { font-size: 13.5px; line-height: 1.5; color: #4b5563; }
.mt-ai-list strong { color: #101d2d; }
.mt-ai-horizon { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 9999px; background: #101d2d; color: #ffffff; font-size: 11px; font-weight: 700; }
.mt-ai-board { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #e32936; background: #ffffff; color: #101d2d; font-size: 14px; line-height: 1.5; }
.mt-ai-loading { display: flex; align-items: center; gap: 12px; }
.mt-ai-loading .mt-ai-text { margin: 0; }
.mt-spinner { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #eef0f3; border-top-color: #e32936; animation: mt-spin .8s linear infinite; }
@media (max-width: 639px) {
  .mt-overlay { padding: 0; display: flex; }
  .mt-dialog { width: 100%; max-width: 100vw; height: 100%; min-height: 0; max-height: none; border-radius: 0; }
  .mt-overlay .mt-dialog .mt-head { padding: 12px 16px; }
  .mt-overlay .mt-dialog .mt-title { font-size: 18px; line-height: 1.2; }
  .mt-overlay .mt-dialog .mt-x { width: 32px; height: 32px; font-size: 20px; }
  .mt-body.mt-step { overflow: hidden; padding: 14px 16px 16px; }
  .mt-body.mt-step .mt-options { max-height: max(200px, calc(100dvh - 300px)); overflow-y: auto; }
  .mt-body.mt-step .mt-progress-label { margin-bottom: 6px; }
  .mt-body.mt-step .mt-dim { margin: 12px 0 2px; font-size: 12px; }
  .mt-overlay .mt-dialog .mt-question { font-size: 16px; line-height: 1.3; margin-bottom: 10px; }
  .mt-body.mt-step .mt-options { gap: 8px; }
  .mt-body.mt-step .mt-opt { padding: 9px 12px; }
  .mt-body.mt-step .mt-opt-label { font-size: 14px; }
  .mt-body.mt-step .mt-opt-desc { font-size: 12px; line-height: 1.3; }
  .mt-body.mt-step .mt-actions { margin-top: 14px; }
  .mt-body.mt-scroll { padding: 14px 16px; }
  .mt-body.mt-scroll .mt-summary { padding: 0 0 14px; }
  .mt-body.mt-scroll .mt-overall { font-size: 40px; margin: 2px 0 6px; }
  .mt-body.mt-scroll .mt-rows { gap: 10px; }
  .mt-body.mt-scroll .mt-row-level { display: none; }
  .mt-body.mt-scroll .mt-note { margin-top: 14px; }
  .mt-body.mt-scroll .mt-actions { margin-top: 16px; }
  .mt-split { flex-direction: row; gap: 10px; }
  .mt-split > * { flex: 1 1 0; width: auto; min-width: 0; padding-inline: 12px; }
}
.mt-processing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 340px; text-align: center; }
.mt-loader { position: relative; width: 104px; height: 104px; }
.mt-ring { position: absolute; border-radius: 50%; border: 3px solid transparent; }
.mt-ring-1 { inset: 0; border-top-color: #e32936; border-right-color: rgba(227,41,54,.18); animation: mt-spin 1.1s linear infinite; }
.mt-ring-2 { inset: 14px; border-left-color: #101d2d; border-bottom-color: rgba(16,29,45,.18); animation: mt-spin-rev 1.6s linear infinite; }
.mt-ring-3 { inset: 28px; border-top-color: #e32936; animation: mt-spin .8s linear infinite; }
.mt-core { position: absolute; inset: 42px; border-radius: 50%; background: #101d2d; animation: mt-pulse 1.4s ease-in-out infinite; }
.mt-proc-text { margin: 0; min-height: 1.4em; font-size: 16px; font-weight: 700; color: #101d2d; }
.mt-track { width: 220px; max-width: 100%; height: 4px; border-radius: 9999px; background: #eef0f3; overflow: hidden; position: relative; }
.mt-sweep { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 9999px; background: linear-gradient(90deg, transparent, #e32936, transparent); animation: mt-sweep 1.4s ease-in-out infinite; }
@keyframes mt-spin { to { transform: rotate(360deg); } }
@keyframes mt-spin-rev { to { transform: rotate(-360deg); } }
@keyframes mt-pulse { 0%, 100% { transform: scale(.82); opacity: .65; } 50% { transform: scale(1); opacity: 1; } }
@keyframes mt-sweep { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .mt-progress span { transition: none; }
  .mt-ring, .mt-core, .mt-sweep, .mt-spinner { animation: none; }
  .mt-sweep { left: 30%; }
}

/* Result visuals: radar, level-coloured bars and indicator cards (ported from the test app). */
.mt-overview { display: grid; gap: 18px; align-items: center; margin-top: 4px; }
.mt-radar-wrap { min-width: 0; }
.mt-radar { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.mt-radar-ring { fill: none; stroke: #e5e7eb; stroke-width: 1; }
.mt-radar-axis { stroke: #e5e7eb; stroke-width: 1; }
.mt-radar-shape { fill: rgba(227, 41, 54, .12); stroke: #e32936; stroke-width: 2; }
.mt-radar-dot { stroke: #ffffff; stroke-width: 2; }
.mt-radar-label { font-family: Raleway, Arial, sans-serif; font-size: 13px; font-weight: 600; fill: #4b5563; }
.mt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.mt-kpi { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; background: #f8f9fb; min-width: 0; }
.mt-kpi strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.mt-kpi span { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: #101d2d; overflow-wrap: anywhere; }

.mt-question:focus { outline: none; }
