/* =========================================
   Health Check - Main Wrapper
========================================= */

.hc-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 40px auto;
    padding: 0 18px;
    box-sizing: border-box;
}


/* =========================================
   Main Card
========================================= */

.hc-card {
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}


/* =========================================
   Header
========================================= */

.hc-header {
    text-align: center;
    margin-bottom: 30px;
}

.hc-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: #f1f5f9;
    color: #475569;
    padding: 7px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.hc-header h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #172033;
}

.hc-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #687386;
}


/* =========================================
   Form
========================================= */

.hc-field {
    margin-bottom: 22px;
}

.hc-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #263246;
}


/* =========================================
   Height - Feet & Inches
========================================= */

.hc-height-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hc-height-input {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #dce1e8;
    background: #ffffff;
    border-radius: 12px;
    padding: 0 13px;
    transition: 0.2s ease;
}

.hc-height-input:focus-within {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

.hc-height-input input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    padding: 14px 0;
    font-size: 16px;
    color: #172033;
    background: transparent;
}

.hc-height-input span {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #7a8494;
}


/* =========================================
   Normal Inputs
========================================= */

.hc-field input,
.hc-field select {
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    border: 1px solid #dce1e8;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 15px;
    font-size: 15px;
    color: #172033;
    outline: none;
    transition: 0.2s ease;
}

.hc-field input:focus,
.hc-field select:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}


/* =========================================
   Input + Unit
========================================= */

.hc-input-unit {
    position: relative;
}

.hc-input-unit input {
    padding-right: 60px;
}

.hc-input-unit span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #7a8494;
}


/* =========================================
   Button
========================================= */

.hc-button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 13px;
    background: #172033;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 5px;
}

.hc-button:hover {
    background: #263246;
    transform: translateY(-1px);
}

.hc-button:active {
    transform: translateY(0);
}


/* =========================================
   Result
========================================= */

.hc-result {
    display: none;
    margin-top: 28px;
}

.hc-result-card {
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e3e7ed;
    background: #ffffff;
    border-left: 5px solid #64748b;
}


/* =========================================
   Result Title
========================================= */

.hc-result-title {
    font-size: 17px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 22px;
}


/* =========================================
   BMI
========================================= */

.hc-bmi-section {
    text-align: center;
    padding: 5px 0 18px;
}

.hc-bmi-number {
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
}

.hc-bmi-label {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #7a8494;
    letter-spacing: 1px;
}


/* =========================================
   Category
========================================= */

.hc-category-box {
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.hc-category-box strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
}

.hc-category-en {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.75;
}


/* =========================================
   Health Guide
========================================= */

.hc-guide {
    margin-top: 20px;
}

.hc-guide h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #172033;
}

.hc-guide p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #566174;
}


/* =========================================
   Healthy Weight
========================================= */

.hc-weight-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: #f7f8fa;
}

.hc-weight-title {
    font-size: 14px;
    font-weight: 700;
    color: #263246;
}

.hc-weight-value {
    margin-top: 8px;
    font-size: 23px;
    font-weight: 800;
    color: #172033;
}

.hc-weight-box p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #737d8d;
}


/* =========================================
   Result Note
========================================= */

.hc-result-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e7e9ed;
    font-size: 11px;
    line-height: 1.7;
    color: #7a8494;
}


/* =========================================
   BMI Colors
========================================= */

/* Underweight */

.hc-underweight {
    border-left-color: #f59e0b;
}

.hc-underweight .hc-bmi-number {
    color: #d97706;
}

.hc-underweight .hc-category-box {
    background: #fff7e6;
    color: #b45309;
}


/* Healthy */

.hc-healthy {
    border-left-color: #16a34a;
}

.hc-healthy .hc-bmi-number {
    color: #15803d;
}

.hc-healthy .hc-category-box {
    background: #ecfdf3;
    color: #15803d;
}


/* Overweight */

.hc-overweight {
    border-left-color: #dc2626;
}

.hc-overweight .hc-bmi-number {
    color: #dc2626;
}

.hc-overweight .hc-category-box {
    background: #fef2f2;
    color: #b91c1c;
}


/* Obesity */

.hc-obesity {
    border-left-color: #991b1b;
}

.hc-obesity .hc-bmi-number {
    color: #991b1b;
}

.hc-obesity .hc-category-box {
    background: #fef2f2;
    color: #991b1b;
}


/* =========================================
   Error
========================================= */

.hc-result-error {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #b91c1c;
}


/* =========================================
   Disclaimer
========================================= */

.hc-disclaimer {
    margin: 18px 5px 0;
    font-size: 11px;
    line-height: 1.7;
    color: #7a8494;
    text-align: center;
}

.hc-disclaimer strong {
    color: #5d6675;
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .hc-wrapper {
        margin: 20px auto;
        padding: 0 12px;
    }

    .hc-card {
        padding: 22px 17px;
        border-radius: 18px;
    }

    .hc-header h2 {
        font-size: 25px;
    }

    .hc-header p {
        font-size: 14px;
    }

    .hc-height-row {
        gap: 8px;
    }

    .hc-height-input {
        padding: 0 10px;
        gap: 6px;
    }

    .hc-height-input span {
        font-size: 11px;
    }

    .hc-result-card {
        padding: 19px;
    }

    .hc-bmi-number {
        font-size: 42px;
    }

    .hc-weight-value {
        font-size: 20px;
    }

}


/* =========================================
   Very Small Screens
========================================= */

@media (max-width: 360px) {

    .hc-height-input {
        gap: 4px;
        padding: 0 8px;
    }

    .hc-height-input span {
        font-size: 10px;
    }

}