.hmf-app *{
    box-sizing:border-box;
}

.hmf-app{
    width:100%;
    padding:15px;
    font-family:Arial,sans-serif;
}

.hmf-container{
    max-width:620px;
    margin:auto;
    background:#ffffff;
    border-radius:22px;
    padding:30px;
    box-shadow:0 8px 35px rgba(0,0,0,0.08);
}

.hmf-progress-wrap{
    margin-bottom:25px;
}

.hmf-progress-bar{
    width:100%;
    height:8px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
}

.hmf-progress-fill{
    width:14%;
    height:100%;
    background:#0f766e;
    transition:0.4s;
}

.hmf-progress-text{
    margin-top:8px;
    font-size:13px;
    color:#666666;
}

.hmf-step{
    display:none;
}

.hmf-step-active{
    display:block;
}

.hmf-title{
    font-size:28px;
    line-height:1.4;
    margin-bottom:22px;
    font-weight:700;
}

.hmf-card-group{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-bottom:25px;
}

.hmf-card{
    border:2px solid #e5e7eb;
    border-radius:16px;
    padding:18px;
    text-align:center;
    cursor:pointer;
    transition:0.3s;
}

.hmf-card input{
    display:none;
}

.hmf-card.active{
    border-color:#0f766e;
    background:#ecfdf5;
}

.hmf-card span{
    font-size:16px;
    font-weight:600;
}

.hmf-input{
    width:100%;
    padding:14px 16px;
    border:1px solid #d1d5db;
    border-radius:12px;
    margin-bottom:18px;
    font-size:15px;
}

.hmf-input:focus{
    outline:none;
    border-color:#0f766e;
}

.hmf-height-switch{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.hmf-unit-btn{
    flex:1;
    border:none;
    background:#f1f5f9;
    padding:13px;
    border-radius:10px;
    cursor:pointer;
    font-size:15px;
}

.hmf-unit-active{
    background:#0f766e;
    color:#ffffff;
}

.hmf-feet-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.hmf-btn-group{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:15px;
}

.hmf-next-btn,
.hmf-submit-btn{
    background:#0f766e;
    color:#ffffff;
    border:none;
    padding:14px 22px;
    border-radius:12px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    min-width:120px;
}

.hmf-prev-btn{
    background:#f1f5f9;
    border:none;
    padding:14px 22px;
    border-radius:12px;
    cursor:pointer;
    font-size:15px;
    min-width:120px;
}

.hmf-next-btn:hover,
.hmf-submit-btn:hover{
    opacity:0.9;
}

.hmf-bmi-wrapper{
    text-align:center;
}

.hmf-bmi-title{
    font-size:26px;
    margin-bottom:10px;
}

.hmf-bmi-number{
    font-size:65px;
    font-weight:800;
    color:#e76f51;
    line-height:1;
}

.hmf-bmi-line{
    width:120px;
    height:2px;
    background:#111111;
    margin:15px auto;
}

.hmf-bmi-description{
    font-size:18px;
    line-height:1.6;
    margin-bottom:25px;
}

.hmf-bmi-highlight{
    background:#f4d7ae;
    padding:3px 8px;
    border-radius:6px;
    color:#b45309;
}

.hmf-bmi-scale{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
    margin-top:25px;
}

.hmf-bmi-scale-item{
    text-align:center;
}

.hmf-bmi-avatar{
    width:40px;
    height:90px;
    border-radius:30px;
    margin:auto auto 8px;
    opacity:0.3;
}

.hmf-active-scale .hmf-bmi-avatar{
    opacity:1;
}

.hmf-under{
    background:#cfe8f6;
}

.hmf-normal{
    background:#c9d3e5;
}

.hmf-over{
    background:#9b59b6;
}

.hmf-obese{
    background:#efc4d4;
}

.hmf-extreme{
    background:#f4b6c2;
}

.hmf-bmi-scale-item span{
    display:block;
    font-size:11px;
    font-weight:700;
}

.hmf-bmi-scale-item small{
    display:block;
    font-size:10px;
}

.hmf-thankyou{
    text-align:center;
    padding:50px 20px;
}

.hmf-thankyou-icon{
    width:80px;
    height:80px;
    background:#0f766e;
    color:#ffffff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto auto 20px;
    font-size:36px;
}

.hmf-thankyou h2{
    font-size:34px;
    margin-bottom:10px;
}

.hmf-thankyou p{
    font-size:17px;
    color:#666666;
}

.hmf-error{
    border-color:red !important;
}

@media(max-width:768px){

    .hmf-container{
        padding:20px;
        border-radius:18px;
    }

    .hmf-title{
        font-size:22px;
    }

    .hmf-card-group{
        grid-template-columns:1fr;
    }

    .hmf-btn-group{
        flex-direction:column;
    }

    .hmf-next-btn,
    .hmf-prev-btn,
    .hmf-submit-btn{
        width:100%;
    }

    .hmf-bmi-number{
        font-size:52px;
    }

    .hmf-bmi-description{
        font-size:15px;
    }

    .hmf-bmi-scale{
        grid-template-columns:repeat(2,1fr);
    }
}