/* ==========================================================
   "Know Your Body" wellness calculator
   Every rule is scoped inside #wellness so nothing else
   on the site is affected.
   ========================================================== */

#wellness{
--hc-brand:#0b8f72;
--hc-brand-light:#13c29a;
--hc-brand-dark:#066b54;
--hc-accent-mid:#ff9800;
--hc-ink:#1f2b28;
--hc-muted:#56635f;
--hc-soft:#eefaf6;
--hc-line:#cfdcd7;
--hc-danger:#c62828;
--hc-radius:16px;
padding:56px 0;
font-family:'Poppins',sans-serif;
color:var(--hc-ink);
background:linear-gradient(180deg,#f5fffa 0%,#ffffff 100%);
overflow-x:hidden;
}

#wellness [hidden]{
display:none !important;
}

#wellness .hc-sr{
position:absolute;
width:1px;
height:1px;
overflow:hidden;
clip:rect(0 0 0 0);
white-space:nowrap;
}

#wellness .hc-wrap{
width:90%;
max-width:1250px;
margin:0 auto;
}

/* HEADING */

#wellness .hc-head{
text-align:center;
margin-bottom:22px;
}

#wellness .hc-title{
font-size:clamp(26px,4vw,38px);
line-height:1.2;
font-weight:700;
color:var(--hc-brand);
margin-bottom:4px;
}

#wellness .hc-subtitle{
color:#666;
font-size:clamp(15px,1.8vw,17px);
}

/* CARDS */

#wellness .hc-card{
background:#fff;
border-radius:var(--hc-radius);
box-shadow:0 8px 24px rgba(11,143,114,0.08),0 2px 6px rgba(0,0,0,0.04);
padding:20px 22px;
}

#wellness .hc-form-card{
margin-bottom:16px;
}

/* FORM FIELDS (gender sits in the same row as the inputs) */

#wellness .hc-fields{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(118px,1fr));
gap:12px;
align-items:start;
}

#wellness .hc-field{
display:flex;
flex-direction:column;
min-width:0;
border:0;
margin:0;
padding:0;
}

#wellness .hc-field > label,
#wellness .hc-seg legend{
display:block;
font-weight:600;
font-size:13.5px;
line-height:1.4;
margin-bottom:5px;
padding:0;
color:var(--hc-ink);
white-space:nowrap;
}

#wellness .hc-req{
color:var(--hc-danger);
font-weight:700;
}

#wellness .hc-opt{
display:inline-block;
margin-left:2px;
padding:0 6px;
border-radius:999px;
background:var(--hc-soft);
color:var(--hc-brand-dark);
font-size:10.5px;
font-weight:600;
vertical-align:middle;
}

#wellness .hc-input{
width:100%;
height:42px;
padding:0 12px;
border:1px solid var(--hc-line);
border-radius:10px;
font-family:inherit;
font-size:15px;
color:var(--hc-ink);
background:#fff;
transition:border-color 0.2s,box-shadow 0.2s;
}

#wellness .hc-input:focus{
border-color:var(--hc-brand);
outline:none;
box-shadow:0 0 0 3px rgba(11,143,114,0.22);
}

#wellness .hc-input[aria-invalid="true"]{
border-color:#e53935;
background:#fffafa;
}

#wellness .hc-error{
color:var(--hc-danger);
font-size:12.5px;
line-height:1.4;
margin-top:4px;
}

#wellness .hc-error:empty{
display:none;
}

/* GENDER TOGGLE */

#wellness .hc-seg-track{
position:relative;
display:flex;
height:42px;
gap:3px;
padding:3px;
background:var(--hc-soft);
border-radius:999px;
}

#wellness .hc-seg input{
position:absolute;
opacity:0;
width:1px;
height:1px;
margin:0;
pointer-events:none;
}

#wellness .hc-seg-track label{
flex:1 1 0;
display:flex;
align-items:center;
justify-content:center;
padding:0 4px;
border-radius:999px;
font-weight:600;
font-size:13.5px;
color:var(--hc-brand-dark);
cursor:pointer;
user-select:none;
transition:background 0.25s,color 0.25s,box-shadow 0.25s;
}

#wellness .hc-seg-track label:hover{
background:#e0f5ee;
}

#wellness .hc-seg input:checked + label{
background:linear-gradient(135deg,var(--hc-brand-dark),var(--hc-brand));
color:#fff;
box-shadow:0 3px 10px rgba(11,143,114,0.28);
}

