/* ===========================================
   HEALLY SECTION - Cópia exata do getheally.com
   MVI Saúde - Seção "Lose Weight"
   =========================================== */

/* Seção principal */
.mp-block-2 {
    background: #065967;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.mp-block-border-container {
    position: relative;
    padding: 60px 0 80px;
}

/* Background com linhas SVG */
.mp-block-subbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mp-block-subbg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Container interno */
.mp-block__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header com título */
.mp-block__header {
    text-align: center;
    margin-bottom: 40px;
}

.mp-block__header h2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 768px) {
    .mp-block__header h2 {
        font-size: 2rem;
    }
}

/* Bloco promocional com imagem */
.mp-block-promo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.mp-block-promo-block__img {
    max-width: 450px;
    margin-bottom: 30px;
}

.mp-block-promo-block__img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Botões */
.mp-block-promo-block__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-rounded-blur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-rounded-blur.btn-rounded-white {
    background: #fff;
    color: #065967;
    border-color: #fff;
}

.btn-rounded-blur.btn-rounded-white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-rounded-blur:not(.btn-rounded-white) {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-rounded-blur:not(.btn-rounded-white):hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Grid de blocos */
.mp-block__grid-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
}

@media (max-width: 991px) {
    .mp-block__grid-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .mp-block__grid-blocks {
        grid-template-columns: 1fr;
    }
}

/* Item do grid base */
.mp-block__grid-item {
    background: rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mp-block__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Título do item */
.mp-block__grid-item-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.mp-block__grid-item-title span {
    color: #2EBFD8;
}

/* Imagem do item */
.mp-block__grid-item-img {
    margin: 20px 0;
    text-align: center;
}

.mp-block__grid-item-img img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Descrição do item */
.mp-block__grid-item-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Botão do item */
.mp-block__grid-item-btn {
    margin-top: auto;
}

.btn-grid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #2EBFD8;
    color: #065967;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-grid:hover {
    background: #fff;
    color: #065967;
    transform: translateY(-2px);
}

/* Grid item específicos */
.mp-block__gi-2 {
    display: flex;
    flex-direction: column;
}

/* Card com imagem de fundo */
.mp-block__gi-4 {
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mp-block__grid-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: 24px;
    overflow: hidden;
}

.mp-block__grid-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.mp-block__gi-4 .mp-block__grid-item-title {
    position: relative;
    z-index: 1;
}

/* Card grande que ocupa 2 colunas */
.mp-block__gi-5 {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

@media (max-width: 576px) {
    .mp-block__gi-5 {
        grid-column: span 1;
    }
}

/* Grid de imagens dentro do card */
.mp-block__gi-5-grid-image {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}

.mp-block__gi-5-grid-image img {
    max-height: 120px;
    width: auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .mp-block__gi-5-grid-image {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .mp-block__gi-5-grid-image img {
        max-width: 100%;
    }
}

/* Slider de peso */
.mp-block-slide {
    margin-top: 20px;
}

.mp-block-slide__inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mp-block-slide__start-weight,
.mp-block-slide__lose {
    text-align: center;
}

.mp-block-slide__start-weight-title,
.mp-block-slide__lose-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.mp-block-slide__start-weight-value,
.mp-block-slide__lose-value {
    color: #2EBFD8;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Range slider */
.calc__range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    outline: none;
    -webkit-appearance: none;
}

.calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2EBFD8;
    cursor: pointer;
    border: 3px solid #fff;
}

.calc__range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2EBFD8;
    cursor: pointer;
    border: 3px solid #fff;
}

/* Footer da seção */
.mp-block-2__text-footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-top: 40px;
    padding: 0 20px;
}

/* Posicionamento específico dos cards no grid */
.mpb1-gi1 {
    grid-column: 1;
    grid-row: 1;
}

.mpb1-gi2 {
    grid-column: 2;
    grid-row: 1;
}

.mpb1-gi3 {
    grid-column: 1;
    grid-row: 2;
}

.mpb1-gi4 {
    grid-column: 2;
    grid-row: 2;
}

.mpb1-gi5 {
    grid-column: 1 / 3;
    grid-row: 3;
}

@media (max-width: 991px) {
    .mpb1-gi1 { grid-column: 1; grid-row: 1; }
    .mpb1-gi2 { grid-column: 2; grid-row: 1; }
    .mpb1-gi3 { grid-column: 1; grid-row: 2; }
    .mpb1-gi4 { grid-column: 2; grid-row: 2; }
    .mpb1-gi5 { grid-column: 1 / 3; grid-row: 3; }
}

@media (max-width: 576px) {
    .mpb1-gi1,
    .mpb1-gi2,
    .mpb1-gi3,
    .mpb1-gi4,
    .mpb1-gi5 {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mp-block__grid-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.mpb1-gi1 { animation-delay: 0.1s; }
.mpb1-gi2 { animation-delay: 0.2s; }
.mpb1-gi4 {
    grid-column: 2;
    grid-row: 2;
}
.mpb1-gi5 {
    grid-column: 1 / 3;
    grid-row: 3;
}

/* Calculadora de IMC */
.mp-block__gi-3 {
    display: flex;
    flex-direction: column;
}

.mp-block-calc {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mp-block-calc__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.mp-block-calc__elipses {
    width: 200px;
    height: 200px;
    position: relative;
}

.mp-block-calc__elipses svg {
    width: 100%;
    height: 100%;
}

.mp-block-calc__main-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mp-block-calc__main-value-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.mp-block-calc__main-value-value {
    color: #2EBFD8;
    font-size: 2.5rem;
    font-weight: 700;
}

.mp-block-calc__list {
    width: 100%;
}

.mp-block-calc__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp-block-calc__list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.mp-block-calc__list li.active {
    background: rgba(46, 191, 216, 0.3);
    color: #fff;
}

.mp-block-calc__list .calc-list-1.active { background: rgba(255, 193, 7, 0.3); }
.mp-block-calc__list .calc-list-2.active { background: rgba(40, 167, 69, 0.3); }
.mp-block-calc__list .calc-list-3.active { background: rgba(255, 152, 0, 0.3); }
.mp-block-calc__list .calc-list-4.active { background: rgba(220, 53, 69, 0.3); }

.mp-block-calc__inputs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.mp-block-calc__inputs input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mp-block-calc__inputs input::placeholder {
    color: rgba(255,255,255,0.5);
}

.mp-block-calc__inputs input:focus {
    outline: none;
    border-color: #2EBFD8;
    background: rgba(255,255,255,0.15);
}

/* Grid blocks centralizado */
.mp-block__grid-blocks {
    justify-content: center;
}

/* Ajuste para gi-3 no responsivo */
@media (max-width: 991px) {
    .mpb1-gi3 { 
        grid-column: 1 / 3; 
        grid-row: 3; 
    }
    .mpb1-gi5 { 
        grid-column: 1 / 3; 
        grid-row: 4; 
    }
}

@media (max-width: 576px) {
    .mpb1-gi3 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .mp-block-calc__inputs {
        flex-direction: column;
    }
}

.mpb1-gi3 {
    grid-column: 1;
    grid-row: 2;
}
