.lqn-shell {
    width: 100%;
}

.lqn-page[hidden],
.lqn-dialog[hidden],
.lqn-result-page[hidden] {
    display: none !important;
}

.lqn-step-header {
    background: #fff;
    color: #002e6f;
    display: grid;
    grid-template-columns: minmax(160px, 25%) minmax(300px, 1fr) minmax(80px, 25%);
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: -80px 0 60px -50vw;
    padding: 34px 10vw 28px;
    text-align: center;
}

.lqn-step-logo {
    text-align: left;
}

.lqn-step-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.lqn-step-main h2 {
    color: #002e6f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.lqn-step-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.lqn-step-intro {
    color: #24436f;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.35;
}

.lqn-step-intro p {
    margin: 0;
}

.lqn-step-progress {
    background: #d6deea;
    border-radius: 999px;
    height: 18px;
    max-width: 520px;
    margin: 22px auto 0;
    overflow: hidden;
}

.lqn-step-progress span {
    background: #002e6f;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.lqn-mobile-intro {
    display: none;
}

.lqn-progress {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0 34px;
}

.lqn-progress button {
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    color: inherit;
    padding: 8px 12px;
    cursor: pointer;
}

.lqn-progress button.is-active {
    background: #fff;
    color: #002e6f;
}

.lqn-question {
    margin: 32px 0;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lqn-question.is-missing {
    background: rgba(227, 35, 31, .16);
    border-color: #ff4d4a;
    box-shadow: 0 0 0 4px rgba(227, 35, 31, .18);
}

.lqn-question .question {
    margin-bottom: 14px;
}

.lqn-question .choix {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    display: inline-block;
    padding: 16px 18px;
    margin: 7px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.35;
}

.lqn-question .choix:hover,
.lqn-question .choix.selected,
.lqn-question .choix:has(input:checked) {
    background: #fff;
    color: #002e6f;
}

.lqn-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.lqn-actions button,
.lqn-submit {
    border: 1px solid #fff;
    background: transparent;
    color: inherit;
    padding: 12px 20px;
    cursor: pointer;
    text-transform: uppercase;
}

.lqn-actions button:hover,
.lqn-submit:hover {
    background: #fff;
    color: #002e6f;
}

.lqn-message {
    margin-top: 18px;
    color: #ffdddd;
}

.lqn-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 14, 38, .76);
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    padding: 20px;
}

.lqn-dialog-box {
    width: min(680px, 100%);
    background: #fff;
    color: #002e6f;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    border-top: 8px solid #e3231f;
}

.lqn-dialog-kicker {
    color: #e3231f;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    margin-bottom: 8px;
}

.lqn-dialog-box h2 {
    color: #002e6f;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    margin: 0 0 12px;
}

.lqn-dialog-box p {
    color: #24436f;
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 22px;
}

.lqn-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lqn-dialog-box label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 700;
    color: #002e6f;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.lqn-dialog-box input[type="text"],
.lqn-dialog-box input[type="email"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #c9d3e1;
    color: #002e6f;
    font-size: 17px;
    background: #fff;
    box-sizing: border-box;
}

.lqn-dialog-box input:focus {
    outline: 3px solid rgba(0, 46, 111, .15);
    border-color: #002e6f;
}

.lqn-dialog-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lqn-dialog-actions button,
.lqn-dialog-actions a {
    border: 1px solid #002e6f;
    background: #002e6f;
    color: #fff;
    padding: 13px 22px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    min-height: 42px;
    white-space: nowrap;
}

.lqn-dialog-actions button[type="button"],
.lqn-dialog-actions a {
    background: transparent;
    color: #002e6f;
}

.lqn-dialog-box [data-lqn-response] {
    margin-top: 14px;
    color: #002e6f;
    font-weight: 700;
}

.lqn-dialog-box.is-success {
    text-align: center;
}

.lqn-dialog-box.is-success h2 {
    margin-bottom: 16px;
}

.lqn-dialog-box.is-instant {
    width: min(860px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.lqn-dialog-box.is-instant h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.lqn-result-page {
    background: #fff;
    color: #002e6f;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: -80px 0 -80px -50vw;
    padding: clamp(30px, 4vw, 56px) max(24px, calc((100vw - 1120px) / 2));
    min-height: 100vh;
}

.lqn-result-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 4vw, 44px);
    border-top: 6px solid #e3231f;
    padding-top: clamp(24px, 3vw, 34px);
    margin-bottom: clamp(24px, 4vw, 40px);
}

.lqn-result-hero h2 {
    color: #002e6f;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.06;
    margin: 0 0 10px;
    max-width: 760px;
}

.lqn-result-hero p {
    color: #24436f;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.35;
    max-width: 760px;
    margin: 0;
}

.lqn-result-badge-wrap {
    width: clamp(128px, 16vw, 190px);
    height: clamp(128px, 16vw, 190px);
    border-radius: 50%;
    background: #002e6f;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 38px rgba(0, 46, 111, .18);
}

.lqn-result-badge {
    width: clamp(110px, 15vw, 180px);
    height: clamp(110px, 15vw, 180px);
    object-fit: contain;
}

.lqn-share-panel {
    background: #f3f7fb;
    border-left: 6px solid #e3231f;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: clamp(20px, 3vw, 34px);
    align-items: center;
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: clamp(26px, 4vw, 42px);
}

