.mortage-bac {
  background-color: #f9f9f9;
  padding: 2rem 0;

  .mort_details {
    text-align: center;
    margin-bottom: 2rem;

    h2 {
      // font-size: 2.5rem;
      color: #333;
      margin-bottom: 0.5rem;
      font-weight: bold;
    }

    p {
      font-size: 1.1rem;
      color: #666;
    }
  }

  .form-group {
    margin-bottom: 1.5rem;

    label {
      display: block;
      font-size: 1.1rem;
      color: #333;
      margin-bottom: 0.5rem;
    }

    input[type="text"],
    input[type="number"] {
      border-radius: 0.5rem;
      border: 1px solid #ccc;
      padding: 0.75rem;
      font-size: 1rem;
      width: 100%;
    }

    input[type="range"] {
      -webkit-appearance: none;
      width: 100%;
      height: 0.5rem;
      background: #ddd;
      border-radius: 0.5rem;
      outline: none;
      margin-top: 0.5rem;
      cursor: pointer;

      &::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 1rem;
        height: 1rem;
        background: $accent-color;
        border-radius: 50%;
        cursor: pointer;
      }

      &::-moz-range-thumb {
        width: 1rem;
        height: 1rem;
        background: $accent-color;
        border-radius: 50%;
        cursor: pointer;
      }
    }
  }

  .right-mortage {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;

    h4 {
      font-size: 1.5rem;
      color: #333;
      margin-bottom: 1rem;
    }

    #monthlyRepayment {
      font-size: 2rem;
      color: $accent-color;
      font-weight: bold;
    }

    p {
      font-size: 1rem;
      color: #666;
      margin-top: 1rem;
    }
  }
}
