
/* Mortgage calculator — Manuel Argil Real Estate */

#mortgage {
  scroll-margin-top: 100px;
  background: var(--cream, #f4f0e9);
}

#mortgage .tool-intro {
  max-width: 650px;
  color: #555;
  line-height: 1.8;
  margin-top: 25px;
}

#mortgage .finance-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

#mortgage .mortgage-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

#mortgage .mortgage-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
}

#mortgage .mortgage-form input:not([type=checkbox]),
#mortgage .mortgage-form select {
  font: inherit;
  font-size: 16px;
  border: 1px solid #b9b3ab;
  background: white;
  color: #171717;
  padding: 14px;
  width: 100%;
  min-height: 50px;
  border-radius: 0;
}

#mortgage .mortgage-form .check {
  flex-direction: row;
  align-items: center;
}

#mortgage .check input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: #171717;
}

#mortgage .mortgage-form .full {
  grid-column: 1 / -1;
}

#mortgage .payment-card {
  background: #171717;
  color: #fff;
  padding: 42px;
}

#mortgage .payment-total {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  overflow-wrap: anywhere;
}

#mortgage .payment-card > p {
  line-height: 1.6;
  color: #d5c9b7;
}

#mortgage .payment-card .text-link {
  border-color: #d5c9b7;
  color: #fff;
}

#mortgage .payment-bar {
  display: flex;
  height: 12px;
  margin: 32px 0;
  overflow: hidden;
}

#mortgage .c0 { background: #bb9a6b; }
#mortgage .c1 { background: #dad0bc; }
#mortgage .c2 { background: #8f9e9c; }
#mortgage .c3 { background: #d5a79b; }
#mortgage .c4 { background: #a095be; }

#mortgage .payment-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #444;
  padding: 16px 0;
}

#mortgage .payment-card dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

#mortgage .payment-card dd {
  margin: 0;
  white-space: nowrap;
}

#mortgage .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

#mortgage .tool-note {
  font-size: .8rem;
  line-height: 1.85;
  color: #61605d;
  margin: 32px 0 0;
}

#mortgage #mortgage-error {
  color: #9b2525;
  margin: 0;
  font-size: .85rem;
}

#mortgage :focus-visible {
  outline: 3px solid #92784e;
  outline-offset: 4px;
}

/* Tablet and mobile */

@media (max-width: 850px) {
  #mortgage .finance-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #mortgage .payment-card {
    padding: 30px;
  }
}

@media (max-width: 430px) {
  #mortgage .mortgage-form {
    gap: 18px 12px;
  }

  #mortgage .payment-card {
    padding: 24px;
  }
}
