/* NUJIZ HEALTH CALCULATORS DESIGN V40.5.1 */

.nh40.nh40{
 --nh-bg:#ffffff;
 --nh-panel:#f8fafc;
 --nh-text:#172033;
 --nh-muted:#475569;
 --nh-border:#dbe3ee;
 --nh-purple:#6d28d9;
 --nh-result:#5b21b6;
 --nh-soft:#f5f3ff;
 --nh-warning-bg:#fff7ed;
 --nh-warning-text:#9a3412;
 --nh-warning-border:#fdba74;
 --nh-error-bg:#fef2f2;
 --nh-error-text:#991b1b;

 width:100%;
 max-width:1200px;
 margin:24px auto;
 padding:30px;
 box-sizing:border-box;
 border:1px solid var(--nh-border);
 border-radius:26px;
 background:var(--nh-bg)!important;
 color:var(--nh-text)!important;
 font-family:Tajawal,Arial,sans-serif!important;
 font-size:23px;
 line-height:1.75;
 box-shadow:0 12px 40px rgba(15,23,42,.07);
}

html[data-theme="dark"] .nh40.nh40{
 --nh-bg:#171c28;
 --nh-panel:#222a39;
 --nh-text:#f8fafc;
 --nh-muted:#cbd5e1;
 --nh-border:#3c4659;
 --nh-purple:#c4b5fd;
 --nh-result:#ddd6fe;
 --nh-soft:#28213d;
 --nh-warning-bg:#352719;
 --nh-warning-text:#fed7aa;
 --nh-warning-border:#9a6734;
 --nh-error-bg:#401d26;
 --nh-error-text:#fecaca;

 color-scheme:dark;
 box-shadow:none;
}

.nh40.nh40 *,
.nh40.nh40 *::before,
.nh40.nh40 *::after{
 box-sizing:border-box;
}

.nh40.nh40 [hidden]{
 display:none!important;
}

.nh40.nh40 :is(h2,h3,h4,p,label,span,strong,small){
 color:var(--nh-text)!important;
 -webkit-text-fill-color:currentColor!important;
 font-family:inherit!important;
 opacity:1!important;
 text-shadow:none!important;
}

.nh40.nh40 h2{
 font-size:36px!important;
 line-height:1.4!important;
 font-weight:800!important;
 margin:0 0 8px!important;
}

.nh40.nh40 h3{
 font-size:28px!important;
 line-height:1.5!important;
 font-weight:800!important;
 margin:0 0 14px!important;
}

.nh40.nh40 h4{
 font-size:25px!important;
 font-weight:800!important;
 margin:0 0 12px!important;
}

.nh40.nh40 p{
 font-size:23px!important;
 line-height:1.8!important;
 margin:0 0 10px!important;
}

.nh40.nh40 .nh40-header{
 display:flex;
 align-items:center;
 gap:20px;
 margin-bottom:26px;
}

.nh40.nh40 .nh40-heading{
 flex:1;
 min-width:0;
}

.nh40.nh40 .nh40-heading p{
 color:var(--nh-muted)!important;
 margin:0!important;
}

.nh40.nh40 .nh40-icon{
 display:grid;
 place-items:center;
 flex:0 0 88px;
 width:88px;
 height:88px;
 border-radius:24px;
 background:var(--nh-soft)!important;
 font-size:44px!important;
 line-height:1!important;
}

/* SAFETY */

.nh40.nh40 .nh40-safety{
 padding:24px;
 margin:0 0 24px;
 border:1px solid var(--nh-warning-border);
 border-radius:20px;
 background:var(--nh-warning-bg)!important;
}

.nh40.nh40 .nh40-safety :is(h3,p){
 color:var(--nh-warning-text)!important;
}

.nh40.nh40 .nh40-eligibility{
 display:flex;
 align-items:flex-start;
 gap:13px;
 padding:16px;
 margin-top:18px;
 background:var(--nh-bg)!important;
 border:1px solid var(--nh-border);
 border-radius:14px;
 cursor:pointer;
 font-size:21px!important;
 line-height:1.7!important;
}

