.tfx-aifd,
.tfx-aifd * {
    box-sizing: border-box;
}

.tfx-aifd * {
    min-width: 0;
}

.tfx-aifd :where(h1, h2, h3, p, span, strong, small, label, legend, button, a, li) {
    overflow-wrap: break-word;
}

.tfx-aifd :where(input, select, textarea, button) {
    font: inherit;
}

.tfx-aifd {
    --tfx-aifd-primary: #04182b;
    --tfx-aifd-secondary: #073452;
    --tfx-aifd-accent: #25d5c8;
    --tfx-aifd-mint: #79f08b;
    --tfx-aifd-text: #f4f8fb;
    --tfx-aifd-muted: rgba(244, 248, 251, .72);
    --tfx-aifd-line: rgba(116, 236, 221, .22);
    --tfx-aifd-card: rgba(7, 52, 82, .66);
    --tfx-aifd-card-strong: rgba(5, 35, 58, .88);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(28px, 4.5vw, 72px) clamp(16px, 4vw, 48px);
    color: var(--tfx-aifd-text);
    background:
        radial-gradient(circle at 8% 12%, rgba(121, 240, 139, .16), transparent 32%),
        radial-gradient(circle at 82% 20%, rgba(37, 213, 200, .18), transparent 34%),
        linear-gradient(135deg, #020c18 0%, var(--tfx-aifd-primary) 45%, #02111f 100%);
    border-radius: 0;
    isolation: isolate;
    container-type: inline-size;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tfx-aifd a {
    color: var(--tfx-aifd-accent);
}

.tfx-aifd__bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
    opacity: .36;
    z-index: -1;
}

.tfx-aifd__bg-orb--one {
    width: 520px;
    height: 520px;
    left: -260px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(37, 213, 200, .24), transparent 68%);
}

.tfx-aifd__bg-orb--two {
    width: 560px;
    height: 560px;
    right: -280px;
    top: -260px;
    background: radial-gradient(circle, rgba(121, 240, 139, .22), transparent 68%);
}

.tfx-aifd__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.tfx-aifd__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(32px, 4vw, 56px);
    overflow: visible;
    min-height: clamp(78px, 8vw, 116px);
}

.tfx-aifd__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: clamp(76px, 8vw, 112px);
    overflow: visible;
}

.tfx-aifd__logo {
    display: block !important;
    width: auto !important;
    height: clamp(72px, 7vw, 104px) !important;
    max-width: min(260px, 70vw) !important;
    max-height: 104px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    transform: none !important;
    position: static !important;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .28));
}

.tfx-aifd__header-copy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--tfx-aifd-muted);
    font-size: 13px;
}

.tfx-aifd__header-copy span {
    padding: 8px 12px;
    border: 1px solid var(--tfx-aifd-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
}

.tfx-aifd__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    margin-bottom: 28px;
}

.tfx-aifd__eyebrow {
    margin: 0 0 10px;
    color: var(--tfx-aifd-mint);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tfx-aifd h1,
.tfx-aifd h2,
.tfx-aifd h3,
.tfx-aifd p {
    color: inherit;
}

.tfx-aifd h1 {
    margin: 0;
    max-width: 850px;
    color: #fff;
    font-size: clamp(42px, 5.6vw, 84px);
    line-height: .95;
    letter-spacing: -.055em;
}

.tfx-aifd h1::first-line {
    color: var(--tfx-aifd-mint);
}

.tfx-aifd__subtitle {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--tfx-aifd-muted);
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.45;
}

.tfx-aifd__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 26px;
}

.tfx-aifd__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: clamp(14px, 1vw, 15px);
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.tfx-aifd__button:hover,
.tfx-aifd__button:focus-visible {
    transform: translateY(-1px);
}

.tfx-aifd__button--primary {
    color: #031120 !important;
    background: linear-gradient(135deg, var(--tfx-aifd-mint), var(--tfx-aifd-accent));
    box-shadow: 0 18px 42px rgba(37, 213, 200, .22);
}

.tfx-aifd__button--ghost {
    color: var(--tfx-aifd-text) !important;
    background: rgba(255, 255, 255, .05);
    border-color: var(--tfx-aifd-line);
}

.tfx-aifd__trust-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--tfx-aifd-muted);
}

.tfx-aifd__trust-list li {
    position: relative;
    padding-left: 28px;
}

.tfx-aifd__trust-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tfx-aifd-accent);
    font-weight: 900;
}

