/* ==========================================================================
   Fischer Lending Corp
   Deliberately period-correct mid-to-late-1990s styling.

   The rules of the era, followed on purpose:
     - System fonts only (Times, Arial, Courier). No webfonts existed.
     - Beveled 3D borders via outset/inset. No border-radius, no box-shadow,
       no gradients, no transitions.
     - Blue underlined links, visited purple.
     - <hr> as the primary section divider.
     - A fixed content column, centered, on a plain background.

   If you are tempted to "modernize" this: the retro look is the brief, not an
   accident. Keep the beveling and the system fonts.
   ========================================================================== */

body {
  margin: 0;
  padding: 0;
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.45;
}

/* The 90s content column: a fixed slab of white on the gray desktop. */
.nav,
main,
footer .footer-inner {
  max-width: 760px;
  margin: 0 auto;
}

main {
  background: #ffffff;
  border: 2px outset #ffffff;
  padding: 0;
}

a { color: #0000ee; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover { color: #ee0000; }

h1, h2, h3 {
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
  margin: 0 0 .5em;
  line-height: 1.2;
}
h1 { font-size: 30px; }
h2 { font-size: 23px; border-bottom: 2px solid #000080; padding-bottom: 3px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }

/* ---------- title bar ---------- */
.nav {
  background: #000080;
  color: #ffffff;
  border: 2px outset #000080;
  padding: 6px 8px;
  margin-top: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
.wordmark {
  color: #ffffff !important;
  text-decoration: none;
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.mark {
  display: inline-block;
  background: #ffff00;
  color: #000080;
  border: 2px outset #ffff00;
  padding: 0 5px;
  margin-right: 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: bold;
}
.nav nav { display: block; }
.nav nav a {
  color: #ffff00;
  font-size: 13px;
  margin-right: 4px;
}
.nav nav a::before { content: "[ "; color: #ffffff; text-decoration: none; }
.nav nav a::after  { content: " ]"; color: #ffffff; text-decoration: none; }
.nav-cta { font-weight: bold; }

/* ---------- sections ---------- */
section { padding: 18px 22px; }
section + section { border-top: 1px solid #808080; }
.section-head { margin-bottom: 14px; }
.section-head p { margin: 0; font-style: italic; color: #000080; }

.band { background: #f4f4f4; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 22px; }
.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #800000;
  margin-bottom: 10px;
}
.hero h1 { color: #000080; margin: 0 auto .6em; }
.hero h1 em { font-style: italic; color: #800000; }
.lede { text-align: left; margin: 0 auto 1em; }

.hero-actions { margin: 16px 0; }

/* Beveled push-buttons, the way every 90s form control looked. */
.btn {
  display: inline-block;
  background: #c0c0c0;
  color: #000000;
  border: 3px outset #c0c0c0;
  padding: 5px 16px;
  margin: 0 6px 6px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}
.btn:visited { color: #000000; }
.btn:hover { color: #000000; }
.btn:active { border-style: inset; }
.btn-ghost { background: #c0c0c0; }
button.btn { font-size: 14px; }
button.btn:disabled { color: #808080; border-style: inset; }

/* The stat row as a bordered table, because in 1997 it would have been one. */
.stat-row {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
  border: 2px inset #c0c0c0;
}
.stat-row > div {
  display: table-cell;
  width: 20%;
  border: 1px solid #808080;
  background: #ffffcc;
  padding: 7px 5px;
  text-align: center;
}
.stat-row dt {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  color: #800000;
  letter-spacing: .5px;
  margin-bottom: 3px;
}
.stat-row dd {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  font-weight: bold;
  color: #000080;
}

/* ---------- terms table ---------- */
.terms {
  width: 100%;
  border-collapse: collapse;
  border: 2px inset #c0c0c0;
  font-size: 15px;
}
.terms th, .terms td {
  text-align: left;
  vertical-align: top;
  border: 1px solid #808080;
  padding: 7px 9px;
}
.terms th {
  width: 150px;
  background: #000080;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: .5px;
}
.terms td { background: #ffffff; }
.terms td strong { color: #800000; }

/* ---------- what I fund / do not fund ---------- */
.split { display: block; }
.split > div {
  border: 2px inset #c0c0c0;
  background: #ffffff;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.split h2 { font-size: 19px; }
.check, .cross { margin: 8px 0 0; padding-left: 24px; }
.check { list-style: square; }
.cross { list-style: square; }
.check li { color: #006600; margin-bottom: 5px; }
.cross li { color: #800000; margin-bottom: 5px; }
.check li span, .cross li span { color: #000000; }

/* ---------- underwriting ---------- */
.formula-line {
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  background: #ffffcc;
  border: 2px inset #c0c0c0;
  padding: 12px 8px;
  margin: 0 0 14px;
}
.thresholds { display: table; width: 100%; border-collapse: collapse; border: 2px inset #c0c0c0; }
.thresholds > div {
  display: table-cell;
  width: 33.33%;
  border: 1px solid #808080;
  background: #ffffff;
  padding: 8px 10px;
  vertical-align: top;
}
.thresholds span {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.thresholds p { margin: 0; font-size: 14px; }
.t-pass span { color: #006600; }
.t-caution span { color: #996600; }
.t-fail span { color: #cc0000; }
.note-wrap { margin-top: 14px; }
.note { margin: 0; font-size: 15px; }
.note em { font-style: italic; font-weight: bold; }

/* ---------- process ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border: 2px inset #c0c0c0;
  display: table;
  width: 100%;
  border-collapse: collapse;
}
.steps li {
  display: table-cell;
  width: 25%;
  border: 1px solid #808080;
  background: #ffffff;
  padding: 8px 10px;
  vertical-align: top;
}
.step-n {
  display: block;
  background: #000080;
  color: #ffff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  border: 2px outset #000080;
  width: 22px;
  margin-bottom: 6px;
}
.steps h3 { font-size: 15px; margin-bottom: 3px; }
.steps p { margin: 0; font-size: 13px; }

/* ---------- document checklist ---------- */
.docs { margin: 0; padding-left: 24px; list-style: square; }
.docs li { margin-bottom: 6px; }

/* ---------- about ---------- */
.about { background: #ffffcc; }
.about-inner { border: 2px inset #c0c0c0; background: #ffffff; padding: 12px 16px; }
.signature {
  font-weight: bold;
  color: #000080;
  margin: 14px 0 0;
  padding-top: 8px;
  border-top: 1px solid #808080;
}

/* ---------- form ---------- */
fieldset {
  border: 2px groove #c0c0c0;
  padding: 10px 14px 14px;
  margin: 0 0 16px;
}
legend {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #000080;
  padding: 0 5px;
}
.grid { display: block; }
label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 9px;
}
.req { color: #cc0000; }
input, textarea {
  display: block;
  width: 100%;
  margin-top: 2px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #000000;
  background: #ffffff;
  border: 2px inset #c0c0c0;
  padding: 3px 4px;
}
input.invalid, textarea.invalid { background: #ffe0e0; border-color: #cc0000; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.live-ltv {
  margin: 10px 0 0;
  padding: 7px 9px;
  border: 2px inset #c0c0c0;
  background: #ffffcc;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}
.live-ltv strong { font-size: 15px; }
.live-ltv.pass strong { color: #006600; }
.live-ltv.caution strong { color: #996600; }
.live-ltv.fail strong { color: #cc0000; }

.form-foot { margin-top: 4px; }
.form-msg {
  margin: 8px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}
.form-msg.error { color: #cc0000; font-weight: bold; }
.form-msg.success { color: #006600; font-weight: bold; }
.form-sent {
  border: 3px outset #c0c0c0;
  background: #ffffcc;
  padding: 14px 18px;
}
.form-sent h3 { color: #006600; }
.form-sent p { margin: 0; }

/* ---------- footer ---------- */
footer {
  background: #c0c0c0;
  margin-top: 14px;
  padding-bottom: 20px;
}
.footer-inner {
  background: #ffffff;
  border: 2px outset #ffffff;
  padding: 12px 16px;
  text-align: center;
}
.foot-brand { font-weight: bold; color: #000080; margin-bottom: 8px; }
.disclaimer {
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  color: #333333;
  margin: 0;
  border-top: 1px solid #808080;
  padding-top: 8px;
}

/* ---------- small screens ----------
   Not period-correct (nothing was), but the site has to work on the phone an
   investor actually reads it on. The display:table blocks collapse to stacks. */
@media (max-width: 620px) {
  body { font-size: 15px; }
  .nav, main, footer .footer-inner { margin-left: 6px; margin-right: 6px; }
  section { padding: 14px; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }

  .stat-row, .stat-row > div,
  .thresholds, .thresholds > div,
  .steps, .steps li { display: block; width: auto; }
  .stat-row > div, .thresholds > div, .steps li { border-width: 0 0 1px 0; }

  .terms, .terms tbody, .terms tr, .terms th, .terms td { display: block; width: auto; }
  .terms th { border-width: 1px 1px 0 1px; }
  .terms td { border-width: 0 1px 1px 1px; }
}

.foot-links { font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 8px; }
.footer-inner hr { border: none; border-top: 2px groove #c0c0c0; margin: 8px 0; }

/* 90s form fields were sized in characters (size="40"), not stretched to the
   container. Cap the single-line inputs so they read as a period form. */
input { max-width: 380px; }
label.block input, .grid .wide input { max-width: 560px; }
@media (max-width: 620px) { input, label.block input, .grid .wide input { max-width: none; } }
