.kh-mortality-tool {
    max-width: 620px;
    margin: 30px auto;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #f0caca;
    background: #fffafa;
    font-family: 'Hind Siliguri', sans-serif;
    box-sizing: border-box;
}

.kh-mortality-tool * {
    box-sizing: border-box;
}

.kh-mortality-tool h3 {
    margin: 0 0 12px;
    color: #c62828;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
}

.kh-mortality-tool p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 16px;
}

.kh-mortality-tool label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 6px;
    color: #222;
}

.kh-mortality-tool input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #d6d6d6;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    background: #ffffff;
}

.kh-mortality-tool input:focus {
    border-color: #c62828;
    outline: none;
}

.kh-mortality-tool .kh-mort-days {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
}

.kh-mortality-tool .kh-mort-btn {
    width: 100%;
    margin-top: 16px;
    background: #c62828 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer;
    font-family: 'Hind Siliguri', sans-serif;
    text-decoration: none !important;
}

.kh-mortality-tool .kh-mort-error {
    display: none;
    margin-top: 14px;
    padding: 12px;
    background: #ffebee;
    border-left: 4px solid #c62828;
    color: #b71c1c;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.kh-mortality-tool .kh-mort-error.show {
    display: block;
}

.kh-mortality-tool .kh-mort-result {
    display: none;
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
}

.kh-mortality-tool .kh-mort-result.show {
    display: block;
}

.kh-mortality-tool .kh-mort-result.normal {
    background: #e8f5e9;
    border: 2px solid #2e7d32;
}

.kh-mortality-tool .kh-mort-result.warning {
    background: #fff8e1;
    border: 2px solid #f9a825;
}

.kh-mortality-tool .kh-mort-result.danger {
    background: #ffebee;
    border: 2px solid #c62828;
}

.kh-mortality-tool .kh-mort-number {
    font-size: 40px;
    font-weight: 700;
    color: #c62828;
    line-height: 1.2;
}

.kh-mortality-tool .kh-mort-status {
    font-size: 19px;
    font-weight: 700;
    margin: 8px 0;
    color: #222;
}

.kh-mortality-tool .kh-mort-advice {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.kh-mortality-tool .kh-mort-reset {
    margin-top: 14px;
    background: #ffffff !important;
    border: 2px solid #c62828 !important;
    color: #c62828 !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    cursor: pointer;
    font-family: 'Hind Siliguri', sans-serif;
}

.kh-mortality-tool .kh-mort-link {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #efd0d0;
    text-align: center;
    font-size: 14px;
    color: #444;
}

.kh-mortality-tool .kh-mort-link a {
    color: #c62828;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 600px) {
    .kh-mortality-tool .kh-mort-days {
        grid-template-columns: 1fr;
    }
}

/* Interactive tool badge + tools CTA */
.kh-tool-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #0f6e56;
  background: #e1f5ee;
  border: 1px solid #9fe1cb;
}

.kh-tool-more {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.kh-tool-more a {
  font-weight: 800;
  color: #0f6e56;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mortality-specific CTA */
.kh-mort-alt-cta {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #0f6e56;
  background: #e1f5ee;
  border: 1px solid #9fe1cb;
}

.kh-mort-alt-cta a {
  font-weight: 800;
  color: #0f6e56;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kh-mortality-tool .kh-tool-more {
  margin-top: 14px;
}

/* More breathing space above mortality related CTA */
.kh-mortality-tool .kh-mort-alt-cta {
  margin-top: 24px;
}