.tfx-aifd__preview-card,
.tfx-aifd__form-shell,
.tfx-aifd__dimension-card,
.tfx-aifd__result-card,
.tfx-aifd__result-cta,
.tfx-aifd__notice {
    border: 1px solid var(--tfx-aifd-line);
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
}

.tfx-aifd__preview-card {
    padding: 28px;
    border-radius: 28px;
}

.tfx-aifd__preview-top,
.tfx-aifd__score-row,
.tfx-aifd__result-hero,
.tfx-aifd__result-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.tfx-aifd__preview-top {
    margin-bottom: 22px;
    color: var(--tfx-aifd-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tfx-aifd__preview-top strong {
    color: var(--tfx-aifd-accent);
}

.tfx-aifd__gauge,
.tfx-aifd__result-gauge {
    display: grid;
    place-items: center;
    width: 164px;
    height: 164px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #02111f 0 57%, transparent 58%),
        conic-gradient(var(--tfx-aifd-mint) 0 61%, rgba(255,255,255,.12) 61% 100%);
    box-shadow: inset 0 0 30px rgba(0,0,0,.2), 0 18px 50px rgba(37,213,200,.18);
}

.tfx-aifd__gauge span,
.tfx-aifd__result-gauge span {
    font-size: 44px;
    font-weight: 900;
    line-height: .9;
}

.tfx-aifd__gauge small,
.tfx-aifd__result-gauge small {
    color: var(--tfx-aifd-muted);
    margin-top: -56px;
}

.tfx-aifd__preview-card p {
    margin: 0;
    color: var(--tfx-aifd-muted);
    line-height: 1.55;
}

.tfx-aifd__preview-card strong {
    color: var(--tfx-aifd-mint);
    font-size: 22px;
}

.tfx-aifd__dimension-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 14px;
    margin: 28px 0;
}

.tfx-aifd__dimension-card {
    min-height: clamp(124px, 10vw, 150px);
    padding: clamp(14px, 1.4vw, 18px);
    border-radius: 22px;
}

.tfx-aifd__dimension-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    color: #031120;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tfx-aifd-mint), var(--tfx-aifd-accent));
    font-weight: 900;
}

.tfx-aifd__dimension-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(14px, 1vw, 15px);
}

.tfx-aifd__dimension-card p {
    margin: 0;
    color: var(--tfx-aifd-muted);
    font-size: clamp(12px, .95vw, 13px);
    line-height: 1.45;
}

.tfx-aifd__notice {
    padding: 18px 20px;
    border-radius: 18px;
    color: var(--tfx-aifd-muted);
    line-height: 1.55;
}

.tfx-aifd__notice strong {
    color: var(--tfx-aifd-text);
}

.tfx-aifd__notice--error {
    border-color: rgba(255, 111, 111, .55);
    background: rgba(122, 20, 32, .28);
    color: #fff;
}

.tfx-aifd__form {
    margin-top: 28px;
}

.tfx-aifd__form-shell {
    padding: clamp(18px, 4vw, 34px);
    border-radius: 30px;
}

.tfx-aifd__progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.tfx-aifd__progress-line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 20px;
    height: 2px;
    background: rgba(255,255,255,.16);
    z-index: 0;
}

.tfx-aifd__progress-line span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--tfx-aifd-mint), var(--tfx-aifd-accent));
    transition: width .25s ease;
}

.tfx-aifd__step-indicator {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0;
    color: var(--tfx-aifd-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.tfx-aifd__step-indicator span {
    display: grid;
    place-items: center;
    width: clamp(34px, 3vw, 40px);
    height: clamp(34px, 3vw, 40px);
    color: var(--tfx-aifd-muted);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: #06192b;
    font-weight: 900;
}

.tfx-aifd__step-indicator small {
    max-width: 110px;
    font-size: clamp(10px, .85vw, 12px);
    line-height: 1.2;
    text-align: center;
}

.tfx-aifd__step-indicator.is-active span,
.tfx-aifd__step-indicator.is-complete span {
    color: #031120;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tfx-aifd-mint), var(--tfx-aifd-accent));
}

.tfx-aifd__step-heading {
    margin-bottom: 22px;
}

.tfx-aifd__step-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1;
    letter-spacing: -.035em;
}

.tfx-aifd__step-heading p:not(.tfx-aifd__eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--tfx-aifd-muted);
    line-height: 1.55;
}

