/* MFG Equipment Finance Calculator — scoped under .mfg-calc */

/* ── Brand tokens (scoped) ── */
.mfg-calc {
  --mfg-c-deep-blue: #051F42;
  --mfg-c-blue-600:  #0B2C5A;
  --mfg-c-soil-600:  #8D694B;
  --mfg-c-soil-300:  #CDB199;
  --mfg-c-sand-200:  #F4F2EA;
  --mfg-c-sand-100:  #E8E6DC;
  --mfg-c-sand-000:  #DCDAD0;
  --mfg-c-white:     #FFFFFF;

  --mfg-fg-1: #051F42;
  --mfg-fg-2: #2A3F5C;
  --mfg-fg-3: #5A6A82;
  --mfg-fg-muted: #8896AB;
  --mfg-line-1: rgba(5, 31, 66, 0.10);

  --mfg-font: 'Poppins', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  font-family: var(--mfg-font);
  color: var(--mfg-fg-1);
  background: var(--mfg-c-white);
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 22px 28px;
  box-sizing: border-box;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mfg-calc *, .mfg-calc *::before, .mfg-calc *::after { box-sizing: border-box; }

@media (max-width: 480px) {
  .mfg-calc { max-width: 100%; padding-left: 18px; padding-right: 18px; }
}

/* ── Header ── */
.mfg-calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mfg-line-1);
  margin-bottom: 14px;
}
.mfg-calc-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border: none;
}
.mfg-calc-logo {
  height: 22px;
  width: auto;
  display: block;
}
.mfg-calc-eyebrow {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mfg-c-soil-600);
}

/* ── Inputs ── */
.mfg-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.mfg-calc-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mfg-calc-field-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mfg-fg-3);
}

/* ── Amount input ── */
.mfg-calc-amount-input {
  display: flex;
  align-items: center;
  height: 52px;
  background: var(--mfg-c-sand-200);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  transition: border-color 120ms ease, background 120ms ease;
}
.mfg-calc-amount-input:focus-within {
  border-color: var(--mfg-c-deep-blue);
  background: var(--mfg-c-white);
}
.mfg-calc-amount-prefix {
  font-size: 22px;
  font-weight: 500;
  color: var(--mfg-fg-3);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.mfg-calc-amount-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mfg-fg-1);
  font-variant-numeric: tabular-nums;
  padding: 0;
  width: 100%;
  min-width: 0;
}

/* ── Segmented ── */
.mfg-calc-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--seg-count), 1fr);
  background: var(--mfg-c-sand-200);
  border-radius: 6px;
  padding: 3px;
  height: 38px;
}
.mfg-calc-seg-pill {
  position: absolute;
  top: 3px; bottom: 3px;
  left: calc(3px + (100% - 6px) * var(--seg-idx, 0) / var(--seg-count));
  width: calc((100% - 6px) / var(--seg-count));
  background: var(--mfg-c-deep-blue);
  border-radius: 4px;
  transition: left 200ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.mfg-calc-seg-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--mfg-fg-2);
  cursor: pointer;
  padding: 0;
  transition: color 160ms ease;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mfg-calc-seg-btn.is-active { color: var(--mfg-c-white); }
.mfg-calc-seg-btn:focus { outline: none; }
.mfg-calc-seg-btn:focus-visible { outline: 2px solid var(--mfg-c-deep-blue); outline-offset: 2px; border-radius: 4px; }

/* ── Page-1 wrapper: push contact + tips below the fold on mobile ── */
.mfg-calc-screen {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}
@media (max-width: 600px) {
  .mfg-calc-screen {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ── Result card ── */
.mfg-calc-result-header {
  margin-top: 13px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mfg-fg-3);
}
.mfg-calc-result {
  padding: 14px 16px 12px;
  background: var(--mfg-c-white);
  border: 1px solid var(--mfg-line-1);
  border-radius: 10px;
}
.mfg-calc-result-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mfg-line-1);
}
.mfg-calc-result-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mfg-c-soil-600);
}
.mfg-calc-result-figure {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mfg-fg-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mfg-calc-result-table {
  display: flex;
  flex-direction: column;
  padding: 4px 0 0;
}
.mfg-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--mfg-line-1);
}
.mfg-calc-row:last-child { border-bottom: none; padding-bottom: 2px; }
.mfg-calc-row-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--mfg-fg-2);
}
.mfg-calc-row-value {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mfg-fg-1);
  font-variant-numeric: tabular-nums;
}

/* ── Contact block ── */
.mfg-calc-contact {
  margin: 0;
  padding: 18px 16px 4px;
}
.mfg-calc-contact-intro {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mfg-fg-2);
}
.mfg-calc-contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.mfg-calc-contact-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mfg-c-deep-blue);
  width: 100%;
}
.mfg-calc-contact-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--mfg-fg-1);
  text-decoration: none;
}
.mfg-calc-contact-link:hover {
  color: var(--mfg-c-deep-blue);
  text-decoration: underline;
}
.mfg-calc-contact-dot {
  font-size: 13px;
  color: var(--mfg-fg-muted);
}

/* ── Tips ── */
.mfg-calc-tips {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--mfg-line-1);
}
.mfg-calc-tips-title {
  font-family: var(--mfg-font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--mfg-fg-1);
  margin: 0 0 14px;
  line-height: 1.2;
}
.mfg-calc-tip {
  padding: 14px 0;
  border-bottom: 1px solid var(--mfg-line-1);
}
.mfg-calc-tip:last-child { border-bottom: none; padding-bottom: 4px; }
.mfg-calc-tip-heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--mfg-c-deep-blue);
  margin-bottom: 4px;
}
.mfg-calc-tip-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mfg-fg-2);
}
.mfg-calc-tip-body + .mfg-calc-tip-body { margin-top: 8px; }
