/* ---------------------------------------------------------------------
   Finance quick-tool cards (Loan Assistant / EMI Calculator) — shown on
   finance.html, linking to loan-assistant.html and emi-calculator.html.
   Same "Get loan guidance instantly" cards the mobile app shows on its
   Finance home tab.
   --------------------------------------------------------------------- */
.ft_tools_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 40px;
}
@media (max-width: 767px) {
  .ft_tools_row { grid-template-columns: 1fr; }
}

.ft_tool_card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #b60000, #7a0000);
  border-radius: 18px;
  padding: 22px 22px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(182, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ft_tool_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(182, 0, 0, 0.35);
  color: #fff;
}
.ft_tool_icon {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}
.ft_tool_text { flex: 1; min-width: 0; }
.ft_tool_text h6 {
  color: #fff;
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 17px;
}
.ft_tool_text p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 13px;
}
.ft_tool_arrow {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ---------------------------------------------------------------------
   EMI Calculator
   --------------------------------------------------------------------- */
.emi_results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 30px;
}
@media (max-width: 767px) {
  .emi_results { grid-template-columns: 1fr 1fr; }
}
.emi_result_box {
  background: #eef6fb;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}
.emi_result_box span {
  display: block;
  font-size: 13px;
  color: #556;
  margin-bottom: 10px;
  font-weight: 600;
}
.emi_result_box strong {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
}
.emi_result_box.emi_monthly strong { background: #2ecc71; }
.emi_result_box.emi_interest strong { background: #f39c12; }
.emi_result_box.emi_payable strong { background: #2b8fec; }
.emi_result_box.emi_percent strong { background: #17b6c4; }

.ft_field { margin-bottom: 22px; }
.ft_field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-black);
  margin-bottom: 8px;
}
.ft_field input[type="number"],
.ft_field input[type="text"] {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--dark-black);
  background: #fafafa;
  outline: none;
}
.ft_field input:focus { border-color: var(--red); background: #fff; }

.ft_slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  /* Fallback flat track; emi-calculator.js sets an inline gradient on
     each input (filled red up to the value, light gray after) so the
     track is always visible regardless of page background. */
  background: #d8d2d2;
  margin-top: 14px;
  outline: none;
}
.ft_slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: transparent; /* inline background on the input itself paints the fill */
}
.ft_slider::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: #d8d2d2;
}
.ft_slider::-moz-range-progress {
  height: 6px;
  border-radius: 4px;
  background: var(--red, #b60000);
}
.ft_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--red, #b60000);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 3px solid #fff;
  position: relative;
  z-index: 2;
}
.ft_slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red, #b60000);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ft_char_count {
  text-align: right;
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 4px;
}

/* Smaller page-title banner on Finance tool pages (Loan Assistant, EMI
   Calculator) — matches the same reduced height used on the Real Estate
   pages. Duplicated here (also defined in realestate-listings.css) so it
   applies even on pages that don't load that stylesheet. */
.bred_crumb.bred_crumb_sm {
    min-height: 350px;
    overflow: hidden;
}
.bred_crumb.bred_crumb_sm .inner_banner_object img {
    max-height: 190px;
    width: auto;
}