.nh40.nh40 .nh40-eligibility input{
 flex:0 0 25px;
 width:25px!important;
 height:25px!important;
 min-height:25px!important;
 margin:5px 0 0!important;
 padding:0!important;
 accent-color:#7c3aed;
 cursor:pointer;
}

/* INPUTS */

.nh40.nh40 .nh40-form{
 margin:0;
 padding:24px;
 background:var(--nh-panel)!important;
 border:1px solid var(--nh-border);
 border-radius:22px;
}

.nh40.nh40 .nh40-fields{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:20px;
}

.nh40.nh40 .nh40-field{
 display:flex;
 flex-direction:column;
 gap:8px;
 min-width:0;
}

.nh40.nh40 .nh40-label{
 display:block;
 font-size:23px!important;
 font-weight:700!important;
 line-height:1.5!important;
}

.nh40.nh40 .nh40-unit{
 color:var(--nh-muted)!important;
 font-size:18px!important;
}

.nh40.nh40 .nh40-input{
 display:block;
 width:100%!important;
 max-width:100%!important;
 min-height:60px!important;
 padding:12px 16px!important;
 margin:0!important;
 border:1px solid var(--nh-border)!important;
 border-radius:13px!important;
 background:var(--nh-bg)!important;
 color:var(--nh-text)!important;
 -webkit-text-fill-color:var(--nh-text)!important;
 font-family:inherit!important;
 font-size:24px!important;
 font-weight:700!important;
 line-height:1.5!important;
 opacity:1!important;
 box-shadow:none!important;
}

.nh40.nh40 input.nh40-input{
 direction:ltr;
 text-align:start;
 font-variant-numeric:tabular-nums;
}

.nh40.nh40 select.nh40-input option{
 background:var(--nh-bg);
 color:var(--nh-text);
}

.nh40.nh40 .nh40-field-hint{
 font-size:17px!important;
 color:var(--nh-muted)!important;
 line-height:1.5!important;
}

.nh40.nh40 :is(input,select,button):focus-visible{
 outline:3px solid #a78bfa!important;
 outline-offset:3px!important;
}

/* BUTTONS */

.nh40.nh40 :is(.nh40-actions,.nh40-result-actions){
 display:flex;
 flex-wrap:wrap;
 gap:12px;
 margin-top:24px;
}

.nh40.nh40 :is(
 .nh40-primary,
 .nh40-secondary,
 .nh40-copy
){
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:58px;
 padding:12px 25px!important;
 border-radius:13px!important;
 font-family:inherit!important;
 font-size:22px!important;
 font-weight:800!important;
 line-height:1.5!important;
 text-decoration:none!important;
 cursor:pointer;
 transition:background-color .15s ease,
 opacity .15s ease;
}

