.mp-bmi,
.mp-bmi *,
.mp-bmi *::before,
.mp-bmi *::after {
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.mp-bmi {
    --mp-primary: #c74f70;
    --mp-primary-dark: #9f3657;
    --mp-ink: #3c2630;
    --mp-muted: #806d75;
    --mp-paper: #fffdfd;
    --mp-blush: #fff2f5;
    position: relative;
    width: min(100%, 760px);
    margin: 24px auto;
    padding: clamp(24px, 5vw, 48px);
    overflow: hidden;
    color: var(--mp-ink);
    background: linear-gradient(145deg, #fff 0%, #fff8fa 100%);
    border: 1px solid #f1dce3;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(113, 53, 72, .12);
    font-family: inherit;
    line-height: 1.8;
}

.mp-bmi button,
.mp-bmi input {
    font: inherit;
}

.mp-bmi__decor {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(1px);
}

.mp-bmi__decor--one {
    top: -90px;
    left: -70px;
    width: 220px;
    height: 220px;
    background: rgba(223, 121, 149, .11);
}

.mp-bmi__decor--two {
    right: -70px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    background: rgba(238, 179, 123, .10);
}

.mp-bmi__header,
.mp-bmi__progress,
.mp-bmi__step,
.mp-bmi__notice {
    position: relative;
    z-index: 1;
}

.mp-bmi__header {
    text-align: center;
}

.mp-bmi__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 2px 14px;
    color: var(--mp-primary-dark);
    background: #fbe7ed;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.mp-bmi__header h2 {
    margin: 10px 0 2px;
    color: var(--mp-ink);
    font-size: clamp(29px, 5vw, 42px);
    line-height: 1.35;
}

.mp-bmi__header p {
    margin: 0;
    color: var(--mp-muted);
    font-size: 15px;
}

.mp-bmi__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 34px;
}

.mp-bmi__progress span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a8999f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mp-bmi__progress span b {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    color: #97858d;
    background: #f3edef;
    border-radius: 50%;
    font-size: 12px;
}

.mp-bmi__progress span.is-active,
.mp-bmi__progress span.is-done {
    color: var(--mp-primary-dark);
}

.mp-bmi__progress span.is-active b,
.mp-bmi__progress span.is-done b {
    color: #fff;
    background: var(--mp-primary);
    box-shadow: 0 5px 15px rgba(199, 79, 112, .25);
}

.mp-bmi__progress i {
    width: clamp(15px, 5vw, 60px);
    height: 1px;
    margin: 0 8px;
    background: #eadde1;
}

.mp-bmi__step {
    display: none;
    animation: mp-bmi-enter .35s ease both;
}

.mp-bmi__step.is-active {
    display: block;
}

@keyframes mp-bmi-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mp-bmi__step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.mp-bmi__step-title h3 {
    margin: 0;
    color: var(--mp-ink);
    font-size: 21px;
    line-height: 1.5;
}

.mp-bmi__step-title p {
    margin: 1px 0 0;
    color: var(--mp-muted);
    font-size: 13px;
}

.mp-bmi__icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--mp-primary);
    background: #fbe8ee;
    border-radius: 17px;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
}

.mp-bmi__icon--measure {
    color: #b57435;
    background: #fff2dd;
    font-size: 12px;
    letter-spacing: 1px;
}

.mp-bmi__label {
    display: block;
    margin-bottom: 7px;
    color: #5b424c;
    font-size: 13px;
    font-weight: 800;
}

.mp-bmi__input-wrap,
.mp-bmi__number-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfd2d7;
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.mp-bmi__input-wrap:focus-within,
.mp-bmi__number-input:focus-within {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 4px rgba(199, 79, 112, .09);
}

.mp-bmi__input-wrap input,
.mp-bmi__number-input input {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    color: var(--mp-ink);
    background: transparent;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    direction: rtl;
}

.mp-bmi__input-wrap > span,
.mp-bmi__number-input b {
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 3px 9px;
    color: #8c7981;
    background: #f8f3f5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.mp-bmi__button {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--mp-primary), #ac3f61);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(180, 62, 96, .22);
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    transition: transform .2s, box-shadow .2s;
}

