/********************************************
  LOAN CALCULATOR CONTAINER
********************************************/
.loanCalculatorBlock2 {
  background-color: var(--white);
  border: var(--border-width) solid var(--border);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  width: 100%;
  margin: 0 auto;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

/********************************************
  REPAYMENT FIELDS
********************************************/
.loanTotalsBlock {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
}

.loanItem {
  text-align: center;
}

.loanItem span#emi,
.loanItem span#total-amount {
  display: block;
  font-family: var(--font-primary);
  font-size: 40px;
  color: var(--dark-blue);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.labelSmall {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

/********************************************
  RANGE & SLIDER
********************************************/
.calc-holder {
  margin-bottom: var(--space-4);
}
.lcRow {
  margin-bottom: var(--space-5);
}
.lcH3 {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--dark-blue);
  letter-spacing: var(--letter-spacing-wide);
}

/********************************************
  RANGE INPUT STYLES
********************************************/
.loan-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to right,
    var(--red) var(--range-progress, 0%),
    var(--border) var(--range-progress, 0%)
  );
  border-radius: var(--radius-full);
  outline: none;
  margin: var(--space-3) 0;
  cursor: pointer;
}

.loan-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--dark-blue);
  border: 3px solid var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  margin-top: 0;
}

.loan-range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--dark-blue);
  border: 3px solid var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.loan-range-input::-moz-range-progress {
  background-color: var(--red);
  height: 8px;
  border-radius: var(--radius-full);
}

.loan-range-input::-moz-range-track {
  background-color: var(--border);
  height: 8px;
  border-radius: var(--radius-full);
}

.loan-range-input:focus {
  outline: none;
}

.loan-range-input:focus-visible {
  outline: none;
}

.range-wrapper {
  position: relative;
}

.range-value {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  min-width: 80px;
  text-align: center;
  background-color: var(--red);
  color: var(--text-inverse);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

/********************************************
  BOTTOM SECTION (Monthly Payment, Total)
********************************************/
.row-bottom {
  margin-top: var(--space-4);
}

.loanTotalsBlock {
  text-align: left;
}

.loanTotalsBlock h3 {
  font-size: var(--text-base);
  margin: var(--space-2) 0;
}

.loanMp {
  padding-right: var(--space-8);
}

.loanMp,
.loanTp {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-align: left;
  margin-top: var(--space-5);
}

.sul-disclaimer {
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-4);
  font-style: italic;
  font-weight: var(--font-weight-regular);
}

/********************************************
  RESPONSIVE TWEAKS
********************************************/
@media (max-width: 479px) {
  .loanCalculatorBlock2 {
    padding: var(--space-4);
  }
  .lcH3 {
    font-size: var(--text-sm);
  }
  .loan-range-input {
    margin: var(--space-2) 0;
  }
  .loanItem span#emi,
  .loanItem span#total-amount {
    font-size: 1.5rem;
  }
  .labelSmall {
    font-size: var(--text-xs);
  }
}
