/* =========================
   BAH CALCULATOR STYLES
========================= */
.bah-calc {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
}

.bah-calc__header {
  padding: 26px 22px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

/* Header colors controlled by admin */
.bah-calc__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vhb-header-title, #0a1f44);
}

.bah-calc__subtitle {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--vhb-header-title, #0a1f44);
}

.bah-calc__desc {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--vhb-header-text, #334155);
  font-size: 16px;
}

.bah-calc__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}

.bah-calc__form {
  padding: 22px;
  background: #f7f7f7;
  border-right: 1px solid #eee;
}

.bah-calc__row {
  margin-bottom: 14px;
}

.bah-calc__row label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.bah-calc select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}

.bah-calc__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.bah-calc__check input {
  width: 18px;
  height: 18px;
}

/* Right panel uses theme variables */
.bah-calc__result {
  padding: 0;
  background: var(--vhb-right-bg, #061a3a);
  color: var(--vhb-right-text, #ffffff);
  display: flex;
  flex-direction: column;
}

.bah-calc__resultTop {
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.bah-calc__location {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--vhb-right-title, #ffffff);
}

.bah-calc__sub {
  margin-top: 8px;
  opacity: 0.9;
  color: var(--vhb-right-text, #ffffff);
}

.bah-calc__money {
  padding: 22px;
}

.bah-calc__label {
  opacity: 0.9;
  font-weight: 700;
  color: var(--vhb-right-text, #ffffff);
}

.bah-calc__amount {
  font-size: 64px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -0.02em;
  color: var(--vhb-right-title, #ffffff);
}

.bah-calc__year {
  margin-top: 6px;
  font-weight: 700;
  opacity: 0.95;
  color: var(--vhb-right-text, #ffffff);
}

/* CTA background is fixed (no admin setting) */
.bah-calc__cta {
  margin: 18px 22px 22px;
  text-decoration: none;
  background: #f5c400;
  color: var(--vhb-cta-text, #0b1220);
  font-weight: 900;
  padding: 14px 16px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.bah-calc--error {
  padding: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #7c2d12;
}

@media (max-width: 900px) {
  .bah-calc__grid {
    grid-template-columns: 1fr;
  }
  .bah-calc__form {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}

/* =========================
   INVERSE CALCULATOR STYLES
========================= */
.inv-calc {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  max-width: 1100px;
  margin: 40px auto 0;
}

.inv-calc__header {
  padding: 26px 22px;
  border-bottom: 1px solid #eee;
}

/* Header colors controlled by admin */
.inv-calc__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--vhb-header-title, #0a1f44);
}

.inv-calc__desc {
  margin: 12px 0 0;
  max-width: 820px;
  color: var(--vhb-header-text, #334155);
  font-size: 16px;
}

.inv-calc__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.inv-calc__form {
  padding: 22px;
  background: #f7f7f7;
  border-right: 1px solid #eee;
}

.inv-calc__row {
  margin-bottom: 14px;
}

.inv-calc__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inv-calc label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.inv-calc input,
.inv-calc select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}

/* Keeps down payment and funding fee perfectly aligned */
.inv-calc__hint {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  min-height: 16px;
}

/* Right panel uses theme variables */
.inv-calc__result {
  background: var(--vhb-right-bg, #061a3a);
  color: var(--vhb-right-text, #ffffff);
  display: flex;
  flex-direction: column;
}

.inv-calc__resultTop {
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.inv-calc__kicker {
  opacity: 0.9;
  font-weight: 800;
  color: var(--vhb-right-title, #ffffff);
}

.inv-calc__price {
  font-size: 54px;
  font-weight: 950;
  margin-top: 6px;
  letter-spacing: -0.02em;
  color: var(--vhb-right-title, #ffffff);
}

.inv-calc__sub {
  margin-top: 10px;
  opacity: 0.9;
  line-height: 1.35;
  color: var(--vhb-right-text, #ffffff);
}

.inv-calc__breakdown {
  padding: 18px 22px;
}

.inv-calc__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--vhb-right-text, #ffffff);
}

.inv-calc__line span,
.inv-calc__line strong {
  color: var(--vhb-right-text, #ffffff);
}

.inv-calc__line--strong {
  border-bottom: none;
  margin-top: 6px;
  font-size: 18px;
}

/* CTA background is fixed (no admin setting) */
.inv-calc__cta {
  margin: 18px 22px 22px;
  text-decoration: none;
  background: #f5c400;
  color: var(--vhb-cta-text, #0b1220);
  font-weight: 950;
  padding: 14px 16px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .inv-calc__grid { grid-template-columns: 1fr; }
  .inv-calc__form { border-right: none; border-bottom: 1px solid #eee; }
  .inv-calc__row--2 { grid-template-columns: 1fr; }
}