.nh40.nh40 .nh40-primary{
 flex:1 1 240px;
 background:#7c3aed!important;
 border:1px solid #7c3aed!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

.nh40.nh40 .nh40-primary:hover{
 background:#6d28d9!important;
}

.nh40.nh40 .nh40-secondary{
 flex:0 1 auto;
 background:var(--nh-bg)!important;
 border:1px solid var(--nh-border)!important;
 color:var(--nh-text)!important;
 -webkit-text-fill-color:var(--nh-text)!important;
}

.nh40.nh40 .nh40-copy{
 flex:1 1 240px;
 background:#15803d!important;
 border:1px solid #15803d!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

.nh40.nh40 .nh40-copy:hover{
 background:#166534!important;
}

.nh40.nh40 button:disabled{
 opacity:.48!important;
 cursor:not-allowed!important;
}

/* RESULTS */

.nh40.nh40 .nh40-results{
 margin-top:26px;
 padding:25px;
 border:1px solid var(--nh-border);
 border-radius:22px;
 background:var(--nh-panel)!important;
}

.nh40.nh40 .nh40-results-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:15px;
}

.nh40.nh40 .nh40-result-card{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:9px;
 min-width:0;
 min-height:145px;
 padding:20px 14px;
 border:1px solid var(--nh-border);
 border-radius:17px;
 background:var(--nh-bg)!important;
 text-align:center;
}

.nh40.nh40 .nh40-result-primary{
 background:var(--nh-soft)!important;
 border-color:var(--nh-purple)!important;
}

.nh40.nh40 .nh40-result-label{
 font-size:20px!important;
 line-height:1.5!important;
 font-weight:600!important;
 color:var(--nh-muted)!important;
}

.nh40.nh40 .nh40-result-value{
 display:block;
 max-width:100%;
 font-size:clamp(23px,2.6vw,32px)!important;
 font-weight:800!important;
 line-height:1.4!important;
 color:var(--nh-text)!important;
 -webkit-text-fill-color:var(--nh-text)!important;
 font-variant-numeric:tabular-nums;
 overflow-wrap:anywhere;
}

.nh40.nh40 .nh40-result-primary .nh40-result-value{
 font-size:clamp(28px,3.6vw,42px)!important;
 color:var(--nh-result)!important;
 -webkit-text-fill-color:var(--nh-result)!important;
}

/* SVG VISUALS */

.nh40.nh40 .nh40-visual{
 margin-top:24px;
 padding:24px;
 border:1px solid var(--nh-border);
 border-radius:19px;
 background:var(--nh-bg)!important;
 color:var(--nh-text)!important;
}

.nh40.nh40 .nh40-visual-title{
 text-align:center;
}

.nh40.nh40 .nh40-diagram{
 display:block;
 width:100%!important;
 max-width:640px!important;
 height:auto!important;
 margin:12px auto;
 overflow:visible;
 color:var(--nh-text)!important;
 font-family:Tajawal,Arial,sans-serif!important;
}

.nh40.nh40 .nh40-diagram text{
 fill:currentColor!important;
 color:var(--nh-text)!important;
 opacity:1!important;
}

.nh40.nh40 .nh40-legend{
 display:grid;
 gap:10px;
 max-width:680px;
 margin:14px auto;
}

.nh40.nh40 .nh40-legend-item{
 display:flex;
 align-items:center;
 gap:12px;
 padding:12px 15px;
 border:1px solid var(--nh-border);
 border-radius:12px;
 background:var(--nh-panel)!important;
}

.nh40.nh40 .nh40-legend-dot{
 flex:0 0 15px;
 width:15px;
 height:15px;
 border-radius:5px;
}

.nh40.nh40 .nh40-legend-label{
 flex:1;
 min-width:0;
 font-size:21px!important;
}

.nh40.nh40 .nh40-legend-value{
 font-size:23px!important;
 font-weight:800!important;
 direction:ltr;
 font-variant-numeric:tabular-nums;
}

.nh40.nh40 .nh40-visual-note{
 text-align:center;
 font-size:19px!important;
 color:var(--nh-muted)!important;
 margin-top:14px!important;
}

/* NOTICES AND ERRORS */

.nh40.nh40 .nh40-notice{
 margin-top:24px;
 padding:22px;
 border:1px solid var(--nh-border);
 border-inline-start:5px solid #8b5cf6;
 border-radius:16px;
 background:var(--nh-soft)!important;
}

.nh40.nh40 .nh40-notice p{
 margin-bottom:0!important;
}

.nh40.nh40 .nh40-error{
 margin-top:18px;
 padding:16px;
 border-radius:12px;
 background:var(--nh-error-bg)!important;
 color:var(--nh-error-text)!important;
 -webkit-text-fill-color:var(--nh-error-text)!important;
 font-size:21px!important;
 font-weight:700;
}

.nh40.nh40 .nh40-status{
 margin-top:12px;
 text-align:center;
 font-size:20px!important;
 color:var(--nh-text)!important;
}

.nh40.nh40 .nh40-privacy{
 margin:20px 0 0!important;
 font-size:18px!important;
 color:var(--nh-muted)!important;
 text-align:center;
}

/* MOBILE */

@media(max-width:768px){

 .nh40.nh40{
  padding:17px;
  margin:16px auto;
  border-radius:20px;
  font-size:20px;
 }

 .nh40.nh40 h2{
  font-size:28px!important;
 }

 .nh40.nh40 h3{
  font-size:25px!important;
 }

 .nh40.nh40 h4{
  font-size:23px!important;
 }

 .nh40.nh40 p{
  font-size:20px!important;
 }

 .nh40.nh40 .nh40-header{
  gap:12px;
  align-items:flex-start;
 }

 .nh40.nh40 .nh40-icon{
  flex-basis:60px;
  width:60px;
  height:60px;
  font-size:31px!important;
  border-radius:17px;
 }

 .nh40.nh40 :is(
  .nh40-form,
  .nh40-safety,
  .nh40-results,
  .nh40-notice,
  .nh40-visual
 ){
  padding:16px;
 }

 .nh40.nh40 .nh40-fields{
  gap:14px;
 }

 .nh40.nh40 .nh40-label{
  font-size:20px!important;
 }

 .nh40.nh40 .nh40-input{
  min-height:56px!important;
  font-size:22px!important;
  padding:10px 12px!important;
 }

 .nh40.nh40 .nh40-eligibility{
  font-size:19px!important;
  padding:12px;
 }

 .nh40.nh40 .nh40-results-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
 }

 .nh40.nh40 .nh40-result-card{
  min-height:125px;
  padding:15px 10px;
 }

 .nh40.nh40 .nh40-result-label{
  font-size:18px!important;
 }

 .nh40.nh40 .nh40-result-value{
  font-size:24px!important;
 }

 .nh40.nh40 .nh40-result-primary .nh40-result-value{
  font-size:32px!important;
 }

 .nh40.nh40 :is(
  .nh40-primary,
  .nh40-secondary,
  .nh40-copy
 ){
  font-size:20px!important;
  min-height:54px;
  flex:1 1 100%;
 }

 .nh40.nh40 .nh40-legend-item{
  flex-wrap:wrap;
  gap:8px;
 }

 .nh40.nh40 .nh40-legend-label{
  font-size:19px!important;
 }

 .nh40.nh40 .nh40-legend-value{
  font-size:20px!important;
 }

 .nh40.nh40 .nh40-visual-note{
  font-size:17px!important;
 }

}