.mp-bmi__button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(180, 62, 96, .28);
}

.mp-bmi__button:disabled {
    cursor: wait;
    opacity: .7;
}

.mp-bmi__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mp-bmi-spin .7s linear infinite;
}

@keyframes mp-bmi-spin { to { transform: rotate(360deg); } }

.mp-bmi__trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.mp-bmi [data-step="1"] .mp-bmi__button {
    margin-top: 18px;
}

.mp-bmi__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.mp-bmi__number-input b {
    margin-right: 0;
    margin-left: 10px;
}

.mp-bmi__back,
.mp-bmi__restart {
    display: block;
    margin: 14px auto 0;
    padding: 5px 12px;
    color: var(--mp-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mp-bmi__notice {
    margin: -12px 0 20px;
    padding: 10px 14px;
    color: #8f2948;
    background: #fff0f3;
    border: 1px solid #f6ced9;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
}

.mp-bmi__notice[hidden] {
    display: none;
}

.mp-bmi__result-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 8vw, 75px);
    margin-bottom: 30px;
    text-align: center;
}

.mp-bmi__result-head > div:first-child span {
    display: block;
    color: var(--mp-muted);
    font-size: 13px;
}

.mp-bmi__result-head strong {
    display: block;
    margin: -4px 0;
    color: var(--mp-result, var(--mp-primary));
    font-size: clamp(52px, 10vw, 72px);
    line-height: 1.3;
}

.mp-bmi__result-head em {
    display: inline-block;
    padding: 3px 14px;
    color: var(--mp-result, var(--mp-primary));
    background: color-mix(in srgb, var(--mp-result, var(--mp-primary)) 12%, white);
    border-radius: 999px;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.mp-bmi__ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.mp-bmi__ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mp-bmi__ring circle {
    fill: none;
    stroke-width: 12;
}

.mp-bmi__ring-bg {
    stroke: #f1e9ec;
}

.mp-bmi__ring-value {
    stroke: var(--mp-result, var(--mp-primary));
    stroke-dasharray: 351.86;
    stroke-dashoffset: 351.86;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease .15s;
}

.mp-bmi__ring > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--mp-result, var(--mp-primary));
    font-size: 27px;
    font-weight: 900;
}

