.hbf {
    --hbf-blue: #0c5285;
    --hbf-text: #333333;
    --hbf-light-blue: #e9f7ff;
    --hbf-light-bg: #fafcfd;
    --hbf-panel: #f4f7fb;
    --hbf-gold: #e3a14e;
    --hbf-warm: #fdfaf6;
    --hbf-border: #d5e2e9;
    --hbf-soft-border: #c9d7df;
    --hbf-option-border: #b8c9d6;
    --hbf-white: #ffffff;
    background: var(--hbf-white);
    color: var(--hbf-text);
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    margin: 34px auto;
    max-width: 100%;
    overflow-x: clip;
}

.hbf *,
.hbf *::before,
.hbf *::after {
    border-radius: 0 !important;
    box-sizing: border-box;
}

.hbf__shell {
    background: var(--hbf-white);
    border: 0;
    box-shadow: none;
    margin: 0 auto;
    max-width: 1100px;
    overflow: visible;
}

.hbf__intro {
    margin: 0 auto 30px;
    max-width: 900px;
    text-align: center;
}

.hbf__intro p {
    color: var(--hbf-blue);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    margin: 0 0 10px;
}

.hbf__intro h2 {
    color: var(--hbf-text);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 auto 14px;
    max-width: 930px;
}

.hbf__intro span {
    color: var(--hbf-text);
    display: block;
    font-size: 17px;
    font-weight: 400;
    line-height: 2;
    margin: 0 auto;
    max-width: 850px;
}

.hbf__progress {
    background: var(--hbf-white);
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(var(--hbf-total-steps, 4), 1fr);
    margin: 34px auto 0;
    max-width: 860px;
    padding: 0;
    width: 100%;
}

.hbf__progress-segment {
    background: var(--hbf-white);
    border: 1px solid var(--hbf-border);
    display: block;
    height: 6px;
    transition: background 200ms ease, border-color 200ms ease;
}

.hbf__progress-segment.is-active {
    background: var(--hbf-blue);
    border-color: var(--hbf-blue);
}

.hbf__step-text {
    color: var(--hbf-text);
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.7;
    margin: 8px auto 0 !important;
    max-width: 860px;
    text-align: right;
}

.hbf__quiz,
.hbf__result {
    background: var(--hbf-white);
    border: 0;
    box-shadow: none;
    padding: 0;
}