@media(max-width:480px){

 .nh40.nh40 .nh40-fields{
  grid-template-columns:minmax(0,1fr);
 }

 .nh40.nh40 .nh40-result-primary{
  grid-column:1/-1;
 }

 .nh40.nh40 .nh40-legend-value{
  flex:1 1 100%;
  padding-inline-start:23px;
 }

}

@media(max-width:340px){

 .nh40.nh40 .nh40-results-grid{
  grid-template-columns:minmax(0,1fr);
 }

}

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

 .nh40.nh40 *,
 .nh40.nh40 *::before,
 .nh40.nh40 *::after{
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important;
 }

}


/* NUJIZ HEALTH GUIDE V4052 */

.nh40-guide.nh40-guide{
 --hg-bg:#ffffff;
 --hg-panel:#f8fafc;
 --hg-text:#172033;
 --hg-muted:#475569;
 --hg-border:#dbe3ee;
 --hg-purple:#6d28d9;
 --hg-soft:#f5f3ff;

 width:100%;
 max-width:1200px;
 margin:25px auto;
 padding:30px;
 box-sizing:border-box;
 border:1px solid var(--hg-border);
 border-radius:24px;
 background:var(--hg-bg)!important;
 color:var(--hg-text)!important;
 font-family:Tajawal,Arial,sans-serif!important;
}

html[data-theme="dark"] .nh40-guide.nh40-guide{
 --hg-bg:#171c28;
 --hg-panel:#222a39;
 --hg-text:#f8fafc;
 --hg-muted:#cbd5e1;
 --hg-border:#3c4659;
 --hg-purple:#c4b5fd;
 --hg-soft:#28213d;
 color-scheme:dark;
}

