.bs-help-global {
    --bs-navy: #14233d;
    --bs-navy-dark: #0e1a2d;
    --bs-yellow: #ffe814;
    --bs-text: #14233d;
    --bs-muted: #5d6675;
    --bs-border: #dde3ea;
    --bs-soft: #f4f7fa;
    --bs-soft-2: #eef3f7;
}

/* =========================================================
   MODAL SHELL
   ========================================================= */

body.bs-modal-open {
    overflow: hidden;
}

.bs-help-global .bs-modal[hidden] {
    display: none !important;
}

.bs-help-global .bs-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bs-help-global .bs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 14, 25, 0.76);
    backdrop-filter: blur(2px);
}

.bs-help-global .bs-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1000px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid rgba(20, 35, 61, 0.10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.30);
}

.bs-help-global .bs-modal__close,
.bs-help-global .bs-modal__close:hover,
.bs-help-global .bs-modal__close:focus,
.bs-help-global .bs-modal__close:active {
    position: absolute !important;
    top: 16px !important;
    right: 18px !important;
    left: auto !important;
    z-index: 5;
    display: flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(8, 20, 39, 0.18) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.bs-help-global .bs-modal__close:hover,
.bs-help-global .bs-modal__close:focus-visible {
    background: rgba(8, 20, 39, 0.30) !important;
}

/* =========================================================
   HEADER — DESIGN 2
   ========================================================= */

.bs-help-global .bs-modal__header {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    min-height: 160px;
    margin: 0;
    border-bottom: 1px solid var(--bs-border);
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.bs-help-global .bs-modal__header-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 34px;
    background: #fff;
}

.bs-help-global .bs-modal__header h3 {
    margin: 0 0 8px;
    color: var(--bs-navy);
    font-size: clamp(34px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.bs-help-global .bs-modal__header p {
    max-width: 620px;
    margin: 0;
    color: var(--bs-muted);
    font-size: 16px;
    line-height: 1.5;
}

.bs-help-global .bs-modal__visual {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    background: var(--bs-navy-dark);
}

.bs-help-global .bs-modal__visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bs-help-global .bs-modal__visual-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(14, 26, 45, 0.58) 0%,
            rgba(14, 26, 45, 0.78) 60%,
            rgba(14, 26, 45, 0.90) 100%
        );
}

.bs-help-global .bs-modal__visual-message {
    position: absolute;
    right: 30px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bs-help-global .bs-modal__visual-accent {
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 9px;
    background: var(--bs-yellow);
}

/* =========================================================
   FORM LAYOUT
   ========================================================= */

.bs-help-global .bs-help-form {
    display: grid;
    gap: 10px;
    padding: 18px 26px 24px;
}

.bs-help-global .bs-field,
.bs-help-global .bs-help-question {
    position: relative;
    margin: 0;
    padding: 18px 18px 18px 70px;
    border: 1px solid var(--bs-border);
    border-radius: 9px;
    background: #fff;
}

.bs-help-global .bs-field::before,
.bs-help-global .bs-help-question::before,
.bs-help-global .bs-help-step::before {
    position: absolute;
    left: 18px;
    top: 50%;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbe3ea;
    color: var(--bs-navy);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}

.bs-help-global .bs-field::before {
    content: "1";
    top: calc(50% + 14px);
    background: var(--bs-yellow);
}

.bs-help-global .bs-help-question::before,
.bs-help-global .bs-help-step::before {
    content: attr(data-bs-step-number);
}

.bs-help-global .bs-field label,
.bs-help-global .bs-help-question__title {
    display: block;
    margin: 0 0 8px;
    color: var(--bs-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.bs-help-global .bs-field select {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 14px;
    border: 1px solid var(--bs-border);
    border-radius: 7px;
    background-color: #fff;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314233d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 8px;
    color: var(--bs-text);
    font-family: inherit;
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.bs-help-global .bs-field select:focus,
.bs-help-global .bs-field textarea:focus {
    border-color: var(--bs-navy);
    outline: 2px solid rgba(20, 35, 61, 0.10);
    outline-offset: 1px;
}

.bs-help-global .bs-field textarea {
    width: 100%;
    min-height: 112px;
    padding: 12px 14px;
    border: 1px solid var(--bs-border);
    border-radius: 7px;
    background: #fff;
    color: var(--bs-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
}

.bs-help-global .bs-help-not-sure {
    margin-top: 16px;
}

.bs-help-global .bs-help-not-sure[hidden],
.bs-help-global .bs-help-progress[hidden],
.bs-help-global .bs-help-question[hidden],
.bs-help-global .bs-help-question__helper[hidden] {
    display: none !important;
}

.bs-help-global .bs-help-helper,
.bs-help-global .bs-help-question__helper {
    margin: -2px 0 10px;
    color: var(--bs-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* =========================================================
   ANSWERED STEPS
   ========================================================= */

.bs-help-global .bs-help-progress {
    display: grid;
    gap: 9px;
}

.bs-help-global .bs-help-step {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px 13px 70px;
    border: 1px solid var(--bs-border);
    border-radius: 9px;
    background: linear-gradient(90deg, #f3f6f9 0%, #eef3f7 100%);
}

.bs-help-global .bs-help-step__content {
    min-width: 0;
}

.bs-help-global .bs-help-step__question {
    display: block;
    margin-bottom: 3px;
    color: var(--bs-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.bs-help-global .bs-help-step__answer {
    display: block;
    color: var(--bs-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.bs-help-global .bs-help-step__change,
.bs-help-global .bs-help-step__change:hover,
.bs-help-global .bs-help-step__change:focus,
.bs-help-global .bs-help-step__change:active {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 16px !important;
    border: 1px solid #cfd8e1 !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--bs-navy) !important;
    box-shadow: none !important;
    transform: none !important;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.bs-help-global .bs-help-step__change:hover,
.bs-help-global .bs-help-step__change:focus-visible {
    border-color: var(--bs-navy) !important;
    background: #fff !important;
}

/* =========================================================
   CURRENT QUESTION
   ========================================================= */

.bs-help-global .bs-help-question {
    display: grid;
    gap: 10px;
    border: 1px solid var(--bs-border);
}

.bs-help-global .bs-help-question__title {
    margin: 0 0 3px;
}

.bs-help-global .bs-help-options {
    display: grid;
    gap: 9px;
}

.bs-help-global .bs-help-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.bs-help-global .bs-help-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bs-help-global .bs-help-choice span {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--bs-border);
    border-radius: 7px;
    background: #fff;
    color: var(--bs-text);
    font-size: 15px;
    line-height: 1.4;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.bs-help-global .bs-help-choice:hover span {
    border-color: #b9c5d0;
}

.bs-help-global .bs-help-choice input:focus-visible + span {
    outline: 2px solid var(--bs-navy);
    outline-offset: 2px;
}

.bs-help-global .bs-help-choice input:checked + span {
    border-color: var(--bs-navy);
    background: var(--bs-navy);
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--bs-yellow);
}

/* =========================================================
   RESULTS
   ========================================================= */

.bs-help-global .bs-help-result {
    padding: 20px 22px;
    border: 1px solid #e2e7ec;
    border-radius: 9px;
    background: var(--bs-soft);
    color: var(--bs-text);
}

.bs-help-global .bs-help-result > strong:first-child {
    display: block;
    color: var(--bs-navy);
    font-size: 16px;
}

.bs-help-global .bs-help-result > p {
    margin: 8px 0 0;
}

.bs-help-global .bs-help-result__cards {
    display: grid;
    gap: 12px;
    margin-top: 0;
}

.bs-help-global .bs-help-result-card {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 184px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d9e0e7;
    border-radius: 9px;
    background: #fff;
}

.bs-help-global .bs-help-result-card.has-image {
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
}

.bs-help-global .bs-help-result-card__media {
    min-height: 184px;
    padding: 18px;
    background: linear-gradient(135deg, #fff 0%, #f2f5f8 100%);
}

.bs-help-global .bs-help-result-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 148px;
    object-fit: contain;
}

.bs-help-global .bs-help-result-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 20px 22px;
}

.bs-help-global .bs-help-result-card__label {
    display: inline-flex;
    width: max-content;
    margin-bottom: 6px;
    color: var(--bs-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bs-help-global .bs-help-result-card.is-best-fit .bs-help-result-card__label {
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--bs-yellow);
    color: var(--bs-navy);
}

.bs-help-global .bs-help-result-card__name {
    display: block;
    color: var(--bs-navy);
    font-size: 23px;
    line-height: 1.2;
}

.bs-help-global .bs-help-result-card p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--bs-text);
    line-height: 1.5;
}

.bs-help-global .bs-help-result-card__actions,
.bs-help-global .bs-help-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.bs-help-global .bs-help-result__actions {
    justify-content: flex-end;
}

.bs-help-global .bs-help-result-link,
.bs-help-global .bs-help-result-link:hover,
.bs-help-global .bs-help-result-link:focus,
.bs-help-global .bs-help-result-link:active {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--bs-yellow) !important;
    color: var(--bs-navy) !important;
    box-shadow: none !important;
    transform: none !important;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: none;
    cursor: pointer;
}

.bs-help-global .bs-help-result-link:hover,
.bs-help-global .bs-help-result-link:focus-visible {
    background: #f3dc00 !important;
}

/* =========================================================
   POST-RESULT CONFIGURATION
   Secondary context only; does not affect Product Fit.
   ========================================================= */

.bs-help-global .bs-help-configuration {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #d9e0e7;
}

.bs-help-global .bs-help-configuration__title {
    display: block;
    margin-bottom: 10px;
    color: var(--bs-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.bs-help-global .bs-help-configuration__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
}

.bs-help-global .bs-help-configuration__option {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: var(--bs-text);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.bs-help-global .bs-help-configuration__option input {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--bs-navy);
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {
    .bs-help-global .bs-modal__header {
        grid-template-columns: 1fr 300px;
    }

    .bs-help-global .bs-modal__header-copy {
        padding: 30px;
    }

    .bs-help-global .bs-help-form {
        padding: 20px 22px 24px;
    }

    .bs-help-global .bs-help-configuration__options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bs-help-global .bs-modal {
        align-items: center;
        padding: 12px;
    }

    .bs-help-global .bs-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
    }

    .bs-help-global .bs-modal__header {
        display: block;
        min-height: 0;
        border-radius: 14px 14px 0 0;
    }

    .bs-help-global .bs-modal__header-copy {
        padding: 28px 56px 24px 22px;
    }

    .bs-help-global .bs-modal__header h3 {
        font-size: 31px;
    }

    .bs-help-global .bs-modal__visual {
        display: none;
    }

    .bs-help-global .bs-modal__close,
    .bs-help-global .bs-modal__close:hover,
    .bs-help-global .bs-modal__close:focus,
    .bs-help-global .bs-modal__close:active {
        top: 10px !important;
        right: 10px !important;
        background: transparent !important;
        color: var(--bs-navy) !important;
    }

    .bs-help-global .bs-help-form {
        gap: 10px;
        padding: 16px 14px 20px;
    }

    .bs-help-global .bs-field,
    .bs-help-global .bs-help-question,
    .bs-help-global .bs-help-step {
        padding-left: 54px;
    }

    .bs-help-global .bs-field::before,
    .bs-help-global .bs-help-question::before,
    .bs-help-global .bs-help-step::before {
        left: 12px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .bs-help-global .bs-help-step {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 12px;
    }

    .bs-help-global .bs-help-step__change {
        align-self: flex-start;
    }

    .bs-help-global .bs-help-result {
        padding: 14px;
    }

    .bs-help-global .bs-help-result-card,
    .bs-help-global .bs-help-result-card.has-image {
        grid-template-columns: 1fr;
    }

    .bs-help-global .bs-help-result-card__media {
        min-height: 150px;
        max-height: 190px;
    }

    .bs-help-global .bs-help-result-card__media img {
        min-height: 120px;
        max-height: 155px;
    }

    .bs-help-global .bs-help-result-card__body {
        padding: 17px;
    }

    .bs-help-global .bs-help-result__actions {
        justify-content: flex-start;
    }
}