.hbf__loading {
    align-items: center;
    animation: hbf-fade 220ms ease;
    background: var(--hbf-white);
    border: 1px solid var(--hbf-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 44px auto;
    max-width: 620px;
    min-height: 420px;
    padding: 40px 28px;
    text-align: center;
    width: min(100%, 620px);
}

.hbf__loading[hidden] {
    display: none !important;
}

.hbf__loading h3 {
    color: var(--hbf-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.6;
    margin: 18px 0 0;
}

.hbf__loading p {
    color: var(--hbf-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    margin-top: 10px;
}

.hbf__lottie {
    display: block;
    height: 160px;
    margin: 0 auto;
    width: 160px;
}

.hbf__lottie[hidden] {
    display: none !important;
}

.hbf__lottie svg,
.hbf__lottie canvas {
    display: block;
    height: 100% !important;
    object-fit: contain;
    width: 100% !important;
}

.hbf__loader-logo {
    display: block;
    height: 100% !important;
    object-fit: contain;
    width: 100% !important;
}

.hbf h2,
.hbf h3,
.hbf h4 {
    color: var(--hbf-text);
    line-height: 1.45;
    margin: 0;
}

.hbf p {
    color: var(--hbf-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.95;
    margin: 0;
}

.hbf img.hbf-icon {
    display: inline-block;
    height: 24px !important;
    max-height: 24px !important;
    max-width: 24px !important;
    object-fit: contain !important;
    width: 24px !important;
}

.hbf img.hbf-icon--profile {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 42px !important;
    width: 42px !important;
}

.hbf img.hbf-icon--small {
    height: 18px !important;
    max-height: 18px !important;
    max-width: 18px !important;
    width: 18px !important;
}

.hbf__step {
    animation: hbf-fade 220ms ease;
    border: 0;
    margin: 0 auto;
    max-width: 1100px;
    padding: 44px 0 0;
}

.hbf__step legend {
    color: var(--hbf-text);
    display: block;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0 auto 30px;
    max-width: 900px;
    text-align: center;
    width: 100%;
}

.hbf__step legend span {
    display: none;
}

.hbf__options {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 860px;
}

.hbf__option {
    cursor: pointer;
    min-width: 0;
}

.hbf__option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.hbf__option span {
    align-items: center;
    background: var(--hbf-white);
    border: 1px solid var(--hbf-option-border);
    box-shadow: none;
    color: var(--hbf-blue);
    display: flex;
    font-size: 20px;
    font-weight: 500;
    height: 58px;
    justify-content: center;
    line-height: 1.35;
    padding: 8px 16px;
    text-align: center;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.hbf__option span:hover {
    background: var(--hbf-white);
    border-color: var(--hbf-blue);
    box-shadow: 0 6px 16px rgba(12, 82, 133, 0.08);
    color: var(--hbf-blue);
}

.hbf__option input:checked + span {
    background: var(--hbf-blue);
    border-color: var(--hbf-blue);
    box-shadow: none;
    color: var(--hbf-white);
}

.hbf__option input:focus-visible + span,
.hbf button:focus-visible,
.hbf a:focus-visible,
.hbf input:focus-visible {
    outline: 2px solid var(--hbf-blue);
    outline-offset: 2px;
}

.hbf__error {
    color: #b42318 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    margin-top: 14px !important;
    text-align: center;
}

.hbf__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 34px;
}

.hbf button,
.hbf a.hbf__whatsapp,
.hbf a.hbf__account-login,
.hbf-card a {
    align-items: center;
    background: var(--hbf-blue);
    border: 1px solid var(--hbf-blue);
    box-shadow: none;
    color: var(--hbf-white);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    height: 58px;
    justify-content: center;
    min-width: 150px;
    padding: 8px 22px;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.hbf button:hover,
.hbf a.hbf__whatsapp:hover,
.hbf a.hbf__account-login:hover,
.hbf-card a:hover {
    background: var(--hbf-white);
    border-color: var(--hbf-blue);
    box-shadow: 0 6px 16px rgba(12, 82, 133, 0.08);
    color: var(--hbf-blue);
}

.hbf button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.hbf__account-login {
    height: 48px !important;
    min-width: 180px;
}

.hbf--loading .hbf__option,
.hbf--loading button {
    pointer-events: none;
}

.hbf .hbf__secondary,
.hbf .hbf__restart {
    background: var(--hbf-white);
    color: var(--hbf-blue);
}

.hbf .hbf__secondary:hover,
.hbf .hbf__restart:hover {
    background: var(--hbf-blue);
    color: var(--hbf-white);
}

.hbf__result {
    animation: hbf-fade 260ms ease;
    margin: 0 auto;
    max-width: 1100px;
    min-height: 420px;
    padding-top: 30px;
    width: 100%;
}

.hbf--result .hbf__intro {
    display: none;
}

.hbf__result-title {
    margin: 0 auto 30px;
    max-width: 760px;
    text-align: center;
}

.hbf__result-title h2 {
    font-size: 36px;
    font-weight: 500;
}

.hbf__result-title p {
    font-size: 16px;
    margin-top: 8px;
}

.hbf__profile {
    background: var(--hbf-white);
    border: 1px solid var(--hbf-soft-border);
    box-shadow: none;
    margin: 0 0 34px;
    padding: 0;
}

.hbf-profile__header {
    background: var(--hbf-warm);
    border-bottom: 1px solid var(--hbf-soft-border);
    padding: 24px;
    text-align: right;
}

.hbf-profile__header span {
    color: var(--hbf-blue);
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.hbf-profile__header h3 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hbf-profile__grid {
    display: grid;
    grid-template-columns: 1fr;
}

.hbf-profile__item {
    align-items: center;
    background: var(--hbf-white);
    border-bottom: 1px solid var(--hbf-border);
    border-left: 0;
    display: grid;
    gap: 4px 12px;
    grid-template-columns: 40px 1fr;
    min-height: 88px;
    padding: 16px 18px;
}

.hbf-profile__item:last-child {
    border-bottom: 0;
}

.hbf-profile__item img {
    grid-row: span 2;
    height: 42px;
    max-height: 42px;
    max-width: 42px;
    object-fit: contain;
    width: 42px;
}

.hbf-profile__item span {
    color: var(--hbf-blue);
    font-size: 14px;
    font-weight: 500;
}

.hbf-profile__item strong {
    color: var(--hbf-text);
    font-size: 16px;
    font-weight: 500;
}

.hbf__cards {
    direction: rtl;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    justify-content: center;
}

.hbf-card {
    animation: hbf-card-in 320ms ease both;
    animation-delay: var(--hbf-delay);
    background: var(--hbf-white);
    border: 1px solid var(--hbf-soft-border);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    overflow: hidden;
}

.hbf-card--best {
    background: var(--hbf-warm);
    border-color: var(--hbf-gold);
}

.hbf-card__label {
    align-items: center;
    background: var(--hbf-blue);
    color: var(--hbf-white);
    display: flex;
    font-size: 16px;
    font-weight: 600;
    gap: 8px;
    height: 46px;
    padding: 8px 16px;
}

.hbf-card--best .hbf-card__label {
    background: var(--hbf-gold);
}

.hbf-card__image {
    aspect-ratio: 1 / 1;
    background: var(--hbf-light-bg);
    display: block;
    object-fit: cover;
    width: 100%;
}

.hbf-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.hbf-card h4 {
    font-size: 24px;
    font-weight: 600;
}

.hbf-card p {
    font-size: 16px;
}

.hbf-card__why {
    background: var(--hbf-white);
    border: 1px solid var(--hbf-border);
    margin-top: 2px;
    padding: 14px 16px;
}

.hbf-card__why h5 {
    color: var(--hbf-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 8px;
}

.hbf-card__why ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hbf-card__why li {
    color: var(--hbf-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    padding-right: 20px;
    position: relative;
}

.hbf-card__why li::before {
    color: var(--hbf-blue);
    content: "✓";
    font-weight: 600;
    position: absolute;
    right: 0;
    top: 0;
}

.hbf-card__footer {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.hbf-card a {
    font-size: 18px;
    height: 52px;
    width: 100%;
}

.hbf__assist {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin: 28px 0;
}

.hbf__help-box,
.hbf__save {
    align-items: flex-start;
    background: var(--hbf-panel);
    border: 1px solid var(--hbf-border);
    box-shadow: none;
    display: flex;
    gap: 14px;
    padding: 22px;
}

.hbf__help-box > img {
    flex: 0 0 auto;
    height: 32px;
    object-fit: contain;
    width: 32px;
}

.hbf__save {
    display: block;
}

.hbf__help-box h3,
.hbf__save h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hbf__whatsapp {
    gap: 8px;
    height: 52px;
    margin-top: 16px;
}

.hbf__whatsapp img {
    display: inline-block;
    height: 24px !important;
    max-height: 24px !important;
    max-width: 24px !important;
    margin-left: 8px;
    object-fit: contain !important;
    width: 24px !important;
}

.hbf__save-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.hbf__mobile-field {
    display: block;
    flex: 1 1 auto;
    position: relative;
}

.hbf__mobile-field img {
    height: 18px !important;
    max-height: 18px !important;
    max-width: 18px !important;
    object-fit: contain !important;
    opacity: 0.45;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px !important;
}

.hbf__mobile-field:focus-within img,
.hbf__mobile-field.has-value img,
.hbf__mobile-field:has(input:not(:placeholder-shown)) img {
    display: none;
}

.hbf__save input {
    background: var(--hbf-white);
    border: 1px solid var(--hbf-border);
    color: var(--hbf-text);
    font-family: inherit;
    font-size: 16px;
    height: 48px;
    padding: 8px 42px 8px 12px;
    width: 100%;
}

.hbf__mobile-field input {
    padding-right: 42px;
}

.hbf__save button {
    height: 48px;
    font-size: 17px;
}

.hbf__save .hbf__account-login {
    font-size: 17px;
}

.hbf__message {
    color: var(--hbf-blue) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
}

.hbf__restart {
    display: flex !important;
    margin: 0 auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.hbf-account {
    margin: 0;
}

.hbf-account__header {
    border-bottom: 1px solid var(--hbf-border);
    margin-bottom: 22px;
    padding-bottom: 18px;
}

.hbf-account__header h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hbf-account__empty,
.hbf-account__result {
    background: var(--hbf-white);
    border: 1px solid var(--hbf-border);
    box-shadow: none;
    padding: 22px;
}

.hbf-account__empty a,
.hbf-account__products a {
    align-items: center;
    background: var(--hbf-blue);
    border: 1px solid var(--hbf-blue);
    color: var(--hbf-white);
    display: inline-flex;
    font-size: 16px;
    font-weight: 600;
    height: 46px;
    justify-content: center;
    margin-top: 14px;
    padding: 8px 18px;
    text-decoration: none;
}

.hbf-account__empty a:hover,
.hbf-account__products a:hover {
    background: var(--hbf-white);
    color: var(--hbf-blue);
}

.hbf-account__results {
    display: grid;
    gap: 14px;
}

.hbf-account__result time {
    color: var(--hbf-blue);
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.hbf-account__result h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hbf-account__products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hbf-account__products a {
    height: 42px;
    margin-top: 0;
}

.hbf-account__reasons {
    background: var(--hbf-warm);
    border: 1px solid var(--hbf-border);
    margin-top: 14px;
    padding: 14px 16px;
}

.hbf-account__reasons h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hbf-account__reasons ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hbf-account__reasons li {
    font-size: 14px;
    line-height: 1.8;
    padding-right: 20px;
    position: relative;
}

.hbf-account__reasons li::before {
    color: var(--hbf-blue);
    content: "✓";
    font-weight: 600;
    position: absolute;
    right: 0;
}

@keyframes hbf-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hbf-card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 700px) {
    .hbf__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hbf-profile__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hbf-profile__item:nth-child(odd) {
        border-left: 1px solid var(--hbf-border);
    }

    .hbf-profile__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .hbf__save-row {
        align-items: center;
        flex-direction: row;
    }
}

@media (min-width: 760px) {
    .hbf__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hbf__cards--count-1 {
        grid-template-columns: minmax(280px, 420px);
    }

    .hbf__cards--count-2 {
        grid-template-columns: repeat(2, minmax(280px, 420px));
    }

    .hbf-card--professional {
        grid-column: 1 / -1;
    }

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

@media (min-width: 1024px) {
    .hbf__profile {
        display: grid;
        grid-template-columns: 0.95fr 1.45fr;
    }

    .hbf-profile__header {
        border-bottom: 0;
        border-left: 1px solid var(--hbf-soft-border);
    }

    .hbf__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hbf__cards--count-1 {
        grid-template-columns: minmax(320px, 420px);
    }

    .hbf__cards--count-2 {
        grid-template-columns: repeat(2, minmax(320px, 420px));
    }

    .hbf__cards--count-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hbf-card--professional {
        grid-column: auto;
        order: 1;
    }

    .hbf-card--best {
        order: 2;
    }

    .hbf-card--alternative {
        order: 3;
    }
}

@media (max-width: 620px) {
    .hbf {
        margin: 24px auto;
    }

    .hbf__intro {
        margin-bottom: 28px;
    }

    .hbf__intro h2 {
        font-size: 31px;
    }

    .hbf__intro span {
        font-size: 15px;
    }

    .hbf__step legend {
        font-size: 28px;
    }

    .hbf__option span {
        font-size: 18px;
    }

    .hbf__lottie {
        height: 140px;
        width: 140px;
    }

    .hbf__nav {
        align-items: stretch;
        flex-direction: column-reverse;
        flex-wrap: nowrap;
    }

    .hbf__nav button {
        width: 100%;
    }

    .hbf button,
    .hbf a.hbf__whatsapp,
    .hbf a.hbf__account-login,
    .hbf-card a {
        width: 100%;
    }

    .hbf__help-box {
        flex-direction: column;
    }
}