.mp-bmi__result--underweight { --mp-result: #4d9fcb; }
.mp-bmi__result--normal { --mp-result: #4eaa78; }
.mp-bmi__result--overweight { --mp-result: #e29b36; }
.mp-bmi__result--obese { --mp-result: #cf4e55; }

.mp-bmi__scale {
    margin: 0 0 28px;
}

.mp-bmi__scale-bar {
    position: relative;
    height: 12px;
    background: linear-gradient(to left, #4d9fcb 0 25%, #4eaa78 25% 50%, #e3a03d 50% 75%, #cf4e55 75% 100%);
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #eadde1;
}

.mp-bmi__scale-bar i {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 5px solid var(--mp-result, var(--mp-primary));
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(55, 35, 43, .2);
    transform: translate(50%, -50%);
    transition: right .8s ease;
}

.mp-bmi__scale-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 10px;
    text-align: center;
}

.mp-bmi__scale-labels span {
    color: #554149;
    font-size: 11px;
    font-weight: 800;
}

.mp-bmi__scale-labels small {
    display: block;
    color: #a18f96;
    font-size: 9px;
    font-weight: 500;
}

.mp-bmi__advice {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #fff8f0;
    border: 1px solid #f5e1c9;
    border-radius: 18px;
}

.mp-bmi__advice-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #b66b38;
    background: #ffead4;
    border-radius: 13px;
    font-size: 24px;
    font-weight: 700;
}

.mp-bmi__advice h3 {
    margin: 0 0 4px;
    color: #663b2b;
    font-size: 16px;
}

.mp-bmi__advice p {
    margin: 0 0 5px;
    color: #6f554c;
    font-size: 13px;
}

.mp-bmi__advice ul {
    margin: 7px 0 0;
    padding-right: 18px;
    color: #6f554c;
    font-size: 12px;
}

.mp-bmi__advice li {
    margin: 3px 0;
}

.mp-bmi__disclaimer {
    margin: 16px 0 0;
    padding: 10px 13px;
    color: #8c7b82;
    background: #f8f5f6;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 600px) {
    .mp-bmi {
        margin: 10px auto;
        padding: 25px 18px;
        border-radius: 21px;
    }

    .mp-bmi__progress span {
        font-size: 0;
    }

    .mp-bmi__progress span b {
        font-size: 12px;
    }

    .mp-bmi__progress i {
        flex: 1;
    }

    .mp-bmi__fields {
        grid-template-columns: 1fr;
    }

    .mp-bmi__result-head {
        gap: 20px;
    }

    .mp-bmi__ring {
        width: 115px;
        height: 115px;
    }

    .mp-bmi__scale-labels span {
        font-size: 9px;
    }

    .mp-bmi__scale-labels small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-bmi *,
    .mp-bmi *::before,
    .mp-bmi *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Compact calculator presentation for the Mama Parisa site */
.mp-bmi {
    --mp-primary: #126af3;
    --mp-primary-dark: #087f72;
    --mp-ink: #222936;
    --mp-muted: #8290a1;
    width: min(100%, 1280px);
    min-height: 455px;
    margin: 28px auto;
    padding: 31px 28px 36px;
    background: #f3f3f3;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
}

.mp-bmi__decor,
.mp-bmi__eyebrow,
.mp-bmi__progress {
    display: none;
}

.mp-bmi__header h2 {
    margin: 0;
    color: #08b982;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 900;
}

.mp-bmi__header p {
    margin-top: 5px;
    color: #1376e9;
    font-size: 19px;
    font-weight: 800;
}

.mp-bmi__header {
    margin-bottom: 29px;
}

.mp-bmi__step {
    width: min(100%, 370px);
    margin: 0 auto;
}

.mp-bmi__step-title {
    margin-bottom: 16px;
    justify-content: center;
}

.mp-bmi__step-title h3 {
    display: none;
}

.mp-bmi__step-title p {
    color: #8594a3;
    font-size: 12px;
    text-align: center;
}

.mp-bmi__icon {
    display: none;
}

.mp-bmi__label {
    color: #667486;
    font-size: 12px;
}

.mp-bmi__input-wrap,
.mp-bmi__number-input {
    min-height: 47px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(50, 64, 80, .03);
}

.mp-bmi__input-wrap input,
.mp-bmi__number-input input {
    min-height: 45px;
    padding: 9px 13px;
    color: #4e5d6e;
    font-size: 13px;
}

.mp-bmi__input-wrap > span,
.mp-bmi__number-input b {
    margin-left: 8px;
    color: #9aa8b8;
    background: transparent;
    font-size: 11px;
}

.mp-bmi__button {
    min-height: 49px;
    background: #126af3;
    border-radius: 16px;
    box-shadow: 0 9px 17px rgba(18, 106, 243, .22);
    font-size: 14px;
}

.mp-bmi__button:hover:not(:disabled) {
    box-shadow: 0 12px 22px rgba(18, 106, 243, .28);
}

.mp-bmi__back,
.mp-bmi__restart {
    color: #8ea0b3;
    font-size: 11px;
}

.mp-bmi__notice {
    width: min(100%, 370px);
    margin: -8px auto 15px;
    color: #c34a61;
    background: #fff4f5;
    border-color: #f4d6db;
    font-size: 11px;
}

.mp-bmi__fields {
    gap: 10px;
    margin-bottom: 17px;
}

.mp-bmi__result-head {
    margin-bottom: 22px;
}

.mp-bmi__advice {
    background: #fff;
    border-color: #e7edf4;
}

.mp-bmi__disclaimer {
    background: #eceff2;
}

@media (max-width: 600px) {
    .mp-bmi {
        min-height: 420px;
        padding: 25px 16px 30px;
        border-radius: 8px;
    }

    .mp-bmi__header p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-bmi *,
    .mp-bmi *::before,
    .mp-bmi *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