.lqn-share-panel h3,
.lqn-result-page .lqn-optional-lead h3 {
    color: #002e6f;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.15;
    margin: 0 0 10px;
}

.lqn-share-panel p {
    color: #24436f;
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 18px;
}

.lqn-share-panel canvas {
    width: 100%;
    height: auto;
    border: 1px solid #dbe4f0;
    background: #f6f9fc;
    display: block;
    box-shadow: 0 14px 35px rgba(0, 46, 111, .12);
}

.lqn-instant-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.lqn-answer-item {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-left: 6px solid #c9332d;
    padding: 18px 20px;
    min-height: 100%;
    box-shadow: 0 8px 24px rgba(0, 46, 111, .06);
}

.lqn-answer-item.is-good {
    border-left-color: #16834d;
}

.lqn-answer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.lqn-answer-number {
    display: block;
    color: #002e6f;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
    margin-bottom: 0;
}

.lqn-answer-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    color: #c9332d;
    white-space: nowrap;
}

.lqn-answer-state span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #c9332d;
    font-weight: 900;
}

.lqn-answer-item.is-good .lqn-answer-state {
    color: #16834d;
}

.lqn-answer-item.is-good .lqn-answer-state span {
    background: #16834d;
}

.lqn-answer-item h3,
.lqn-answer-question {
    color: #002e6f;
    font-weight: 800;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.35;
    margin: 0 0 12px;
}

.lqn-answer-choice {
    margin: 10px 0 8px;
    color: #24436f;
    font-size: 15px;
}

.lqn-answer-correct {
    color: #24436f;
    margin: 0 0 8px;
    font-size: 15px;
}

.lqn-answer-item p {
    margin: 6px 0 0;
    font-size: 15px;
    color: #24436f;
}

.lqn-optional-lead {
    background: #f3f7fb;
    border: 1px solid #dbe4f0;
    padding: 18px;
    margin-top: 22px;
}

.lqn-result-followups {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 18px;
    margin-top: clamp(28px, 4vw, 44px);
}

.lqn-result-card {
    background: #f3f7fb;
    border: 1px solid #dbe4f0;
    border-left: 6px solid #e3231f;
    padding: clamp(22px, 3vw, 30px);
    box-shadow: 0 8px 24px rgba(0, 46, 111, .06);
}

.lqn-challenge-card {
    border-left-color: #002e6f;
    background: #fff;
}

.lqn-card-kicker {
    color: #e3231f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lqn-challenge-card .lqn-card-kicker {
    color: #002e6f;
}

.lqn-result-card h3,
.lqn-optional-lead h3 {
    color: #002e6f;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.2;
    margin: 0 0 8px;
}

.lqn-result-card p,
.lqn-optional-lead p {
    font-size: 16px;
    color: #24436f;
    line-height: 1.45;
    margin: 0 0 16px;
}

.lqn-result-card .lqn-contact-grid {
    width: 100%;
    margin: 18px 0 10px;
}

.lqn-result-card label,
.lqn-result-page .lqn-optional-lead label {
    display: block;
    color: #002e6f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.lqn-result-card input,
.lqn-result-page .lqn-optional-lead input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #b9c8dc;
    background: #fff;
    color: #002e6f;
    font-size: 16px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.lqn-result-card input:focus,
.lqn-result-page .lqn-optional-lead input:focus {
    outline: 3px solid rgba(0, 46, 111, .14);
    border-color: #002e6f;
}

.lqn-checkline {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    color: #24436f !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    text-transform: none !important;
    margin: 12px 0 0 !important;
}

.lqn-checkline input {
    width: auto !important;
    min-height: 0 !important;
    margin-top: 2px;
    flex: 0 0 auto;
}

.lqn-result-card [data-lqn-response],
.lqn-result-card [data-lqn-challenge-response] {
    color: #002e6f;
    font-weight: 800;
    margin: 12px 0 0;
}

.lqn-success-mini {
    background: #e8f5ee;
    color: #0f6b3d;
    padding: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

.lqn-success-check {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #002e6f;
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 18px;
}

.lqn-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.lqn-loading-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: lqn-dot-pulse .9s infinite ease-in-out;
}

.lqn-loading-dots span:nth-child(2) {
    animation-delay: .15s;
}

.lqn-loading-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes lqn-dot-pulse {
    0%, 80%, 100% {
        opacity: .3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@media (max-width: 700px) {
    .lqn-step-header {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        margin: -80px 0 42px -50vw;
    }

    .lqn-step-logo,
    .lqn-step-empty {
        display: none;
    }

    .lqn-step-main h2 {
        font-size: 30px;
    }

    .lqn-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lqn-result-page {
        padding: 30px 22px;
    }

    .lqn-result-hero,
    .lqn-share-panel {
        grid-template-columns: 1fr;
    }

    .lqn-instant-answers,
    .lqn-result-followups,
    .lqn-result-page .lqn-optional-lead {
        grid-template-columns: 1fr;
    }

    .lqn-result-page .lqn-optional-lead .lqn-contact-grid,
    .lqn-result-page .lqn-optional-lead > label,
    .lqn-result-page .lqn-optional-lead > input,
    .lqn-result-page .lqn-optional-lead > .lqn-dialog-actions,
    .lqn-result-page .lqn-optional-lead > [data-lqn-response] {
        grid-column: 1;
    }

    .lqn-result-badge-wrap {
        justify-self: start;
    }
}
