/* Base look consistent with your site
* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f8f9fa; color: #333; margin:0; line-height:1.6; }
header { text-align:center; background:#007bff; color:#fff; padding:2rem 1rem; }
header h1{ margin:0; font-size:2.2rem; } header p.intro{ margin:0.5rem 0 0; font-size:1rem; opacity:0.95; }

main { max-width:1200px; margin:auto; padding:2rem 1rem; }
section { background:#fff; padding:2rem; margin-bottom:2rem; border-radius:12px; box-shadow:0 4px 6px rgba(0,0,0,0.08); }
.section-title { text-align:center; margin-bottom:1.5rem; font-size:1.7rem; color:#007bff; position:relative; }
.section-title::after{ content:""; position:absolute; bottom:-10px; left:50%; transform:translateX(-50%); width:80px; height:3px; background:#007bff; border-radius:2px; opacity:0.8; }

.calc-grid { display:grid; grid-template-columns:1fr 420px; gap:1.25rem; align-items:start; }
.calc-left, .calc-right { padding:0; }

.control-row { display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:1rem; }
.control-group { flex:1 1 180px; display:flex; flex-direction:column; }
.control-group.full-width { flex-basis:100%; }
.control-group label { font-size:0.9rem; font-weight:600; margin-bottom:0.25rem; color:#0056b3; }
.control-group input[type="number"], .control-group select { padding:0.6rem 0.75rem; border-radius:6px; border:1px solid #ced4da; font-size:1rem; outline:none; }
.control-group input:focus, .control-group select:focus { border-color:#007bff; }

.btn-primary, .btn-secondary { padding:0.7rem 1.2rem; border:none; border-radius:6px; cursor:pointer; font-size:1rem; font-weight:500; margin-right:0.5rem; transition:0.15s; }
.btn-primary { background:#007bff; color:#fff; } .btn-primary:hover:not(:disabled){ background:#0056b3; transform:translateY(-2px); }
.btn-secondary { background:#6c757d; color:#fff; } .btn-secondary:hover:not(:disabled){ background:#545b62; } button:disabled{ opacity:0.65; cursor:not-allowed; }

.result-card { background:#f8f9ff; border-radius:8px; padding:0.9rem; border:1px solid #e1e8ef; margin-bottom:0.9rem; }
.result-card .label { font-size:0.85rem; color:#666; margin-bottom:0.4rem; font-weight:600; color:#0056b3; }
.result-card .value { font-size:1.1rem; font-weight:700; color:#222; word-break:break-word; }

.chart-card { margin-top:0.5rem; }
.help-text { font-size:0.85rem; color:#666; margin-top:0.25rem; }
.note-box { text-align:center; margin-top:1rem; padding:1rem 1.5rem; border:2px solid #007bff; border-radius:8px; background:#e9f5ff; font-weight:500; color:#0056b3; box-shadow:0 2px 8px rgba(0,123,255,0.08); }

.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin-top:1rem; }
.step { background:#fff; border:1px solid #e1e8ef; border-radius:12px; padding:1rem; text-align:center; box-shadow:0 3px 10px rgba(0,0,0,0.04); }
.step-number { width:50px; height:50px; background:linear-gradient(145deg,#007bff,#0056b3); color:#fff; font-size:1.2rem; display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; border-radius:50%; }

.benefits-grid ul{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1rem; }
.benefits-grid li{ background:#f8f9fa; padding:1rem; border-left:4px solid #007bff; border-radius:6px; font-size:1rem; }

#faq { margin-top:1rem; }
.faq-question { width:100%; background:#f8f9fa; border:1px solid #e9ecef; border-radius:6px; padding:1rem; font-weight:bold; text-align:left; cursor:pointer; color:#007bff; margin-bottom:0.5rem; }
.faq-answer { display:none; padding:1rem; border-left:3px solid #007bff; background:#fff; border-radius:4px; margin-bottom:0.75rem; }
.faq-item.active .faq-answer { display:block; }

/* Responsive */
/* @media (max-width:980px){ .calc-grid { grid-template-columns:1fr; } header h1{ font-size:1.7rem; } .result-card .value{ font-size:1rem; } }  */

