/* ── Mortgage Calculator page ─────────────────────────────────────────────── */

.mc-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mc-form-card {
  background: #fff;
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #e2e2e2;
}

.mc-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 1.25rem;
  font-family: "Libre Baskerville", Georgia, serif;
}

/* 2-column input grid */
.mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .mc-grid { grid-template-columns: 1fr; } }

.mc-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.mc-group--check label {
  text-transform: none;
  font-size: .9rem;
  font-weight: 500;
  color: #333333;
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  padding-top: 1.4rem; /* align with sibling inputs */
}

.mc-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  overflow: hidden;
}
.mc-input-wrap:focus-within { border-color: #111111; }
.mc-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: .45rem .6rem;
  font-size: .95rem;
  width: 0;
  min-width: 0;
}
.mc-prefix, .mc-suffix {
  padding: .45rem .6rem;
  font-size: .85rem;
  color: #666666;
  background: #f7f7f5;
  white-space: nowrap;
}
.mc-prefix { border-right: 1.5px solid #d0d0d0; }
.mc-suffix  { border-left:  1.5px solid #d0d0d0; }

.mc-group select {
  width: 100%;
  padding: .45rem .6rem;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  font-size: .95rem;
  background: #fff;
}
.mc-group select:focus { outline: none; border-color: #111111; }

/* Checkboxes row */
.mc-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 1.1rem;
}
.mc-checks label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: #333333;
  cursor: pointer;
}
.mc-checks input[type=checkbox] { accent-color: #111111; }

/* FHB extra fields */
.mc-fhb-extra { margin-top: -.25rem; margin-bottom: 1.1rem; }

.mc-submit-btn {
  display: block;
  padding: .7rem 2.5rem;
  background: #111111;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.mc-submit-btn:hover    { background: #333333; }
.mc-submit-btn:disabled { background: #999999; cursor: not-allowed; }

/* Results */
.mc-results { display: flex; flex-direction: column; gap: 1.25rem; }

.mc-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .mc-results-grid { grid-template-columns: 1fr 1fr; } }

.mc-highlight-card {
  background: #fff;
  border-radius: 4px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #e2e2e2;
  text-align: center;
}
.mc-highlight__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #666666;
  margin-bottom: .4rem;
}
.mc-highlight__value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.1;
  font-family: "Libre Baskerville", Georgia, serif;
}
.mc-highlight__sub {
  font-size: .75rem;
  color: #999999;
  margin-top: .2rem;
}

.mc-results-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) { .mc-results-row { grid-template-columns: 1fr; } }

.mc-table-card {
  background: #fff;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #e2e2e2;
}
.mc-table-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #333333;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mc-table-card table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mc-table-card th {
  text-align: left;
  padding: .45rem .6rem;
  background: #f7f7f5;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #666666;
  border-bottom: 2px solid #333333;
}
.mc-td-label { color: #666666; padding: .38rem .6rem; width: 55%; border-bottom: 1px solid #ededed; }
.mc-td-val   { font-weight: 600; color: #121212; padding: .38rem .6rem; border-bottom: 1px solid #ededed; }
tr:last-child .mc-td-label,
tr:last-child .mc-td-val { border-bottom: none; }

.mc-row-current td { background: #f7f7f5; font-weight: 700; }

/* Error */
.mc-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
  border-radius: 4px;
  padding: .85rem 1.1rem;
  font-size: .9rem;
}