.tfx-aifd__grid {
    display: grid;
    gap: 16px;
}

.tfx-aifd__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tfx-aifd__field {
    display: grid;
    gap: 8px;
    color: var(--tfx-aifd-text);
    font-weight: 750;
}

.tfx-aifd__field em {
    color: var(--tfx-aifd-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.tfx-aifd__field input,
.tfx-aifd__field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--tfx-aifd-text);
    background: rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    outline: none;
}

.tfx-aifd__field input:focus,
.tfx-aifd__field select:focus {
    border-color: var(--tfx-aifd-accent);
    box-shadow: 0 0 0 4px rgba(37,213,200,.12);
}

.tfx-aifd__field select option {
    color: #071625;
}

.tfx-aifd__questions {
    display: grid;
    gap: 16px;
}

.tfx-aifd__question {
    padding: 18px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(0,0,0,.16);
}

.tfx-aifd__question legend {
    padding: 0;
    margin-bottom: 12px;
    color: var(--tfx-aifd-text);
    font-weight: 850;
    line-height: 1.35;
}

.tfx-aifd__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: clamp(8px, .9vw, 12px);
}

.tfx-aifd__option {
    display: grid;
    gap: 8px;
    min-height: auto;
    padding: clamp(11px, 1vw, 14px);
    color: var(--tfx-aifd-muted);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    cursor: pointer;
    font-size: clamp(12px, .95vw, 13px);
    line-height: 1.42;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.tfx-aifd__option:hover,
.tfx-aifd__option:has(input:checked) {
    color: var(--tfx-aifd-text);
    border-color: var(--tfx-aifd-accent);
    background: rgba(37,213,200,.10);
}

.tfx-aifd__option input {
    width: 18px;
    height: 18px;
    accent-color: var(--tfx-aifd-accent);
}

.tfx-aifd__consent-box {
    display: grid;
    gap: 12px;
}

.tfx-aifd__consent-box label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    color: var(--tfx-aifd-muted);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(0,0,0,.16);
}

.tfx-aifd__consent-box input {
    margin-top: 4px;
    accent-color: var(--tfx-aifd-accent);
}

.tfx-aifd__small {
    color: var(--tfx-aifd-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tfx-aifd__honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.tfx-aifd__form-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.tfx-aifd__validation {
    margin-top: 12px;
    color: #ffb3b3;
    font-weight: 700;
}

.tfx-aifd--result .tfx-aifd__result-hero {
    align-items: flex-end;
    margin-bottom: 24px;
}

.tfx-aifd__result-hero h1 {
    color: var(--tfx-aifd-mint);
}

.tfx-aifd__result-gauge {
    flex: 0 0 auto;
    margin: 0;
    background:
        radial-gradient(circle at center, #02111f 0 57%, transparent 58%),
        conic-gradient(var(--tfx-aifd-mint) 0 calc(var(--score) * 1%), rgba(255,255,255,.12) calc(var(--score) * 1%) 100%);
}

.tfx-aifd__result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(min(100%, 330px), .75fr);
    gap: 18px;
    margin: 22px 0;
}

.tfx-aifd__result-card {
    padding: 22px;
    border-radius: 24px;
}

.tfx-aifd__result-card h2,
.tfx-aifd__result-cta h2 {
    margin: 0 0 16px;
    font-size: 22px;
    letter-spacing: -.02em;
}

.tfx-aifd__score-row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(120px, 1fr) 48px;
    margin: 12px 0;
    color: var(--tfx-aifd-muted);
}

.tfx-aifd__score-row span:first-child,
.tfx-aifd__score-row strong {
    color: var(--tfx-aifd-text);
}

.tfx-aifd__bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}

.tfx-aifd__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tfx-aifd-mint), var(--tfx-aifd-accent));
}

.tfx-aifd__radar-wrap {
    width: 100%;
}

.tfx-aifd__radar {
    display: block;
    width: 100%;
    max-width: 520px;
    min-height: 300px;
    margin: 0 auto 18px;
    overflow: visible;
}

.tfx-aifd__radar-grid,
.tfx-aifd__radar-axis {
    fill: none;
    stroke: rgba(255,255,255,.18);
    stroke-width: 1;
}

.tfx-aifd__radar-scale {
    fill: rgba(255,255,255,.48);
    font-size: 11px;
    font-weight: 700;
}