/* Base look consistent with your site */
* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f8f9fa; color: #333; margin:0; line-height:1.6; }
header { text-align:center; background:#007bff; color:#fff; padding:2rem 1rem; }
header h1{ margin:0; font-size:2.2rem; } header p.intro{ margin:0.5rem 0 0; font-size:1rem; opacity:0.95; }

main { max-width:1200px; margin:auto; padding:2rem 1rem; }
section { background:#fff; padding:2rem; margin-bottom:2rem; border-radius:12px; box-shadow:0 4px 6px rgba(0,0,0,0.08); }
.section-title { text-align:center; margin-bottom:1.5rem; font-size:1.7rem; color:#007bff; position:relative; }
.section-title::after{ content:""; position:absolute; bottom:-10px; left:50%; transform:translateX(-50%); width:80px; height:3px; background:#007bff; border-radius:2px; opacity:0.8; }

.calc-grid { display:grid; grid-template-columns:1fr 420px; gap:1.25rem; align-items:start; }
.calc-left, .calc-right { padding:0; }

.control-row { display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:1rem; }
.control-group { flex:1 1 180px; display:flex; flex-direction:column; }
.control-group.full-width { flex-basis:100%; }
.control-group label { font-size:0.9rem; font-weight:600; margin-bottom:0.25rem; color:#0056b3; }
.control-group input[type="number"], .control-group select, .control-group input[type="text"] {
  padding:0.6rem 0.75rem; border-radius:6px; border:1px solid #ced4da; font-size:1rem; outline:none;
}
.control-group input:focus, .control-group select:focus { border-color:#007bff; }

.btn-primary, .btn-secondary { padding:0.7rem 1.2rem; border:none; border-radius:6px; cursor:pointer; font-size:1rem; font-weight:500; margin-right:0.5rem; transition:0.15s; }
.btn-primary { background:#007bff; color:#fff; } .btn-primary:hover:not(:disabled){ background:#0056b3; transform:translateY(-2px); }
.btn-secondary { background:#6c757d; color:#fff; } .btn-secondary:hover:not(:disabled){ background:#545b62; } button:disabled{ opacity:0.65; cursor:not-allowed; }

.result-card { background:#f8f9ff; border-radius:8px; padding:0.9rem; border:1px solid #e1e8ef; margin-bottom:0.9rem; }
.result-card .label { font-size:0.85rem; color:#666; margin-bottom:0.4rem; font-weight:600; color:#0056b3; }
.result-card .value { font-size:1.1rem; font-weight:700; color:#222; word-break:break-word; }

/* .chart-card { margin-top:0.5rem; } */
/* Chart container sizing — prevents full-screen stretching */
.chart-card {
  margin-top: 0.5rem;
  /* enforce a reasonable, responsive height */
  height: 260px;
  min-height: 180px;
  max-height: 420px;
  position: relative; /* required so canvas 100% height works */
}

/* Make canvas fill the .chart-card area */
.chart-card canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* On small screens make chart slightly shorter */
@media (max-width: 480px) {
  .chart-card { height: 210px; }
}

.help-text { font-size:0.85rem; color:#666; margin-top:0.25rem; }
.note-box { text-align:center; margin-top:1rem; padding:1rem 1.5rem; border:2px solid #007bff; border-radius:8px; background:#e9f5ff; font-weight:500; color:#0056b3; box-shadow:0 2px 8px rgba(0,123,255,0.08); }

.section-advanced { background:#fbfdff; border:1px solid #e6f0ff; padding:10px; border-radius:8px; margin-top:10px; }
.small-title { margin:0 0 8px 0; color:#0056b3; font-weight:600; }

.adv-row { display:flex; gap:8px; align-items:flex-end; margin-bottom:8px; }
.adv-row input { padding:8px;border-radius:6px;border:1px solid #d0d8e3; }

.list-box { margin-top:8px; border-radius:6px; padding:8px; background:#fff; border:1px dashed #dfefff; min-height:36px; }

.list-item { display:flex; justify-content:space-between; align-items:center; padding:6px 8px; border-radius:6px; background:#f8fbff; margin-bottom:6px; border:1px solid #e6f3ff; }
.list-item button { background:transparent;border:none;color:#d33;cursor:pointer;font-weight:700;padding:4px 6px;border-radius:4px; }

.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin-top:1rem; }
.step { background:#fff; border:1px solid #e1e8ef; border-radius:12px; padding:1rem; text-align:center; box-shadow:0 3px 10px rgba(0,0,0,0.04); }
.step-number { width:50px; height:50px; background:linear-gradient(145deg,#007bff,#0056b3); color:#fff; font-size:1.2rem; display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; border-radius:50%; }

.benefits-grid ul{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1rem; }
.benefits-grid li{ background:#f8f9fa; padding:1rem; border-left:4px solid #007bff; border-radius:6px; font-size:1rem; }

#faq { margin-top:1rem; }
.faq-question { width:100%; background:#f8f9fa; border:1px solid #e9ecef; border-radius:6px; padding:1rem; font-weight:bold; text-align:left; cursor:pointer; color:#007bff; margin-bottom:0.5rem; }
.faq-answer { display:none; padding:1rem; border-left:3px solid #007bff; background:#fff; border-radius:4px; margin-bottom:0.75rem; }
.faq-item.active .faq-answer { display:block; }

/* Responsive */
@media (max-width:980px){ .calc-grid { grid-template-columns:1fr; } header h1{ font-size:1.7rem; } .result-card .value{ font-size:1rem; } canvas{ height:200px!important; } }
.faq-answer {
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
footer {
  background: #f1f1f1;
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}