/* ABL Home Calculator styles (Allied Bank colors) */
/* Allied Bank brand colors: Navy #03057F, Orange #F7610B, Light grey #F2F2F2 */
#ehc-calculator {
  --ehc-purple: #03057f;
  --ehc-purple-dark: #02035c;
  --ehc-accent: #f7610b;
  --ehc-accent-dark: #d9520a;
  --ehc-soft: #f2f2f2;
  --ehc-border: #cfd2e3;
  --ehc-text: #1d1f3a;
  --ehc-muted: #55586e;
  color: var(--ehc-text);
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}
#ehc-calculator * {
  box-sizing: border-box;
}
#ehc-calculator .ehc-title {
  color: var(--ehc-purple);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 28px;
  line-height: 1.25;
}
#ehc-calculator .ehc-title:after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--ehc-accent);
  border-radius: 2px;
  margin-top: 12px;
}
#ehc-calculator .ehc-sub {
  color: var(--ehc-purple);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 28px;
}
#ehc-calculator .ehc-field {
  margin-bottom: 12px;
}
#ehc-calculator label.ehc-lbl {
  display: block;
  font-size: 12.5px;
  color: var(--ehc-muted);
  margin: 0 0 4px;
}
#ehc-calculator select,
#ehc-calculator input[type="text"],
#ehc-calculator input[type="date"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ehc-text);
  background: #fff;
  border: 1px solid var(--ehc-border);
  border-radius: 4px;
  outline: none;
  margin: 0;
  font-family: inherit;
}
#ehc-calculator select:focus,
#ehc-calculator input:focus {
  border-color: var(--ehc-purple);
  box-shadow: 0 0 0 2px rgba(3, 5, 127, 0.18);
}
#ehc-calculator .ehc-row {
  display: flex;
  gap: 30px;
}
#ehc-calculator .ehc-row > div {
  flex: 1;
  min-width: 0;
}
#ehc-calculator small,
#ehc-calculator .ehc-note {
  display: block;
  font-size: 12.5px;
  color: var(--ehc-muted);
  margin-top: 8px;
  line-height: 1.45;
}
#ehc-calculator .ehc-error {
  display: none;
  background: #fdecec;
  color: #a11;
  border: 1px solid #f3c2c2;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 12px 0;
}
#ehc-calculator .ehc-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  height: 54px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  background: var(--ehc-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s;
}
#ehc-calculator .ehc-btn:hover {
  background: var(--ehc-accent-dark);
}
#ehc-calculator .ehc-btn:focus-visible {
  outline: 3px solid var(--ehc-purple);
  outline-offset: 2px;
}
#ehc-calculator .ehc-result {
  display: none;
  margin-top: 28px;
  border-top: 3px solid var(--ehc-accent);
  padding-top: 18px;
}
#ehc-calculator .ehc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
#ehc-calculator .ehc-card {
  background: var(--ehc-soft);
  border-left: 4px solid var(--ehc-accent);
  border-radius: 4px;
  padding: 14px;
}
#ehc-calculator .ehc-card span {
  display: block;
  font-size: 12.5px;
  color: var(--ehc-muted);
}
#ehc-calculator .ehc-card b {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--ehc-purple);
  margin-top: 4px;
}
#ehc-calculator h4 {
  color: var(--ehc-purple);
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px;
}
#ehc-calculator .ehc-table-wrap {
  overflow-x: auto;
}
#ehc-calculator table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
#ehc-calculator th {
  background: var(--ehc-purple);
  color: #fff;
  font-weight: 500;
  padding: 8px;
  text-align: right;
  white-space: nowrap;
}
#ehc-calculator td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  text-align: right;
  white-space: nowrap;
}
#ehc-calculator th:first-child,
#ehc-calculator td:first-child {
  text-align: left;
}
#ehc-calculator tr:nth-child(odd) td {
  background: #fafafa;
}
#ehc-calculator tr.ehc-var td {
  background: #fff3eb;
}
#ehc-calculator details {
  margin-top: 14px;
}
#ehc-calculator summary {
  cursor: pointer;
  color: var(--ehc-accent-dark);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
}
@media (max-width: 600px) {
  #ehc-calculator .ehc-title {
    font-size: 23px;
  }
  #ehc-calculator .ehc-row {
    flex-direction: column;
    gap: 0;
  }
  #ehc-calculator .ehc-row > div {
    margin-bottom: 12px;
  }
}