.tfx-aifd__radar-score {
    fill: rgba(37,213,200,.24);
    stroke: var(--tfx-aifd-accent);
    stroke-width: 4;
    stroke-linejoin: round;
}

.tfx-aifd__radar-point {
    fill: var(--tfx-aifd-mint);
    stroke: #062032;
    stroke-width: 2;
}

.tfx-aifd__radar-label {
    fill: var(--tfx-aifd-text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.tfx-aifd__radar-label-score {
    fill: var(--tfx-aifd-mint);
    font-size: 10px;
    font-weight: 800;
}

.tfx-aifd__radar-key {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
    gap: 8px;
    margin-top: 8px;
}

.tfx-aifd__radar-key-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(2, 18, 31, .28);
    color: var(--tfx-aifd-muted);
    font-size: 12px;
    line-height: 1.25;
}

.tfx-aifd__radar-key-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tfx-aifd-mint), var(--tfx-aifd-accent));
    box-shadow: 0 0 12px rgba(37,213,200,.45);
}

.tfx-aifd__radar-key-label {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.tfx-aifd__radar-key-item strong {
    color: var(--tfx-aifd-text);
    font-size: 12px;
    white-space: nowrap;
}

.tfx-aifd__result-headline {
    color: var(--tfx-aifd-text);
    font-size: 18px;
    font-weight: 800;
}

.tfx-aifd__recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
}

.tfx-aifd__recommendations article {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(0,0,0,.14);
}

.tfx-aifd__recommendations strong {
    color: var(--tfx-aifd-mint);
}

.tfx-aifd__recommendations p,
.tfx-aifd__result-cta p {
    margin-bottom: 0;
    color: var(--tfx-aifd-muted);
    line-height: 1.55;
}

.tfx-aifd__result-cta {
    margin-top: 18px;
    padding: 24px;
    border-radius: 24px;
}

.tfx-aifd .tfx-aifd__form,
.tfx-aifd .tfx-aifd__form-shell,
.tfx-aifd .tfx-aifd__preview-card,
.tfx-aifd .tfx-aifd__result-card,
.tfx-aifd .tfx-aifd__result-cta {
    width: 100%;
    max-width: none;
}

.tfx-aifd__field input,
.tfx-aifd__field select,
.tfx-aifd__option,
.tfx-aifd__consent-box label,
.tfx-aifd__notice {
    overflow-wrap: anywhere;
}

.tfx-aifd__question legend {
    max-width: 100%;
}

@supports not selector(:has(*)) {
    .tfx-aifd__option.is-selected {
        color: var(--tfx-aifd-text);
        border-color: var(--tfx-aifd-accent);
        background: rgba(37,213,200,.10);
    }
}

@media (min-width: 1280px) {
    .tfx-aifd__form-shell {
        padding: 38px;
    }

    .tfx-aifd__question {
        padding: 20px;
    }
}

@media (max-width: 1180px) {
    .tfx-aifd__hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
        gap: 28px;
    }
}

@media (max-width: 980px) {
    .tfx-aifd {
        padding: 28px clamp(14px, 4vw, 28px);
    }

    .tfx-aifd__header,
    .tfx-aifd__hero-grid,
    .tfx-aifd__result-hero,
    .tfx-aifd__result-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .tfx-aifd__hero-grid,
    .tfx-aifd__result-grid,
    .tfx-aifd__grid--two {
        grid-template-columns: 1fr;
    }

    .tfx-aifd__progress {
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    }

    .tfx-aifd__progress-line {
        display: none;
    }

    .tfx-aifd__options {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    }
}

@media (max-width: 640px) {
    .tfx-aifd {
        padding: 24px 14px;
    }

    .tfx-aifd__logo {
        height: clamp(64px, 18vw, 88px) !important;
        max-width: min(230px, 78vw) !important;
    }

    .tfx-aifd h1 {
        font-size: clamp(38px, 13vw, 56px);
        line-height: 1;
    }

    .tfx-aifd__header-copy {
        justify-content: flex-start;
    }

    .tfx-aifd__form-shell,
    .tfx-aifd__preview-card,
    .tfx-aifd__result-card,
    .tfx-aifd__result-cta {
        border-radius: 22px;
    }

    .tfx-aifd__score-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .tfx-aifd__form-nav {
        flex-direction: column-reverse;
    }

    .tfx-aifd__button {
        width: 100%;
    }
}