#wellness .hc-seg input:focus-visible + label{
outline:3px solid var(--hc-accent-mid);
outline-offset:2px;
}

/* HINT + RESET ROW */

#wellness .hc-actions{
display:flex;
align-items:center;
gap:12px 18px;
margin-top:14px;
}

#wellness .hc-howto{
flex:1 1 auto;
font-size:12.5px;
line-height:1.55;
color:var(--hc-muted);
}

#wellness .hc-howto strong{
color:var(--hc-brand-dark);
}

/* BUTTONS */

#wellness .hc-btn{
appearance:none;
cursor:pointer;
font-family:inherit;
font-size:14.5px;
font-weight:700;
padding:9px 24px;
border-radius:999px;
border:2px solid transparent;
white-space:nowrap;
transition:transform 0.25s,box-shadow 0.25s,background 0.25s,color 0.25s;
}

#wellness .hc-btn:hover{
transform:translateY(-2px);
}

#wellness .hc-btn-primary{
background:linear-gradient(135deg,var(--hc-brand-dark),var(--hc-brand));
color:#fff;
box-shadow:0 5px 14px rgba(11,143,114,0.26);
}

#wellness .hc-btn-primary:hover{
box-shadow:0 8px 18px rgba(11,143,114,0.34);
}

#wellness .hc-btn-ghost{
background:#fff;
color:var(--hc-brand-dark);
border-color:var(--hc-brand);
}

#wellness .hc-btn-ghost:hover{
background:var(--hc-soft);
}

/* RESULTS / GAUGES */

#wellness .hc-results{
display:grid;
grid-template-columns:1fr;
gap:16px;
}

#wellness .hc-gauge-card{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
padding:16px 14px 18px;
min-width:0;
}

#wellness .hc-gauge-title{
font-size:16px;
font-weight:700;
color:var(--hc-brand);
margin-bottom:6px;
}

#wellness .hc-gauge{
display:block;
width:100%;
max-width:300px;
height:auto;
filter:drop-shadow(0 6px 10px rgba(0,0,0,0.10));
}

#wellness .hc-gauge text{
font-family:'Poppins',sans-serif;
}

#wellness .hc-readout{
display:flex;
align-items:baseline;
justify-content:center;
gap:5px;
margin-top:6px;
}

#wellness .hc-value{
font-size:clamp(28px,3.4vw,36px);
font-weight:800;
line-height:1.1;
letter-spacing:-0.5px;
font-variant-numeric:tabular-nums;
color:var(--hc-ink);
}

#wellness .hc-unit{
font-size:14px;
font-weight:600;
color:var(--hc-muted);
}

#wellness .hc-badge{
display:inline-flex;
align-items:center;
gap:7px;
margin-top:6px;
padding:3px 14px;
border-radius:999px;
font-size:13.5px;
font-weight:700;
color:var(--hc-ink);
background:#eef3f1;
border:1px solid var(--hc-zone,#cfdcd7);
}

#wellness .hc-badge::before{
content:'';
width:9px;
height:9px;
border-radius:50%;
flex-shrink:0;
background:var(--hc-zone,#9aa5a2);
}

#wellness .hc-extra{
margin-top:6px;
font-size:13.5px;
color:var(--hc-muted);
}

#wellness .hc-extra:empty{
display:none;
}

#wellness .hc-extra strong{
color:var(--hc-ink);
}

#wellness .hc-method{
font-size:12.5px;
line-height:1.45;
max-width:300px;
}

#wellness .hc-note{
margin-top:8px;
max-width:310px;
font-size:13.5px;
line-height:1.55;
color:var(--hc-muted);
}

/* DAILY NEED (TDEE) PANEL in the BMR card */

#wellness .hc-tdee{
display:flex;
flex-direction:column;
align-items:center;
gap:1px;
width:100%;
max-width:300px;
margin-top:10px;
padding:8px 12px;
border-radius:12px;
background:#f5fff9;
border:1px solid #d6efe6;
}

#wellness .hc-tdee-label{
font-size:12.5px;
font-weight:600;
color:var(--hc-muted);
}

#wellness .hc-tdee-num{
font-size:14px;
font-weight:600;
color:var(--hc-muted);
}

#wellness .hc-tdee-num strong{
font-size:24px;
font-weight:800;
color:var(--hc-brand-dark);
font-variant-numeric:tabular-nums;
margin-right:2px;
}

