.bmi-calculator-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 28px;
    background: #fffcf8;
    border-radius: 18px;
    border: 1px solid #eadbca;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 4px 24px rgba(120, 80, 30, 0.10);
}

.bmi-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #2c241c;
    text-align: center;
}

.bmi-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: #8d7b68;
    text-align: center;
}

.bmi-field {
    margin-bottom: 16px;
}

.bmi-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #C5AB8D;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.bmi-field input {
    width: 100%;
    padding: 11px 14px;
    font-size: 16px;
    border: 1px solid #eadbca;
    border-radius: 10px;
    background: #fff8f0;
    color: #2c241c;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.bmi-field input:focus {
    border-color: #C5AB8D;
}

.bmi-message {
    margin-top: 16px;
    padding: 20px 22px;
    background: #fdf8f2;
    border-radius: 14px;
    border: 1px solid #eadbca;
    border-left: 4px solid #C5AB8D;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #4a3f35;
    text-align: justify !important;
    text-justify: inter-word !important;
}

#bmi-calculate-btn {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    background: linear-gradient(135deg, #C5AB8D 0%, #b0956e 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

#bmi-calculate-btn:hover {
    opacity: 0.88;
}

.bmi-result {
    margin-top: 24px;
    padding: 20px;
    background: #fdf8f2;
    border-radius: 14px;
    border: 1px solid #eadbca;
}

.bmi-score-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bmi-label {
    font-size: 14px;
    color: #8d7b68;
    font-weight: 600;
}

.bmi-score {
    font-size: 38px;
    font-weight: 800;
    color: #2c241c;
    line-height: 1;
}

.bmi-category {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1.5px solid;
    display: inline-block;
    margin: 0 auto 18px;
    width: auto;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.bmi-scale {
    margin-top: 6px;
}

.bmi-scale-bar {
    position: relative;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(to right, #5b9bd5 0%, #70b96e 30%, #f0a500 60%, #e05c5c 100%);
    margin-bottom: 6px;
}

.bmi-scale-marker {
    position: absolute;
    top: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    transform: translateX(-50%);
    transition: left 0.4s ease;
}

.bmi-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9a8a78;
    margin-top: 4px;
}

.bmi-scale-labels span {
    text-align: center;
    width: 25%;
    word-break: break-word;
    hyphens: auto;
    padding: 0 2px;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .bmi-scale-labels {
        font-size: 9px;
    }

    .bmi-scale-labels span {
        padding: 0 1px;
    }

    .bmi-calculator-wrap {
        padding: 22px 16px;
    }

    .bmi-score {
        font-size: 30px;
    }
}

.bmi-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff0f0;
    border: 1px solid #f5c0c0;
    border-radius: 10px;
    color: #c0392b;
    font-size: 14px;
    text-align: center;
}

p.bmi-note {
    margin: 18px 4px 0;
    padding-top: 14px;
    border-top: 1px solid #eadbca;
    background: none;
    font-size: 12px !important;
    line-height: 1.65;
    color: #a89684;
    text-align: center;
}