@container (max-width: 980px) {
    .tfx-aifd__hero-grid,
    .tfx-aifd__result-grid,
    .tfx-aifd__grid--two {
        grid-template-columns: 1fr;
    }

    .tfx-aifd__header,
    .tfx-aifd__result-hero,
    .tfx-aifd__result-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .tfx-aifd__progress-line {
        display: none;
    }
}

@container (max-width: 640px) {
    .tfx-aifd__options,
    .tfx-aifd__score-row {
        grid-template-columns: 1fr;
    }
}


/* v2.5 final report panel */
.tfx-aifd .tfx-aifd__final-submit-panel {
    margin-top: clamp(1.2rem, 2.5vw, 2rem);
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border: 1px solid rgba(44, 230, 216, 0.28);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(21, 61, 75, 0.78), rgba(5, 22, 42, 0.78));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}
.tfx-aifd .tfx-aifd__step-heading--compact { margin-bottom: 1rem; }
.tfx-aifd .tfx-aifd__step-heading--compact h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.12;
    color: #fff;
    overflow-wrap: anywhere;
}
.tfx-aifd .tfx-aifd__form-nav .tfx-aifd__button {
    white-space: normal;
    text-align: center;
    min-height: 48px;
}
@media (max-width: 520px) {
    .tfx-aifd .tfx-aifd__form-nav { align-items: stretch; }
    .tfx-aifd .tfx-aifd__form-nav .tfx-aifd__button { width: 100%; }
}

/* v2.6: stricter logo containment + country/region dependent select polish */
.tfx-aifd {
    padding-top: clamp(44px, 5vw, 80px) !important;
}

.tfx-aifd .tfx-aifd__header {
    min-height: auto !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

.tfx-aifd .tfx-aifd__brand {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    align-items: center !important;
}

.tfx-aifd .tfx-aifd__logo {
    display: block !important;
    width: auto !important;
    height: clamp(48px, 5.2vw, 76px) !important;
    max-height: 76px !important;
    max-width: min(220px, 72vw) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    clip-path: none !important;
    overflow: visible !important;
}

.tfx-aifd select[disabled] {
    opacity: 0.78;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .tfx-aifd {
        padding-top: 34px !important;
    }
    .tfx-aifd .tfx-aifd__logo {
        height: clamp(42px, 14vw, 60px) !important;
        max-height: 60px !important;
        max-width: min(190px, 78vw) !important;
    }
}

/* v2.7 PDF report actions */
.tfx-aifd__result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
}

@media (max-width: 760px) {
    .tfx-aifd__result-actions {
        width: 100%;
        justify-content: stretch;
    }

    .tfx-aifd__result-actions .tfx-aifd__button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.tfx-aifd__result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin: 1rem 0 1.25rem;
    border: 1px solid rgba(37, 213, 200, 0.28);
    border-radius: 18px;
    background: rgba(4, 24, 43, 0.42);
    color: rgba(244, 248, 251, 0.78);
}

.tfx-aifd__result-toolbar span {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.5;
}

@media (max-width: 760px) {
    .tfx-aifd__result-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}


/* v2.8: hard logo visibility + resilient country/region select rendering */
.tfx-aifd .tfx-aifd__header {
    align-items: flex-start !important;
    padding-top: clamp(8px, 1.4vw, 18px) !important;
    margin-top: 0 !important;
    min-height: clamp(88px, 9vw, 132px) !important;
    overflow: visible !important;
}

.tfx-aifd .tfx-aifd__brand {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: clamp(82px, 8.5vw, 124px) !important;
    overflow: visible !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}

.tfx-aifd .tfx-aifd__brand img.tfx-aifd__logo,
.tfx-aifd img.tfx-aifd__logo {
    display: block !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    clip-path: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    width: clamp(96px, 9.5vw, 148px) !important;
    height: auto !important;
    max-width: clamp(96px, 9.5vw, 148px) !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    vertical-align: top !important;
}

.tfx-aifd select[data-tfx-region-select]:not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
}

.tfx-aifd select[data-tfx-region-select][disabled] {
    opacity: .82 !important;
    cursor: not-allowed !important;
}

@media (max-width: 640px) {
    .tfx-aifd .tfx-aifd__header {
        min-height: 94px !important;
        padding-top: 8px !important;
    }
    .tfx-aifd .tfx-aifd__brand img.tfx-aifd__logo,
    .tfx-aifd img.tfx-aifd__logo {
        width: clamp(84px, 26vw, 118px) !important;
        max-width: clamp(84px, 26vw, 118px) !important;
    }
}