#wellness .hc-tdee-formula{
font-size:12px;
color:var(--hc-muted);
}

#wellness .hc-tdee-formula:empty{
display:none;
}

#wellness .hc-tdee-pulse{
animation:hc-tdee-pulse 0.9s ease-out;
}

@keyframes hc-tdee-pulse{
0%{box-shadow:0 0 0 0 rgba(11,143,114,0.45);background:#e3f7ef;}
100%{box-shadow:0 0 0 10px rgba(11,143,114,0);background:#f5fff9;}
}

@media(prefers-reduced-motion:reduce){

#wellness .hc-tdee-pulse{
animation:none;
}

}

/* RANGE TABLES (under each gauge) */

#wellness .hc-ranges{
list-style:none;
width:100%;
max-width:300px;
margin-top:auto;
padding-top:12px;
display:grid;
gap:2px;
}

#wellness .hc-ranges li{
display:flex;
align-items:center;
gap:8px;
padding:4px 10px;
border-radius:8px;
font-size:12.5px;
line-height:1.4;
color:var(--hc-muted);
text-align:left;
}

#wellness .hc-range-dot{
width:9px;
height:9px;
border-radius:50%;
flex-shrink:0;
}

#wellness .hc-range-name{
flex:1 1 auto;
font-weight:600;
}

#wellness .hc-range-val{
font-variant-numeric:tabular-nums;
white-space:nowrap;
}

#wellness .hc-ranges li.hc-range-active{
background:var(--hc-soft);
color:var(--hc-ink);
font-weight:700;
box-shadow:inset 3px 0 0 var(--hc-brand);
}

/* PERSONAL WELLNESS PLAN */

#wellness .hc-plan{
margin-top:16px;
}

#wellness .hc-plan-title{
font-size:clamp(18px,2.2vw,21px);
font-weight:700;
color:var(--hc-brand);
margin-bottom:12px;
}

#wellness .hc-plan-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));
gap:10px;
margin-bottom:12px;
}

#wellness .hc-plan-stat{
background:#f5fff9;
border-radius:12px;
padding:10px 14px;
}

#wellness .hc-plan-label{
display:block;
font-size:12.5px;
font-weight:600;
color:var(--hc-muted);
}

#wellness .hc-plan-stat strong{
font-size:18px;
font-weight:800;
color:var(--hc-ink);
}

#wellness .hc-plan-tips{
list-style:none;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));
gap:8px;
margin-bottom:14px;
}

#wellness .hc-plan-tips li{
background:#fff;
border:1px solid #e3eeea;
border-left:4px solid var(--hc-brand);
border-radius:10px;
padding:8px 12px;
font-size:14px;
line-height:1.5;
}

#wellness .hc-plan-links{
display:flex;
flex-wrap:wrap;
gap:10px;
}

#wellness .hc-plan-links .hc-btn{
display:inline-block;
text-decoration:none;
font-size:14px;
}

/* CTA + DISCLAIMER */

#wellness .hc-cta-wrap{
text-align:center;
margin-top:22px;
}

#wellness .hc-cta{
display:inline-block;
padding:12px 30px;
border-radius:999px;
font-size:15.5px;
font-weight:700;
color:#fff;
text-decoration:none;
background:linear-gradient(135deg,var(--hc-brand-dark),var(--hc-brand));
box-shadow:0 6px 16px rgba(11,143,114,0.28);
transition:transform 0.25s,box-shadow 0.25s;
}

#wellness .hc-cta:hover{
transform:translateY(-2px);
box-shadow:0 10px 22px rgba(11,143,114,0.36);
}

#wellness .hc-disclaimer{
max-width:760px;
margin:12px auto 0;
text-align:center;
font-size:12.5px;
line-height:1.55;
color:#666;
}

/* RESPONSIVE */

@media(min-width:420px){

#wellness .hc-field-wide{
grid-column:span 2;
}

}

@media(min-width:900px){

#wellness .hc-results{
grid-template-columns:repeat(3,minmax(0,1fr));
}

}

@media(max-width:600px){

#wellness{
padding:40px 0;
}

#wellness .hc-card{
padding:16px;
}

#wellness .hc-actions{
flex-wrap:wrap;
}

}

@media(prefers-reduced-motion:reduce){

#wellness *,
#wellness *::before,
#wellness *::after{
transition:none !important;
}

}