.nh40-guide.nh40-guide *{
 box-sizing:border-box;
}

.nh40-guide.nh40-guide :is(h2,h3,p,span,strong,summary,li){
 color:var(--hg-text)!important;
 -webkit-text-fill-color:currentColor!important;
 font-family:inherit!important;
 opacity:1!important;
}

.nh40-guide.nh40-guide h2{
 font-size:34px!important;
 font-weight:800!important;
 line-height:1.5!important;
 margin:0 0 20px!important;
}

.nh40-guide.nh40-guide h3{
 font-size:26px!important;
 font-weight:800!important;
 margin:0 0 12px!important;
}

.nh40-guide.nh40-guide :is(p,li){
 font-size:23px!important;
 line-height:1.85!important;
}

.nh40-guide.nh40-guide .nh40-guide-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:18px;
 margin:20px 0 30px;
}

.nh40-guide.nh40-guide .nh40-guide-step{
 position:relative;
 display:flex;
 align-items:center;
 flex-direction:column;
 min-width:0;
 padding:24px 18px;
 border:1px solid var(--hg-border);
 border-radius:18px;
 background:var(--hg-panel)!important;
 text-align:center;
}

.nh40-guide.nh40-guide .nh40-guide-icon{
 display:grid;
 place-items:center;
 width:78px;
 height:78px;
 margin:10px auto 16px;
 border-radius:20px;
 background:var(--hg-soft)!important;
 font-size:38px!important;
}

.nh40-guide.nh40-guide .nh40-guide-number{
 display:grid;
 place-items:center;
 width:36px;
 height:36px;
 margin-bottom:13px;
 border-radius:50%;
 background:#7c3aed!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 font-size:20px!important;
 font-weight:800!important;
}

.nh40-guide.nh40-guide :is(
 .nh40-guide-example,
 .nh40-guide-note
){
 padding:24px;
 margin:25px 0;
 border:1px solid var(--hg-border);
 border-radius:18px;
 background:var(--hg-soft)!important;
}

.nh40-guide.nh40-guide .nh40-guide-formula{
 display:block;
 direction:ltr;
 padding:20px;
 margin-top:15px;
 border:1px solid var(--hg-border);
 border-radius:12px;
 background:var(--hg-bg)!important;
 color:var(--hg-purple)!important;
 -webkit-text-fill-color:var(--hg-purple)!important;
 font-family:Arial,sans-serif!important;
 font-size:22px!important;
 font-weight:700!important;
 text-align:center;
 white-space:normal;
 overflow-wrap:anywhere;
}

.nh40-guide.nh40-guide .nh40-guide-faq{
 margin:28px 0;
}

.nh40-guide.nh40-guide details{
 margin:12px 0;
 padding:18px;
 border:1px solid var(--hg-border);
 border-radius:13px;
 background:var(--hg-panel)!important;
}

.nh40-guide.nh40-guide summary{
 font-size:23px!important;
 font-weight:700!important;
 cursor:pointer;
}

.nh40-guide.nh40-guide details p{
 margin:15px 0 0!important;
}

.nh40-guide.nh40-guide .nh40-guide-references{
 padding:22px;
 border:1px solid var(--hg-border);
 border-radius:17px;
 background:var(--hg-panel)!important;
}

.nh40-guide.nh40-guide a{
 color:var(--hg-purple)!important;
 -webkit-text-fill-color:var(--hg-purple)!important;
 font-size:20px!important;
 line-height:1.8;
 overflow-wrap:anywhere;
 text-decoration:underline;
}

.nh40-guide.nh40-guide :is(a,summary):focus-visible{
 outline:3px solid #a78bfa;
 outline-offset:4px;
}

