/* Free self-assessment popup — 3-step wizard + results */
.asx[hidden] { display: none; }
.asx { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 20px; font-family: var(--sans, Inter, system-ui, sans-serif); }
.asx-backdrop { position: absolute; inset: 0; background: rgba(12,9,36,.66); backdrop-filter: blur(6px); animation: asxFade .2s ease; }
.asx-dialog { position: relative; width: min(1040px, 100%); height: min(680px, calc(100vh - 40px)); display: grid; grid-template-columns: 330px 1fr; background: #fff;
  border-radius: 26px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(12,9,36,.75); color: #1E1A4D; animation: asxUp .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes asxFade { from { opacity: 0 } }
@keyframes asxUp { from { opacity: 0; transform: translateY(22px) scale(.97) } }
.asx-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F1EEFF; color: #3B2A8C; font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; transition: background .15s, transform .15s; }
.asx-x:hover { background: #E2DBFF; transform: rotate(90deg); }

/* Left brand panel */
.asx-side { position: relative; padding: 30px 28px; color: #E4DEFF; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(90% 60% at 100% 0%, rgba(139,92,246,.55) 0%, transparent 60%), radial-gradient(80% 50% at 0% 100%, rgba(56,189,248,.28) 0%, transparent 60%), linear-gradient(160deg, #241A63 0%, #15123B 70%); }
.asx-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px); background-size: 18px 18px; mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
.asx-side > * { position: relative; z-index: 1; }
.asx-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.05rem; }
.asx-brand svg { flex: none; }
.asx-brand small { display: block; font-weight: 500; font-size: .72rem; color: #A89FE0; letter-spacing: .02em; }
.asx-side h2 { margin: 26px 0 26px; color: #fff; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.01em; }
.asx-side h2 em { font-style: italic; color: #8FE0FF; }
.asx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.asx-steps li { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; color: #9D94D6; transition: background .2s, color .2s; position: relative; }
.asx-steps li i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .82rem; border: 1.5px solid rgba(255,255,255,.2); transition: all .2s; }
.asx-steps li span { font-weight: 700; font-size: .9rem; }
.asx-steps li small { display: block; font-weight: 500; font-size: .74rem; opacity: .75; }
.asx-steps li.is-on { background: rgba(255,255,255,.1); color: #fff; }
.asx-steps li.is-on i { background: #fff; color: #3B2A8C; border-color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.asx-steps li.is-done { color: #CFC8F5; }
.asx-steps li.is-done i { background: #22C55E; border-color: #22C55E; color: #fff; font-size: 0; }
.asx-steps li.is-done i::before { content: "✓"; font-size: .85rem; }
.asx-stats { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 18px; }
.asx-stats div { padding: 10px 8px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); text-align: center; }
.asx-stats b { display: block; color: #fff; font-size: 1.05rem; }
.asx-stats small { font-size: .68rem; color: #A89FE0; }
.asx-profile { margin-top: 18px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .82rem; line-height: 1.6; }
.asx-profile[hidden] { display: none; }
.asx-profile b { color: #fff; display: block; font-size: .95rem; margin-bottom: 4px; }
.asx-profile button { margin-top: 8px; border: 0; background: none; padding: 0; color: #8FE0FF; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Right panel */
.asx-main { position: relative; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.asx-bar { position: sticky; top: 0; z-index: 2; height: 4px; background: #F1EEFF; flex: none; }
.asx-bar i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, #6C44D9, #38BDF8); border-radius: 0 4px 4px 0; transition: width .35s ease; }
.asx-form { flex: 1; display: flex; flex-direction: column; padding: 36px 44px 26px; }
.asx-form[hidden] { display: none; }
.asx-step { display: none; animation: asxIn .3s ease; }
.asx-step.is-on { display: block; }
@keyframes asxIn { from { opacity: 0; transform: translateX(14px) } }
.asx-kick { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7C5CFF; }
.asx-step h3 { margin: 6px 0 22px; font-size: 1.6rem; color: #15123B; letter-spacing: -.01em; }
.asx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.asx-grid + .asx-group, .asx-group + .asx-grid, .asx-group + .asx-group { margin-top: 18px; }
.asx-wide { grid-column: 1 / -1; }
.asx-f { display: grid; gap: 7px; font-size: .82rem; font-weight: 700; color: #3D3766; }
.asx-f > span i { font-style: normal; font-weight: 500; color: #9A94BB; margin-left: 4px; }
.asx-f input:not([type=radio]), .asx-f select { width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid #E4DFF5; border-radius: 14px; background: #FAF9FF; font: inherit; font-weight: 500; font-size: .98rem; color: #15123B; box-sizing: border-box; transition: border-color .15s, box-shadow .15s, background .15s; }
.asx-f input::placeholder { color: #B0AACB; }
.asx-f input:focus, .asx-f select:focus { outline: 0; border-color: #7C5CFF; background: #fff; box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.asx-f.is-bad input:not([type=radio]), .asx-f.is-bad select { border-color: #E5484D; background: #FFF7F7; }
.asx-f.is-bad .asx-tiles span, .asx-f.is-bad .asx-pills span { border-color: #F3A5A8; }
.asx-msg { color: #D0353B; font-weight: 600; font-size: .76rem; }
.asx-f[data-score].is-off { display: none; }
.asx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pills & tiles (radio) */
.asx-pills, .asx-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.asx-pills label, .asx-tiles label { cursor: pointer; }
.asx-pills input, .asx-tiles input { position: absolute; opacity: 0; pointer-events: none; }
.asx-pills span { display: inline-block; padding: 11px 18px; border-radius: 99px; border: 1.5px solid #E4DFF5; background: #FAF9FF; font-weight: 600; font-size: .9rem; color: #3D3766; transition: all .15s; }
.asx-pills label:hover span { border-color: #BFB0FF; }
.asx-pills input:checked + span { background: #15123B; border-color: #15123B; color: #fff; box-shadow: 0 8px 18px -10px rgba(21,18,59,.8); }
.asx-pills input:focus-visible + span, .asx-tiles input:focus-visible + span { box-shadow: 0 0 0 4px rgba(124,92,255,.3); }
.asx-countries { display: grid; grid-template-columns: repeat(3, 1fr); }
.asx-countries span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #E4DFF5; background: #FAF9FF; font-weight: 600; font-size: .92rem; color: #2A2558; transition: all .15s; }
.asx-countries b { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: .7rem; letter-spacing: .04em; }
.asx-degrees { display: grid; grid-template-columns: repeat(4, 1fr); }
.asx-degrees span { display: grid; gap: 2px; padding: 14px 12px; border-radius: 16px; border: 1.5px solid #E4DFF5; background: #FAF9FF; text-align: left; transition: all .15s; height: 100%; box-sizing: border-box; }
.asx-degrees em { font-style: normal; font-size: 1.4rem; margin-bottom: 4px; }
.asx-degrees b { font-size: .88rem; color: #15123B; line-height: 1.25; }
.asx-degrees small { font-size: .74rem; color: #8C86AE; font-weight: 500; }
.asx-tiles label:hover span { border-color: #BFB0FF; transform: translateY(-1px); }
.asx-tiles input:checked + span { border-color: #6C44D9; background: #F3EFFF; box-shadow: 0 0 0 3px rgba(108,68,217,.16), 0 12px 22px -16px rgba(108,68,217,.8); }

.asx-err { margin: 18px 0 0; padding: 11px 14px; border-radius: 12px; background: #FFF1F1; color: #B42318; font-size: .88rem; font-weight: 500; }
.asx-nav { margin-top: auto; padding-top: 26px; display: flex; gap: 10px; align-items: center; }
.asx-back { height: 52px; padding: 0 20px; border-radius: 14px; border: 1.5px solid #E4DFF5; background: #fff; color: #3D3766; font: inherit; font-weight: 700; cursor: pointer; }
.asx-back:hover { border-color: #BFB0FF; }
.asx-go { flex: 1; height: 54px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #5B3FD9, #8B5CF6); box-shadow: 0 6px 0 #3F2A9E, 0 18px 30px -12px rgba(91,63,217,.6); transition: transform .12s, box-shadow .12s, filter .12s; }
.asx-go[hidden], .asx-back[hidden] { display: none; }
.asx-go:hover { filter: brightness(1.06); transform: translateY(-1px); }
.asx-go:active { transform: translateY(4px); box-shadow: 0 2px 0 #3F2A9E; }
.asx-go[disabled] { opacity: .75; cursor: progress; }
.asx-submit { background: linear-gradient(135deg, #15803D, #22C55E); box-shadow: 0 6px 0 #116530, 0 18px 30px -12px rgba(22,163,74,.6); }
.asx-submit:active { box-shadow: 0 2px 0 #116530; }
.asx-spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: asxSpin .8s linear infinite; }
@keyframes asxSpin { to { transform: rotate(360deg) } }
.asx-privacy { margin: 12px 0 0; text-align: center; font-size: .76rem; color: #9A94BB; }

/* Results */
.asx-results:empty { display: none; }
.asx-results { padding: 34px 40px 34px; animation: asxIn .3s ease; }
.asx-rhead { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 40px; }
.asx-ring { width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#22C55E var(--p), #EDE9FB 0); position: relative; }
.asx-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.asx-ring b { position: relative; font-size: 1.25rem; color: #15123B; }
.asx-rhead h3 { margin: 0; font-size: 1.45rem; color: #15123B; letter-spacing: -.01em; }
.asx-rhead p { margin: 4px 0 0; color: #5A5480; font-size: .9rem; }
.asx-tip { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, #E9FBF4, #F3FFFA); border: 1px solid #BDEFD9; font-size: .88rem; color: #0F5C40; }
.asx-tip a { color: #0B7A52; font-weight: 700; }
.asx-list { display: grid; gap: 14px; }
.asx-card { position: relative; border: 1.5px solid #ECE8FA; border-radius: 18px; padding: 18px; background: #fff; display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.asx-card:hover { border-color: #CFC4FF; box-shadow: 0 18px 34px -24px rgba(91,63,217,.6); transform: translateY(-1px); }
.asx-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.asx-ctop { min-width: 0; }
.asx-state { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; margin-bottom: 6px; }
.is-eligible .asx-state { background: #DCFCE7; color: #15803D; }
.is-close .asx-state { background: #FEF3C7; color: #B45309; }
.asx-card h4 { margin: 0; font-size: 1.02rem; line-height: 1.35; color: #15123B; }
.asx-uni { margin: 3px 0 0; color: #5A5480; font-size: .85rem; }
.asx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.asx-meta span { font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: #F4F2FB; color: #3D3766; }
.asx-meta span.t { background: #EEE8FF; color: #5B3FD9; }
.asx-apply { align-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: .86rem; text-decoration: none; color: #fff; background: linear-gradient(135deg, #5B3FD9, #8B5CF6); box-shadow: 0 10px 20px -12px rgba(91,63,217,.8); }
.asx-apply:hover { filter: brightness(1.08); color: #fff; }
.asx-req { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FAF9FE; border: 1px dashed #E4DFF5; font-size: .82rem; }
.asx-req b { display: block; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #8C86AE; margin-bottom: 3px; }
.asx-req .asx-typ { grid-column: 1 / -1; font-size: .74rem; color: #8C86AE; }
.asx-checks { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .76rem; font-weight: 600; }
.asx-checks li { padding: 4px 10px; border-radius: 99px; }
.asx-checks li.ok { background: #F0FDF4; color: #15803D; }
.asx-checks li.warn { background: #FFFBEB; color: #B45309; }
.asx-checks li.ok::before { content: "✓ "; font-weight: 800; }
.asx-checks li.warn::before { content: "! "; font-weight: 800; }
.asx-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #241A63, #15123B); color: #E4DEFF; font-size: .9rem; }
.asx-foot b { color: #fff; display: block; }
.asx-foot a { color: #fff; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; padding: 11px 16px; border-radius: 12px; background: #25D366; text-decoration: none; }
.asx-empty { padding: 22px; border-radius: 14px; background: #F6F3FF; text-align: center; color: #3D3766; }

/* Hero trigger */
.h3-assess { margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; border: 1.5px solid rgba(124,92,255,.35);
  background: rgba(255,255,255,.75); backdrop-filter: blur(6px); color: #1E1A4D; font: inherit; font-weight: 700; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
.h3-assess:hover { transform: translateY(-2px); border-color: #7C5CFF; box-shadow: 0 16px 30px -18px rgba(91,63,217,.7); }
.h3-assess i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #16A34A, #22C55E); color: #fff; font-style: normal; }
.h3-assess small { display: block; font-weight: 500; font-size: .78rem; color: #6B6590; }
html.asx-lock { overflow: hidden; }

@media (max-width: 860px) {
  .asx { padding: 0; align-items: end; }
  .asx-dialog { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 94vh; border-radius: 22px 22px 0 0; }
  .asx-side { padding: 16px 20px 14px; }
  .asx-side h2, .asx-stats, .asx-steps li small { display: none; }
  .asx-brand { padding-right: 44px; }
  .asx-steps { grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
  .asx-steps li { padding: 0; flex-direction: column; gap: 4px; text-align: center; background: none !important; }
  .asx-steps li span { font-size: .68rem; font-weight: 600; }
  .asx-steps li i { width: 26px; height: 26px; }
  .asx-profile { display: none !important; }
  .asx-x { top: 12px; right: 12px; background: rgba(255,255,255,.14); color: #fff; }
  .asx-form { padding: 22px 20px 18px; }
  .asx-step h3 { font-size: 1.3rem; margin-bottom: 16px; }
  .asx-grid { grid-template-columns: 1fr; gap: 12px; }
  .asx-countries { grid-template-columns: repeat(2, 1fr); }
  .asx-degrees { grid-template-columns: repeat(2, 1fr); }
  .asx-results { padding: 22px 18px 26px; }
  .asx-rhead { padding-right: 0; }
  .asx-card { grid-template-columns: 44px 1fr; }
  .asx-logo { width: 44px; height: 44px; grid-row: auto; }
  .asx-apply { grid-column: 1 / -1; justify-content: center; margin-top: 12px; order: 5; }
  .asx-req, .asx-checks { grid-column: 1 / -1; }
  .asx-req { grid-template-columns: 1fr; }
}
.asx.has-results .asx-stats { display: none; }
.asx.has-results .asx-profile { margin-top: auto; }
.asx-grid { align-items: start; }