@media (max-width: 640px) {
    .tfx-aifd__radar {
        max-width: 100%;
        min-height: 280px;
    }

    .tfx-aifd__radar-label {
        font-size: 10px;
    }

    .tfx-aifd__radar-label-score {
        font-size: 9px;
    }
}

/* v4.0 scope calibration and no-auto-scroll refinements */
.tfx-aifd__scope-note,
.tfx-aifd__scope-result-note {
    border: 1px solid rgba(37, 213, 200, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 213, 200, 0.10), rgba(121, 240, 139, 0.06));
    padding: clamp(1rem, 2vw, 1.35rem);
    color: rgba(244, 248, 251, 0.86);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.tfx-aifd__scope-note {
    margin-top: 1rem;
}

.tfx-aifd__scope-note strong {
    display: block;
    color: var(--tfx-aifd-mint, #79f08b);
    margin-bottom: 0.35rem;
}

.tfx-aifd__scope-note p,
.tfx-aifd__scope-result-note {
    margin: 0;
}

.tfx-aifd__scope-result-note {
    margin-top: 1rem;
    max-width: 880px;
}

.tfx-aifd__question legend[data-tfx-question-legend] {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.tfx-aifd select[data-tfx-scope-select] {
    border-color: rgba(121, 240, 139, 0.38);
    box-shadow: 0 0 0 1px rgba(37, 213, 200, 0.04);
}

@media (min-width: 960px) {
    .tfx-aifd__scope-note {
        grid-column: 1 / -1;
    }
}

/* v4.1 final-step and radar readability refinements */
.tfx-aifd [hidden],
.tfx-aifd__button[hidden] {
    display: none !important;
}

.tfx-aifd__radar {
    max-width: 620px;
    min-height: 360px;
    margin: 0 auto 10px;
    overflow: visible !important;
}

.tfx-aifd__radar text,
.tfx-aifd__radar-label,
.tfx-aifd__radar-scale {
    fill: rgba(244, 248, 251, 0.92) !important;
    paint-order: stroke;
    stroke: rgba(6, 25, 39, 0.72);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.tfx-aifd__radar-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.tfx-aifd__radar-scale {
    fill: rgba(121, 240, 139, 0.92) !important;
    font-size: 12px;
    font-weight: 900;
}

.tfx-aifd__radar-note {
    margin: 4px auto 0;
    max-width: 560px;
    text-align: center;
    color: rgba(244, 248, 251, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .tfx-aifd__radar {
        max-width: 100%;
        min-height: 330px;
    }

    .tfx-aifd__radar-label {
        font-size: 11px;
    }

    .tfx-aifd__radar-note {
        font-size: 0.8rem;
    }
}

/* v4.3 mobile validation hardening */
.tfx-aifd .is-missing {
    outline: 2px solid rgba(255, 107, 107, 0.95) !important;
    outline-offset: 4px;
    border-radius: 18px;
}
.tfx-aifd .tfx-aifd__form-nav [data-tfx-submit]:not([hidden]) {
    display: inline-flex !important;
}
.tfx-aifd .tfx-aifd__form-nav [data-tfx-next][hidden],
.tfx-aifd .tfx-aifd__form-nav [data-tfx-submit][hidden] {
    display: none !important;
}
@media (max-width: 720px) {
    .tfx-aifd .tfx-aifd__form-shell { padding: 18px !important; }
    .tfx-aifd .tfx-aifd__step-heading h2 { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; line-height: 1.05 !important; }
    .tfx-aifd .tfx-aifd__option { padding: 14px !important; }
    .tfx-aifd .tfx-aifd__form-nav { gap: 10px; }
    .tfx-aifd .tfx-aifd__button { width: 100%; justify-content: center; min-height: 48px; }
}

/* v4.4 cross-platform UAT friction fixes */
.tfx-aifd {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.tfx-aifd :where(button, .tfx-aifd__button, .tfx-aifd__option, input, select, textarea) {
    -webkit-tap-highlight-color: rgba(37, 213, 200, 0.24);
}

.tfx-aifd :where(button, .tfx-aifd__button) {
    touch-action: manipulation;
    cursor: pointer;
}

.tfx-aifd .tfx-aifd__option {
    min-height: 52px;
    align-items: center;
}

.tfx-aifd input[type="radio"],
.tfx-aifd input[type="checkbox"] {
    min-width: 18px;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.tfx-aifd [aria-invalid="true"] {
    scroll-margin-top: 120px;
}

.tfx-aifd .tfx-aifd__validation {
    min-height: 1.4em;
    overflow-wrap: anywhere;
}

.tfx-aifd .tfx-aifd__validation:not(:empty) {
    color: #ffd6d6;
    font-weight: 800;
}

@media (max-width: 720px) {
    .tfx-aifd .tfx-aifd__form-nav {
        position: sticky;
        bottom: 0;
        z-index: 8;
        padding: 12px 0 4px;
        background: linear-gradient(180deg, rgba(3, 18, 31, 0), rgba(3, 18, 31, 0.94) 38%, rgba(3, 18, 31, 0.98));
    }

    .tfx-aifd .tfx-aifd__validation:not(:empty) {
        padding: 10px 12px;
        border: 1px solid rgba(255, 107, 107, 0.44);
        border-radius: 14px;
        background: rgba(96, 18, 28, 0.34);
    }
}

.tfx-aifd--form-only .tfx-aifd__inner {
    max-width: 1180px;
}

.tfx-aifd__form-only-heading {
    margin: 0 auto clamp(18px, 3vw, 32px);
    max-width: 920px;
    text-align: center;
}

.tfx-aifd__form-only-heading h2 {
    margin: 0.2rem 0 0.6rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
}

.tfx-aifd__form-only-heading p:last-child {
    margin: 0;
    color: var(--tfx-aifd-muted);
}


/* v5.0 consultancy-grade maturity assessment refinements */
.tfx-aifd__dimension-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.tfx-aifd__dimension-card {
    min-height: clamp(150px, 13vw, 178px);
}

.tfx-aifd__questions {
    gap: clamp(18px, 2.2vw, 26px);
}

.tfx-aifd__question {
    display: block;
    padding: clamp(16px, 2vw, 24px);
    overflow: visible;
}

.tfx-aifd__question legend {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: clamp(14px, 1.8vw, 18px);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tfx-aifd__options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: clamp(10px, 1.1vw, 14px);
}

.tfx-aifd__option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding: clamp(13px, 1.5vw, 18px);
    font-size: clamp(0.92rem, 1vw, 1rem);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.tfx-aifd__option input {
    margin-top: 0.18em;
}

.tfx-aifd__option span {
    min-width: 0;
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
}

.tfx-aifd__progress {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
    row-gap: 14px;
}

.tfx-aifd__step-indicator small {
    max-width: 132px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tfx-aifd__step-heading h2 {
    overflow-wrap: balance;
}

@media (min-width: 1200px) {
    .tfx-aifd__question {
        padding: 24px 26px;
    }
    .tfx-aifd__option {
        padding: 16px 18px;
    }
}

@media (max-width: 760px) {
    .tfx-aifd__progress {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    .tfx-aifd__step-indicator {
        flex: 0 0 94px;
        scroll-snap-align: start;
    }
    .tfx-aifd__option {
        grid-template-columns: 22px minmax(0, 1fr);
        padding: 14px;
        font-size: 0.95rem;
    }
    .tfx-aifd__question legend {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .tfx-aifd__option {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px;
        font-size: 0.92rem;
    }
    .tfx-aifd input[type="radio"],
    .tfx-aifd input[type="checkbox"] {
        min-width: 17px;
        width: 17px;
        height: 17px;
    }
}

/* v5.8 maturity-ladder readability and responsive alignment hardening */
.tfx-aifd__question-help {
    margin: -4px 0 14px;
    color: rgba(232, 245, 247, 0.78);
    font-size: clamp(0.86rem, 0.95vw, 0.95rem);
    line-height: 1.45;
    max-width: 980px;
}

.tfx-aifd__question legend,
.tfx-aifd__question-help,
.tfx-aifd__option span {
    overflow-wrap: anywhere;
    word-break: normal;
}

.tfx-aifd__option {
    align-items: flex-start;
    min-height: auto;
}

.tfx-aifd__option span {
    line-height: 1.48;
}

@media (max-width: 600px) {
    .tfx-aifd__question-help {
        margin-top: 0;
        margin-bottom: 12px;
    }
    .tfx-aifd__option {
        border-radius: 16px;
        padding: 13px 12px;
    }
}