@media(max-width:768px){

 .nh40-guide.nh40-guide{
  padding:18px;
  border-radius:18px;
 }

 .nh40-guide.nh40-guide h2{
  font-size:28px!important;
 }

 .nh40-guide.nh40-guide h3{
  font-size:24px!important;
 }

 .nh40-guide.nh40-guide :is(p,li,summary){
  font-size:20px!important;
 }

 .nh40-guide.nh40-guide .nh40-guide-grid{
  grid-template-columns:minmax(0,1fr);
 }

 .nh40-guide.nh40-guide .nh40-guide-formula{
  font-size:18px!important;
  padding:14px;
 }

 .nh40-guide.nh40-guide :is(
  .nh40-guide-example,
  .nh40-guide-note,
  .nh40-guide-references
 ){
  padding:16px;
 }

}


/* NUJIZ HEALTH PAGES V4064 */

.nh40-page-hero.nh40-page-hero{
 padding:42px 28px;
 margin:24px auto;
 max-width:1200px;
 border:1px solid #ddd6fe;
 border-radius:25px;
 background:linear-gradient(135deg,#f5f3ff,#ede9fe)!important;
 text-align:center;
 font-family:Tajawal,Arial,sans-serif!important;
}

.nh40-page-hero.nh40-page-hero h1{
 font-size:44px!important;
 font-weight:800!important;
 line-height:1.45!important;
 color:#4c1d95!important;
 -webkit-text-fill-color:#4c1d95!important;
 margin:14px 0!important;
}

.nh40-page-hero.nh40-page-hero p{
 font-size:23px!important;
 line-height:1.8!important;
 color:#5b21b6!important;
 -webkit-text-fill-color:#5b21b6!important;
 max-width:900px;
 margin:0 auto!important;
}

.nh40-page-icon{
 display:grid;
 place-items:center;
 width:92px;
 height:92px;
 margin:20px auto 0;
 border-radius:24px;
 background:#ffffff;
 font-size:48px!important;
}

.nh40-free-label{
 display:inline-block;
 padding:6px 20px;
 background:#166534!important;
 color:#ffffff!important;
 -webkit-text-fill-color:#ffffff!important;
 border-radius:30px;
 font-size:19px!important;
 font-weight:800;
}

html[data-theme="dark"] .nh40-page-hero.nh40-page-hero{
 background:linear-gradient(135deg,#28213d,#211a36)!important;
 border-color:#59477c;
}

html[data-theme="dark"] .nh40-page-hero.nh40-page-hero h1{
 color:#f5f3ff!important;
 -webkit-text-fill-color:#f5f3ff!important;
}

html[data-theme="dark"] .nh40-page-hero.nh40-page-hero p{
 color:#ddd6fe!important;
 -webkit-text-fill-color:#ddd6fe!important;
}

html[data-theme="dark"] .nh40-page-icon{
 background:#3b2c54;
}

.nh40-related-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:15px;
}

.nh40-guide.nh40-guide .nh40-related-link{
 display:flex;
 align-items:center;
 gap:12px;
 min-width:0;
 padding:20px;
 border:1px solid var(--hg-border);
 border-radius:15px;
 background:var(--hg-panel)!important;
 color:var(--hg-text)!important;
 -webkit-text-fill-color:var(--hg-text)!important;
 font-size:23px!important;
 font-weight:700;
 text-decoration:none;
}

.nh40-related-link:hover{
 border-color:#8b5cf6!important;
}

.nh40-related-icon{
 flex-shrink:0;
 font-size:30px!important;
}

@media(max-width:768px){

 .nh40-page-hero.nh40-page-hero{
  padding:30px 18px;
  border-radius:20px;
 }

 .nh40-page-hero.nh40-page-hero h1{
  font-size:32px!important;
 }

 .nh40-page-hero.nh40-page-hero p{
  font-size:21px!important;
 }

 .nh40-related-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .nh40-guide.nh40-guide .nh40-related-link{
  font-size:20px!important;
  padding:15px;
 }

}

@media(max-width:480px){

 .nh40-related-grid{
  grid-template-columns:minmax(0,1fr);
 }

}
